Answered
Logging parellel pool worker diaries to single file
Instead of |parfor|, you could use |parfeval| to run stuff on the workers. This will require a bit of restructuring - you'll nee...

8 years ago | 1

| accepted

Answered
I got NaN using parfor while the same code works with for loop
|dbstop if naninf| always causes execution to stop during setup of a |parfor| loop. This turns out to be expected behaviour (par...

8 years ago | 0

Answered
Are file mutexes available in Matlab these days?
Probably your best bet with the current implementation is to use a <https://uk.mathworks.com/help/distcomp/parallel.pool.dataque...

8 years ago | 3

| accepted

Answered
Get Average Running Duration from PCT Batch Jobs
Here's how you can use the information stored in the jobs to get a running duration in seconds for each job that has a valid |St...

8 years ago | 1

| accepted

Answered
Why doesn't MATLAB support 'cpuArray' for some array creation functions?
Another workaround is to use a |cell| array. if useGpu arg = {'gpuArray'}; else arg = {}; end A = rand(3...

8 years ago | 1

| accepted

Answered
I used matlab 2016a ,GPU are AMD Radeon HD 7600M and Inter HD Graphics 4000, The question is cannot load the CUDA driver, please tell me the answer, think you
The |gpuArray| support in Parallel Computing Toolbox requires an NVIDIA GPU, and the latest NVIDIA CUDA driver, as <http://www.m...

8 years ago | 0

Answered
How can I pass a TCPIP handle to a parfeval worker
The workers executing the body of your |parfeval| requests are separate processes, so you cannot send objects of class |tcpip| t...

8 years ago | 0

Answered
using feval() to launch CUDA kernels from Matlab
1. Input/output variables to |CUDAKernel.feval| are operated on in-place in the usual way for MATLAB data. See <https://blogs.ma...

8 years ago | 1

Answered
how to avoid resending large data which is in the workspace of a function handle?
It's slightly tricky to use |parallel.pool.Constant| in this case because the constructor assumes that if you pass in a function...

8 years ago | 0

| accepted

Answered
Running MATLAB in headless mode.
On UNIX platforms, you can use |matlab -nodisplay| (there's no equivalent on Windows).

8 years ago | 1

| accepted

Answered
How to add a new variable to a tall table which depends on information available in other lower size tall table?
You can use a |tall| |table| <https://www.mathworks.com/help/matlab/ref/table.join.html |join|> or method to do this. Here's a s...

8 years ago | 0

Answered
Matrix Multiplication on GPU quite slow?
I would recommend using <https://uk.mathworks.com/matlabcentral/fileexchange/34080-gpubench GPUBench> to get an understanding of...

8 years ago | 0

Answered
How to correctly read in variable names using datastore and tall functions
The |datastore| documentation states that variable names are read only from the first file. You can work around this by using <h...

8 years ago | 2

Answered
Wrong results with cumsum on logical tall array?
Thanks for reporting this - this is indeed a bug in the |tall| implementation of |cumsum| for |logical| arrays. You can work aro...

8 years ago | 1

| accepted

Answered
How can i create an array whose length indirectly depends on parfor loop's index?
Strange, that code works as written for me, so I'm not sure what's going wrong for you. But even so, I don't think it would do w...

8 years ago | 0

| accepted

Answered
Unable to use parfor with strcmpi
The variable |data_2| is not being sliced because every iteration of the |parfor| loop needs access to the whole array. This is ...

8 years ago | 0

| accepted

Answered
Batching different functions in a job
You can use <https://www.mathworks.com/help/distcomp/wait.html |wait|> to see when your |batch| jobs have finished... perhaps so...

8 years ago | 0

Answered
Easily Reproducible GPU Bug in R2017a
This does indeed appear to be a bug. Thanks for reporting this, I have passed this report on to the appropriate development team...

8 years ago | 0

| accepted

Answered
How to construct a Sliced Reduction Variable in MALTAB parallel for loop
|parfor| doesn't support the notion of a variable that is both _sliced_ and _reduced_. You need to recast things so that you hav...

8 years ago | 0

Answered
Parallel job bring me same random numbers
Parallel Computing Toolbox deliberately sets the random number state of workers such that the each task of a job starts from a k...

8 years ago | 1

| accepted

Answered
Inevitable broadcast variable in parfor?
If I've understood correctly, you can convert your non-sliced data into sliced data at the client before the loop starts. One wa...

8 years ago | 1

| accepted

Answered
How can i simulate equity prices with parfor?
To get output from a |parfor| loop, you need to write to an output variable in either a "sliced" or "reduction" manner. For a "s...

8 years ago | 0

| accepted

Answered
Using .Net Assembly Methods in parfor Parallel loops.
In your example, the variable |SP| is being transferred to the workers, and that uses the same machinery as |save| and |load| (d...

8 years ago | 0

Answered
Running long simulations on Matlab Online
You could run a <https://www.mathworks.com/help/distcomp/batch.html |batch|> job submitted from your desktop machine to a cluste...

8 years ago | 0

| accepted

Answered
What happens if the number of workers vacant are less than the minimum value in the specified range of SPMD?
The <https://www.mathworks.com/help/distcomp/spmd.html |spmd|> reference page states: |spmd(m,n), statements, end| uses a min...

8 years ago | 0

| accepted

Answered
Why doesn't a parfor loop run properly with a custom object with saveobj and loadobj methods?
You can use the undocumented flag |'debug'| to a |parfor| loop to diagnose this sort of problem (normally the |loadobj| function...

8 years ago | 1

Answered
How do I retrieve the pool worker index from an asynchronous parallel function evaluation using MATLAB's parfeval?
The function |labindex| indicates how many workers are running in parallel *only* inside an |spmd| block. However, with |parfeva...

8 years ago | 0

Answered
How can I degug inside a parfor loop?
You can debug code called from the body of a |parfor| loop if no parallel pool is open, but unfortunately you cannot debug the b...

8 years ago | 1

| accepted

Answered
Parfor in simulink linearization
Perhaps you can use <https://uk.mathworks.com/help/simulink/slref/parsim.html |parsim|> - this makes it simpler to run Simulink ...

8 years ago | 0

Answered
parfor fails with loop indices being uint64
This is indeed a bug in the implementation of |parfor|. Thanks for reporting this, we'll endeavour to fix this in a future relea...

8 years ago | 0

| accepted

Load more