Answered
Behaviour ofparfeval depends on debugging state (Bug?)
I suspect this is because when you don't stop in the debugger, the function can return as soon as F gets into state 'running', i...

5 months ago | 0

| accepted

Answered
Possible to speed up this gpuArray calculation with arrayfun() (or otherwise)?
A few points here. Firstly, (and most importantly), to time code on the GPU, you need to use either gputimeit, or you need to in...

5 months ago | 1

| accepted

Answered
User defined functions with dynamic parameterisation in a parfor loops
This documentation for parfor notes various limitations - and also notes explicitly that you can create anonymous functions insi...

5 months ago | 1

| accepted

Answered
In parfor-loop, can I call a multi-threaded mex and get some speed-up?
You should be able to run a multi-threaded MEX file correctly inside a parfor loop. However, you will be oversubscribing your ma...

6 months ago | 0

| accepted

Answered
Parallel computing, occasionally get Exception message "Message Catalog MATLAB:load was not loaded from the file"
The probable cause of this is the file handle limit. This page: https://www.mathworks.com/help/parallel-computing/recommended-sy...

6 months ago | 0

| accepted

Answered
How can I run parallel job on a specific node?
Based on this stackexchange answer https://unix.stackexchange.com/questions/443438/how-to-submit-a-job-to-a-specific-node-using-...

6 months ago | 0

| accepted

Answered
Are temporary variables eliminated at the end of each parfor loop on every single worker?
Yes, as mentioned in the documentation https://www.mathworks.com/help/parallel-computing/temporary-variable.html temporary varia...

6 months ago | 0

| accepted

Answered
Help with parfor progress bar using data queue
The problem here is that the documentation example is using a nested function, which is able to acces variables in the containin...

7 months ago | 1

| accepted

Answered
warning messages when using parfor in appdesigner app
It looks like you're either implicitly or explicitly using ASI within your parfor loop. You don't show the problematic code, but...

7 months ago | 0

| accepted

Answered
Distributing individual tasks over my pool of workers, scaling should be perfect
There are several confounding factors here that go some way at least to explaining your timings. In your first example (the fo...

7 months ago | 0

Answered
Problem using parfor for reading variable sized chunks of data into a larger pre-allocated container
There's no simple way to do this without at least some duplication of data. With some duplication of data, you could do somethin...

8 months ago | 0

| accepted

Answered
MATLAB NVIDIA Ampere GPU Support
See this answer: https://www.mathworks.com/matlabcentral/answers/592198-does-matlab-support-nvidia-ampere-cards-for-gpu-computat...

9 months ago | 0

Answered
"unable to classify the variable in the body of the parfor-loop"
The doc page you mention describes the valid ways of getting results out of a parfor loop. In your case, you appear to be comput...

11 months ago | 0

Answered
cplex object params not transferred to parfor loop
The most likely cause of the problem here is that the output of Cplex cannot be saved to a file and then loaded again. Transfer ...

11 months ago | 0

| accepted

Answered
Variable in parfor cannot be classified, error not shown in editor
The code you've shown there isn't complete enough for us to attempt to run and see the error you're encountering. It would be he...

11 months ago | 1

| accepted

Answered
parallel loop in matlab
Output variables in parfor loops must be either sliced outputs or reduction outputs. More info here in the doc. In this case, yo...

11 months ago | 0

Answered
MATLAB parfor index exceeds the number of array elements
To run a parfor loop, MATLAB analyses each variable used within the loop and classifies them. In the original code, non_crack_by...

11 months ago | 1

| accepted

Answered
how can i use pcg with Parallel Computing Toolbox ?
Simply: this problem is far too small for distributed arrays to be effective. You should use distributed arrays only for problem...

11 months ago | 1

Answered
The Tag Field of labSendReceive() Function
The function labSendReceive requires matched communication, so the receiver always knows which lab sent the data. In your exampl...

11 months ago | 0

| accepted

Answered
An Issue with SPMD
I think the problem here is the transformation of data types from outside spmd to inside. If you create a variable inside an spm...

11 months ago | 0

| accepted

Answered
Fast gpuArray slicing for cart2sph
Like all arrays in MATLAB, gpuArray data is stored in "column-major" order. One consequence of this is that it is much more effi...

11 months ago | 0

| accepted

Answered
parfor problems ( add attached files)
I think the problem here is that "fbt_.m" is a script file. You should convert it to a function. More in the doc about scripts a...

12 months ago | 0

| accepted

Answered
fetchNext idx always returning 1
The first output of fetchNext tells you which of the futures you passed in as an input has just completed. In your case, you are...

12 months ago | 1

| accepted

Answered
Why does performance of functions saturate with number of cores using parfeval but not with parfor?
The main difference between parfor and parfeval is that in the parfeval case, you are responsible for scheduling the work on the...

12 months ago | 0

| accepted

Answered
The variable newMap in a parfor cannot be classified.
This loop cannot run because the variable newMap is being read from and written to in arbitrary locations as the loop progresses...

1 year ago | 0

Answered
Progress bar with parfor and nohup
A really simple approach would be just to print out every 1000 iterations. In other words parfor i = 1:N if mod(i, 1000) =...

1 year ago | 0

| accepted

Answered
share data between workers while retrieving data from handle class within parpool
To get data out of a parfor loop, you must have either a "sliced output" or a "reduction output". Your code example above has ne...

1 year ago | 0

Answered
Restart a parpool worker
There's no simple way to do this when using parfor with parpool unfortunately. I can think of a couple of workarounds that might...

1 year ago | 0

Answered
How to use fetchNext correctly?
It looks like your seeder function depends only on the output of the corresponding call to partial_seeder. It might also be simp...

1 year ago | 0

Answered
How do I distribute N 3-dimensional (large) arrays for processing across N workers?
The best approach probably depends on the operations you need to perform on this Nx8xSxP array. Are the operations that you wish...

1 year ago | 0

| accepted

Load more