Answered
How to run multiple m-files parallelly in MATLAB
If you have Parallel Computing Toolbox, you could do something like this (presuming each |file##.m| contains a function): f...

9 years ago | 0

| accepted

Answered
Issue with launching Parallel Workers when using TORQUE or PBS
One problem might be that the job storage locations are colliding, and you're ending up with many processes trying to write data...

9 years ago | 0

| accepted

Answered
Multidimensional algorithmic array loop
I imagine you meant to index |v| using the loop variables. In which case, you need to rearrange things to ensure there's only a ...

9 years ago | 0

Answered
Help with using parfor (exceed matrix dimensions error)
I tried replacing your |parfor| loop with a |for| loop, and got an indexing error on the line grid{t,1} = grid{t,1} + grid...

9 years ago | 1

| accepted

Answered
How can I use dll (writed in C++) in matlab?
Further to Walter's suggestion (which might entail some modifications to fit in with the CUDAKernel API), you can also access th...

9 years ago | 0

Answered
using a parallel.pool.Constant variable in multiple parfor loops
In this case, the |parallel.pool.Constant| you're creating has a cell array of 20 elements on each worker. In your first |parfor...

9 years ago | 0

| accepted

Answered
Avoid serializing and unserializing when calling parfor/spmd => can I pass object by reference between matlab workers?
One option _might_ be to use <http://uk.mathworks.com/help/distcomp/parallel.pool.constant.html |parallel.pool.Constant|> to sto...

9 years ago | 2

Answered
Hello, I am trying to wright a variable directly on the GPU using the following command:
That's the old syntax from R2011a or so. In R2015b, you can do simply: A5 = rand(3000, 3000, 'gpuArray'); (The direct eq...

9 years ago | 0

Answered
How to control the random number generation when using a parfor loop
|parfor| does not guarantee to run the the iterates of the loop in any particular order, and therefore you have to work hard to ...

9 years ago | 1

| accepted

Answered
Error using Parallel Computing Toolbox with INTLAB
I suspect this is related to the transfer of an object of type |infsup|. You could check this as follows: x = infsup(1,2); ...

9 years ago | 0

Answered
How to update variable within a matfile inside a parfor loop?
It might be possible to overcome the "slicing" problems you're seeing here - but you're still left with the fundamental underlyi...

9 years ago | 3

| accepted

Answered
issue with Repeating Random Numbers in parfor-Loops
I think you missed out a crucial piece of the example. In your code, you're accessing the current global stream without having e...

9 years ago | 0

| accepted

Answered
Execute run phase of Simulink model in parallel
You can use |parfevalOnAll| to run the |'compile'| and |'term'| phases, like so: parfevalOnAll(@vdp, 0, [], [], [], 'compil...

9 years ago | 1

Answered
parfor inefficiency for large matrix operations
This appears to be because MATLAB's intrinsic multi-threading is already doing a decent job of running your code in parallel. Wh...

9 years ago | 0

| accepted

Answered
How to dynamically allocate workers while job is running?
No, it is not possible to add workers to a communicating job after it has been submitted. If you can restructure your jobs to al...

9 years ago | 0

| accepted

Answered
How do I use the distcomp pause function?
Did you change your default parallel profile to point to an |MJS| cluster? If not, the default cluster type is |Local|, which do...

9 years ago | 0

| accepted

Answered
pagefun makes an error
|pagefun| supports only a limited set of functions. These are described <http://uk.mathworks.com/help/distcomp/pagefun.html in t...

9 years ago | 0

| accepted

Answered
How can I use pagefun?
|pagefun| supports only a limited set of functions. These are described <http://uk.mathworks.com/help/distcomp/pagefun.html in t...

9 years ago | 0

Answered
Why do I see "Conversion to logical from gpuArray is not possible"
In the case if gpuArray(nan), 'hello', end the error message you're seeing is slightly misleading. The error you should ...

9 years ago | 0

Answered
What is the best way to work with large "Table" data type variables?
New in R2016b is the ability to create a "tall" table which lets you perform operations on the table as if it were an in-memory ...

9 years ago | 1

Submitted


PARFOR Progress Monitor
A Java progress monitor to track progress through a PARFOR loop running MATLABĀ® workers

9 years ago | 9 downloads |

4.5 / 5
Thumbnail

Answered
why does the paralelle calculation don't work and tell me "The variable B in a parfor cannot be classified."
Unfortunately, in this case, the |parfor| machinery cannot tell that you're overwriting the whole of |B| on each iteration of th...

9 years ago | 0

Answered
Parpool slow with chol operation
MATLAB's |chol| implementation is intrinsically multi-threaded. Therefore, |chol| is already fully utilising all the cores on yo...

9 years ago | 1

| accepted

Answered
Using parallel.pool.constant with parfeval
You need to explicitly pass the instance of |parallel.pool.Constant| into your |parfeval| call - it doesn't work like a |global|...

9 years ago | 0

| accepted

Answered
Cannot run a batch for function and script
If you want to run a |batch| job, you need to specify a function handle and then the number of output arguments, and then the in...

9 years ago | 0

Answered
reading and writing a cell array in a parfor loop
One of the restrictions of |parfor| is that for a _sliced_ variable, you need to use precisely the same form of indexing each ti...

9 years ago | 0

| accepted

Answered
Using GPU, multiply a 3D matrix by a 2D matrix (slicewise)
In this case, you can use <http://uk.mathworks.com/help/distcomp/pagefun.html |pagefun|>. For example: X = rand(10, 10, 4, ...

9 years ago | 0

| accepted

Answered
Parfor possible, though iterations depend
There are two different types of output possible from a |parfor| loop. The simplest is the "sliced" output where each iteration ...

9 years ago | 2

| accepted

Answered
Using Java Robot class in Parfeval
If you're referring to |java.awt.Robot|, then this will not work since the MATLAB worker executing the body of the |parfeval| fu...

9 years ago | 0

| accepted

Answered
Is it possible to use pctRunOnAll as a batch?
While you can use |pctRunOnAll| with |batch|, it's a little awkward. Here's what you need to do: j = batch(@pctRunOnAll, 0,...

9 years ago | 0

Load more