Answered
Numerical integration with the GPU? Trapz appears to be unsupported in arrayfun, are there any alternatives?
In this case, I think you can simply use the vectorized version of |trapz|, and then apply |arrayfun| to expand |IntegratedRadia...

11 years ago | 0

| accepted

Answered
Struggling a bit with writing a function and passing it to the GPU with via arrayfun
To use |arrayfun| in this way, you need each of your vectors to define a different dimension. Something like this simplified exa...

11 years ago | 2

| accepted

Answered
parallel coding: how to solve linear system?
Unfortunately, as the error message states, you cannot use the |\| operator with sparse distributed arrays at this time.

11 years ago | 0

| accepted

Answered
The variable heuristic_map in a parfor cannot be classified.
I think the fix here is simple - when using a nested |for| loop inside a |parfor| loop, the bounds of that loop must be known to...

11 years ago | 0

| accepted

Answered
Suppress error warnings in matlab (when using parfor loop)
If the warning is being generated on the workers, you need to apply the warning suppression there too. You could do it like so: ...

11 years ago | 3

| accepted

Answered
Calling nested functions inside a parfor loop
Yes, this is expected behaviour - the MATLAB workers operating on the body of your |parfor| loop are separate MATLAB processes, ...

11 years ago | 2

| accepted

Answered
How can I modify the code for using 'parfor'?
The messages about variables being "index but not sliced" are warnings, and are simply letting you know that you _might_ be tran...

11 years ago | 0

Answered
Parpool works on 2014b but not on 2015a
This is definitely not expected, and might be an installation problem or similar. I suggest contact MathWorks support directly t...

11 years ago | 0

Answered
For loop in parfor loop
The limitation you're hitting here is that any |for| loop nested inside a |parfor| loop must have constant bounds to allow slici...

11 years ago | 3

Answered
How to adapt my for loop to get it working with parfor? (ODE solver)
For |dy| to be successfully "sliced", you need to index it in precisely the correct form - where one of the subscripts is the lo...

11 years ago | 1

| accepted

Answered
Is it possible to use use `parfor` for parallel computing in Matlab in these codes?
The problem here is that it we can see that you're not using `Dat` in a way that is order-dependent, but the static analysis mac...

11 years ago | 0

| accepted

Answered
Use both multi core CPUs
You need to edit the |'local'| parallel profile to set the maximum number of workers to 32. See <http://www.mathworks.com/help/d...

11 years ago | 2

| accepted

Answered
Parfor loop and variable length output
You have several options here. Probably the simplest is to return a |cell| array and then concatenate the contents. It might not...

11 years ago | 0

| accepted

Answered
How can I load and save pictures, while executing the program in parallel?
Whether the workers can see that network location depends on the "security level" you're using (from the directory location you ...

11 years ago | 0

Answered
parallel programming toolbox shutting down
You can disable the |IdleTimeout| behaviour of the parallel pool in one of 2 ways: # Bring up the "parallel preferences" (ava...

11 years ago | 7

Answered
How can I convert this loop from a 'for' loop to a 'parfor' loop?
I suspect this is not likely to be possible directly since you are effectively updating arbitrary elements of |M| on each iterat...

11 years ago | 0

Answered
How can I keep what a function returns between to calls in a loop ?
|PARFOR| can only run when the iterations of the loop are independent. In your case, because the |2:N| iterations depend on the ...

11 years ago | 0

Answered
saving graphs by parfor command cause to empty figure
If I've understood correctly, you are creating the figures at the client and trying to call |print| from the workers. This will ...

11 years ago | 0

| accepted

Answered
How to import objects and models in parallel implementation
The parallel pool workers are separate MATLAB processes, so you might well need to create new serial port objects on the workers...

11 years ago | 0

Answered
function status in parfeval / fetchOutputs
You can check the |State| property of the |Future| object returned by |parfeval| to see if it has finished. You might also be ab...

11 years ago | 0

| accepted

Answered
Changing the size of SPMD
You probably have existing |distributed| arrays or |Composite| objects in your workspace - these prevent you from changing the ...

11 years ago | 1

Answered
parallel.gpu.CUDAKernel on MATLAB Home Edition
You could try this workaround: <http://stackoverflow.com/questions/8900617/how-can-i-setup-nvcc-to-use-visual-c-express-2010-x64...

11 years ago | 0

Answered
Assigning GPUs to workers in local cluster
While it might be possible to do what you're asking, it's definitely tricky since PARFOR does not allow direct communication bet...

11 years ago | 0

Answered
flag whether or not a program has been called by createTask
One simple way is to check the return of <http://www.mathworks.com/help/distcomp/getcurrenttask.html |getCurrentTask|>. This wil...

11 years ago | 2

| accepted

Answered
Parfor loops skipping an index
Yes, defining all the fields of |temp| beforehand works around this problem, like so: temp=struct('myfield1',num2cell(ones(...

11 years ago | 1

Answered
Workers aborted when saving surf-figures to disk using parfor
Unfortunately this is likely to be caused by a known bug, the report is here: <http://www.mathworks.co.uk/support/bugreports/253...

11 years ago | 1

| accepted

Answered
Matrix multiplication and multiprocessing
I _think_ the reason you're seeing only ~50% processor utilisation is because of hyperthreading. According to <http://ark.intel....

11 years ago | 0

Answered
Why is batch() so slow?
Firstly, if you're using the |local| cluster type, then the |batch| command absolutely does need to launch the worker MATLAB pro...

11 years ago | 3

| accepted

Answered
Parfeval memory leak? Clear memory on parallel workers?
Please could you try applying the workaround from <http://www.mathworks.com/support/bugreports/1134654 this bug report>. (The bu...

11 years ago | 0

| accepted

Answered
How to solve a parallel pool start failure?
That error is related to the communication channels that the parallel pool infrastructure is trying to set up. I'm not quite sur...

11 years ago | 0

Load more