Answered
What's wrong with this parfor loop?
In this case, the fix is simply to remove the increment from the inner |for| loop, like so: N = 10; T = 3; A = zeros(...

10 years ago | 1

| accepted

Answered
Reduction function called in a parfor loop cannot have more than two variables?
The problem here is to do with both the number of arguments to your function, and how you're using it with respect to the output...

10 years ago | 0

| accepted

Answered
Using getsnapshot in parfor function
This error appears to be misleading - I _think_ the problem is that the object |vid| is not being transferred to the workers cor...

10 years ago | 1

| accepted

Answered
Error using rand function with gpu suport
The ability to call |rand(size, type, 'gpuArray')| was added in R2014a. This is mentioned in the <http://www.mathworks.com/help/...

10 years ago | 0

Answered
Parfoor loop with 3D matrix
I think the problem here is with the way you're using |signal_filt|. You're using multiple forms of indexing, and the |parfor| r...

10 years ago | 0

| accepted

Answered
I want to compile .cu code on my matlab 2015a using 'mexcuda' but i am getting errors as shown
The function |mexcuda| was introduced in R2015b. You'll need to follow the instructions in the R2015a documentation: http://www....

10 years ago | 1

| accepted

Answered
Using CUDA 6 for GPU computations (R2015b + parallel toolbox)
Unfortunately, there are at least two different numbers here: 1. Your device has a *CUDA Compute Capability* of 3.5. This ref...

10 years ago | 1

Answered
How to efficiently use spmd to load multiple files and perform execution?
Under some circumstances, the "idle" workers can consume CPU resources while waiting for the other workers to get to the end of ...

10 years ago | 0

Answered
Parallel computing toolbox and multiple cpu's
The placement of the worker processes is entirely determined by your operating system. So, in practice, PCT local workers will a...

10 years ago | 0

Answered
CUDA fft with prime number lengths
Thankyou for reporting this problem. In R2015b, this transform actually fails with an error, so I suspect that in R2015a the tra...

10 years ago | 0

Answered
Parpool Fail 2015a HPC
This looks like your machine ran out of resources while trying to start up the workers. Do you have any |ulimit| in effect?

10 years ago | 0

Answered
Using arrayfun is giving me an error
|arrayfun| is designed for purely element-wise operations. Your code appears to be attempting to operate on the whole value of |...

10 years ago | 0

Answered
Nested functions with GPU does not support FFT2
|arrayfun| with |gpuArray| arguments is primarily designed for *element-wise* computation. Therefore, the functions that you can...

10 years ago | 0

Answered
Parfor with COMSOL object
Outputs from a |parfor| loop need to be either _sliced_ outputs, or _reductions_. In this case, a sliced output is probably most...

10 years ago | 0

| accepted

Answered
CPU vs. GPU : Can I estimate the improvement by the provided code?
MATLAB will see the K80 device as two separate CUDA devices. Each MATLAB process can access only one device - so to take full ad...

10 years ago | 0

| accepted

Answered
Find Peaks In a Faster Way
Unfortunately, |findpeaks| does not currently support |gpuArray| inputs. You might be able to create your own simplified version...

10 years ago | 0

| accepted

Answered
Parfor on increasing array
|parfor| does support increasing arrays in this way, even if it is not necessarily desirable. To do that though, you must use |[...

10 years ago | 0

Answered
Why complex arrays take twice as much memory on GPU than on CPU ?
Based on the prior comments, I think I understand the problem now. Complex arrays on the GPU take up the same amount of memory a...

10 years ago | 2

Answered
Cell arrays and multiple GPUs computing
You could use |spmd| or |parfor| for this, but beware that this will involve making _copies_ of the data onto the GPUs used by t...

10 years ago | 0

Answered
How best to parallelize this simple code/algorithm?
For the code as written, since |jj| takes on each value in turn, you can simply flatten this into a single |parfor| loop, unless...

10 years ago | 0

Answered
For GPU computing, dedicated memory size will be important or not?
The amount of memory available in your GPU should not affect how quickly it performs calculations (all other things being equal)...

10 years ago | 0

| accepted

Answered
Undefined function 'svd' for distributed matrix
Firstly, you should construct your |distributed| array directly on the workers to avoid building the large array at the client, ...

10 years ago | 1

| accepted

Answered
fails to start the parpool
It looks like your system is running out of memory while trying to launch that many workers. How much RAM do you have on your sy...

10 years ago | 0

Answered
Is there any function to test if a mxGPUArray is empty or not?
There isn't a directly equivalent method, but you can call bool const isEmpty = (mxGPUGetNumberOfElements(myArray) == mwSiz...

10 years ago | 1

Answered
How do I set the path for Matlab workers to access packages when using a parallel pool?
It's a little tricky from your description to work out exactly what's gone wrong here, but I think it ought to be possible to re...

10 years ago | 1

Answered
Matlab link to new CUDA toolkit
The version of the CUDA toolkit used by a particular release of MATLAB is fixed, and cannot be changed. Later releases of MATLAB...

10 years ago | 0

Answered
How to read file sequentially in Parfor loop?
To get finer-grained control over the ordering of parallel operations, you can use <http://www.mathworks.com/help/distcomp/spmd....

10 years ago | 0

Answered
GPU or Intel Xenon Phi Coprocessor?
By default, Parallel Computing Toolbox uses as many workers as you have real cores on your system. The upper limit of 512 worker...

10 years ago | 0

Answered
Preserving gpuArray data across Multiple GPUs
Each MATLAB process can access only a single GPU at a time. The only way to preserve data when switching GPU devices is to call ...

10 years ago | 0

Answered
max function in gpu error
On the GPU, |arrayfun| supports only the elementwise version of |min| and |max| - i.e. the two input argument case. In this case...

10 years ago | 1

Load more