回答済み
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年以上 前 | 0

| 採用済み

回答済み
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年以上 前 | 0

| 採用済み

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 1

| 採用済み

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 0

| 採用済み

回答済み
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年以上 前 | 2

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 1

| 採用済み

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 3

| 採用済み

回答済み
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年以上 前 | 0

| 採用済み

回答済み
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年以上 前 | 1

回答済み
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年以上 前 | 0

| 採用済み

回答済み
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年以上 前 | 0

| 採用済み

回答済み
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年以上 前 | 0

| 採用済み

回答済み
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年以上 前 | 0

| 採用済み

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 1

送信済み


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

9年以上 前 | ダウンロード 5 件 |

4.5 / 5
Thumbnail

回答済み
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年以上 前 | 0

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

10年弱 前 | 1

| 採用済み

回答済み
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|...

10年弱 前 | 0

| 採用済み

回答済み
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...

10年弱 前 | 0

回答済み
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...

10年弱 前 | 0

| 採用済み

回答済み
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, ...

10年弱 前 | 0

| 採用済み

回答済み
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 ...

10年弱 前 | 2

| 採用済み

回答済み
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...

10年弱 前 | 0

| 採用済み

回答済み
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,...

10年弱 前 | 0

さらに読み込む