Answered
Running individual matlab scripts in parallel?
Do your scripts call |PARFOR| or other parallel language features? By specifying |"...'matlabpool', 2"| in your |batch| command,...

11 years ago | 1

| accepted

Answered
decimal to binary conversion of gpuArray gives error
Unfortunately, as you have discovered, the |gpuArray| version of |log2| doesn't support the second output argument as needed by ...

11 years ago | 0

Answered
can't do parallel computing
You might need to clear out the "Storage Location" directory on disk - you can find this by executing: c = parcluster('loca...

11 years ago | 6

Answered
Implementing batched mldivide on the GPU
This is now supported in R2014b - see <http://www.mathworks.com/help/distcomp/release-notes.html the release notes>.

11 years ago | 0

Answered
Speed up a program
Here's what I tried with PARFOR, and this worked: function D = pfeg N = 100; D = zeros(N, N, 3); parfor i = 1:N for...

11 years ago | 0

Answered
How to optimize gpuArray operation to minimize GPU memory
Your card cannot possibly fit 3 1.6Gb matrices in memory, which is needed to perform |C = A - B|. Therefore, you need to make yo...

11 years ago | 0

Answered
Problems in sharing mex codes with workers in a cluster
You need to use matlabpool('addfiledependencies', {'mex1', 'mex2'}) to make the MEX files available to the workers. See...

11 years ago | 0

| accepted

Answered
Parfor variable slicing and assignment
MATLAB uses a language analysis to work out what's going on the body of your |PARFOR| loop. In this case, you would like |A| to ...

11 years ago | 1

Answered
Parpool local too slow
Unfortunately there is no way around this, other than to open a |parpool| when you first need one (or let it open automatically ...

11 years ago | 0

| accepted

Answered
Performance of selecting a subset of a GPUArray
Logical indexing on the GPU is slower than indexing with doubles. So, of you reuse a logical indexing vector, you may well find ...

11 years ago | 0

Answered
GPU parallel computing on Intel
Unfortunately, Parallel Computing Toolbox supports only Nvidia GPUs. <http://www.mathworks.com/products/availability/#DM>

11 years ago | 0

Answered
How to use multiple GPUs asynchronously
If you have 2 GPUs, you could use |SPMD| like this: parpool('local', 2); % ensure the pool is of size 2 spmd % set ...

11 years ago | 1

| accepted

Answered
r2014b cannot start parallel pool
This looks to me like a problem with licensing. Please contact install support to resolve this problem.

11 years ago | 0

| accepted

Answered
GPU arrayfun with shared arrays
Can you give a more concrete example of what you'd like to do with |A|, |B|, and |C|? You might be able to use a nested function...

11 years ago | 0

Answered
Is it possible to conditionally switch between parallel and non parallel for loops?
You can do this by setting the optional "number of workers" argument to |0|. For example runInSerial = <...>; if runInSe...

11 years ago | 6

| accepted

Answered
How to use arrayfun for nested loops without using memory multiple times for the same read only data
Use |bsxfun| bsxfun(@(x,y) x + y, gpuArray(1:4), gpuArray(1:4).')

11 years ago | 0

| accepted

Answered
error with arrayfun and GPU computing part 2.
When working with |gpuArray| data, the function that you pass to the |arrayfun| will be called with scalar values. In other word...

11 years ago | 2

| accepted

Answered
Minimize MDCS Data Transfer
You could use the <http://www.mathworks.com/matlabcentral/fileexchange/31972-worker-object-wrapper Worker Object Wrapper> which ...

11 years ago | 0

| accepted

Answered
The variable g in a parfor cannot be classified..
It looks like you could simply replace |g(i)| with |g| and then hoist the inner for-loop bounds calculation out of the |PARFOR| ...

11 years ago | 0

Answered
Help with multilevel parallel programming
One of the reasons that PARFOR does not support nested parallelism is that it is difficult to achieve good load-balancing in thi...

11 years ago | 0

Answered
parallel perfix sum in matlab
In MATLAB, <http://www.mathworks.com/help/matlab/ref/cumsum.html |CUMSUM|> calculates the prefix sum. You can run this in parall...

11 years ago | 0

Answered
A communication mismatch error was encountered: The other lab became idle during labReceive.
This error essentially tells you that the other worker (or "lab") got to the end of the |spmd| block before it sent any data. A ...

11 years ago | 0

Answered
What is wrong with my arrayFun function ?
The error message is trying to indicate to you that the body of your |arrayfun| function cannot contain either method calls on M...

11 years ago | 0

Answered
How can I assign *.mat table to GPU variable
You can send data to the GPU using the <http://www.mathworks.co.uk/help/distcomp/gpu-computing.html |gpuArray|> function, howeve...

11 years ago | 1

| accepted

Answered
Why is MATLAB running slow? 2013a vs 2011a
I tried your code on my machine in both R2011a and R2014a, and as posted it is indeed quite a bit slower in R2014a. You can get ...

11 years ago | 1

| accepted

Answered
How to run a job on a remote cluster?
Parallel Computing Toolbox relies on Java, so you should omit the |-nojvm| flag from your |matlab| command-line.

11 years ago | 0

Answered
Using LaTeX interpreter + saveas png/epcs inside a parfor loop
Unfortunately this is a known problem - the bug report is here: <http://www.mathworks.co.uk/support/bugreports/253188> (I know t...

11 years ago | 0

| accepted

Answered
SPMD vs PARFOR and Memory Usage
Here's a version that I've reworked quite a bit to use codistributed arrays hopefully a little more effectively (it runs about t...

11 years ago | 3

| accepted

Answered
GPU memory accessed even when code runs on CPU only (See attached code)
I'm still investigating this problem, but as a workaround you can also use the 'like' syntax which avoids the problem: z = ...

11 years ago | 0

| accepted

Answered
Shared cluster profiles between R2013b and R2012a
You can create a cluster profile by creating the cluster object you wish to use manually from the command-line and then using <h...

11 years ago | 0

| accepted

Load more