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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 0

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

más de 9 años hace | 1

| aceptada

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

más de 9 años hace | 0

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 2

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

más de 9 años hace | 0

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

más de 9 años hace | 1

| aceptada

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

más de 9 años hace | 0

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

más de 9 años hace | 3

| aceptada

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

casi 10 años hace | 0

| aceptada

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

casi 10 años hace | 1

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

casi 10 años hace | 0

| aceptada

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

casi 10 años hace | 0

| aceptada

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

casi 10 años hace | 0

| aceptada

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

casi 10 años hace | 0

| aceptada

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

casi 10 años hace | 0

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

casi 10 años hace | 0

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

casi 10 años hace | 1

Enviada


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

casi 10 años hace | 4 descargas |

4.5 / 5
Thumbnail

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

casi 10 años hace | 0

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

casi 10 años hace | 1

| aceptada

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

casi 10 años hace | 0

| aceptada

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

casi 10 años hace | 0

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

casi 10 años hace | 0

| aceptada

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

casi 10 años hace | 0

| aceptada

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

casi 10 años hace | 2

| aceptada

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

casi 10 años hace | 0

| aceptada

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

casi 10 años hace | 0

Cargar más