Beantwortet
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...

mehr als 9 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 9 Jahre vor | 0

| akzeptiert

Beantwortet
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 ...

mehr als 9 Jahre vor | 0

Beantwortet
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...

mehr als 9 Jahre vor | 1

| akzeptiert

Beantwortet
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...

mehr als 9 Jahre vor | 0

Beantwortet
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...

mehr als 9 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 9 Jahre vor | 2

Beantwortet
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...

mehr als 9 Jahre vor | 0

Beantwortet
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 ...

mehr als 9 Jahre vor | 1

| akzeptiert

Beantwortet
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); ...

mehr als 9 Jahre vor | 0

Beantwortet
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...

mehr als 9 Jahre vor | 3

| akzeptiert

Beantwortet
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...

fast 10 Jahre vor | 0

| akzeptiert

Beantwortet
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...

fast 10 Jahre vor | 1

Beantwortet
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...

fast 10 Jahre vor | 0

| akzeptiert

Beantwortet
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...

fast 10 Jahre vor | 0

| akzeptiert

Beantwortet
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...

fast 10 Jahre vor | 0

| akzeptiert

Beantwortet
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...

fast 10 Jahre vor | 0

| akzeptiert

Beantwortet
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...

fast 10 Jahre vor | 0

Beantwortet
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 ...

fast 10 Jahre vor | 0

Beantwortet
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 ...

fast 10 Jahre vor | 1

Gesendet


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

fast 10 Jahre vor | 4 Downloads |

4.5 / 5
Thumbnail

Beantwortet
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...

fast 10 Jahre vor | 0

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

fast 10 Jahre vor | 1

| akzeptiert

Beantwortet
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|...

fast 10 Jahre vor | 0

| akzeptiert

Beantwortet
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...

fast 10 Jahre vor | 0

Beantwortet
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...

fast 10 Jahre vor | 0

| akzeptiert

Beantwortet
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, ...

fast 10 Jahre vor | 0

| akzeptiert

Beantwortet
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 ...

fast 10 Jahre vor | 2

| akzeptiert

Beantwortet
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...

fast 10 Jahre vor | 0

| akzeptiert

Beantwortet
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,...

fast 10 Jahre vor | 0

Mehr laden