Answered
Parfor variable cannot be classified
You've tripped over one of the limitations of for loops nested within parfor. This is described in the doc. The requirement is: ...

5 Monate ago | 1

| accepted

Answered
Parfor becomes serial half-way through computation
parfor uses heuristics to try and divide up loop execution into sub-ranges to maximise worker utilisation, but it sounds like th...

5 Monate ago | 0

Answered
Parallelizing computation with memory restrictions
Ok, this is somewhat dependent on what it is that you need to do with the results, but here's one way that you can avoid replica...

5 Monate ago | 1

Answered
How do I execute parallel computing in Matlab without altering my script?
It's not quite clear what you're trying to achieve here. You should launch parpool only if your script uses parallel language fe...

5 Monate ago | 0

| accepted

Answered
Understanding parfor restrictions with indexing
The indexing restrictions in parfor range from those which are required to make the loop iterations provably order-independent (...

5 Monate ago | 1

| accepted

Answered
Error using gpuArray/subsasgn
You can avoid this error by ensuring that your subscript contains only unique values, using the MATLAB function unique. For exam...

5 Monate ago | 0

| accepted

Answered
Parfor waitbar : How to do this more cleanly?
Hm, I've been meaning to tidy up my work-in-progress parallel.pool.DataQueue pool waitbar for quite a while. Here's roughly what...

5 Monate ago | 0

| accepted

Answered
Unexpectedly slow performance of eig with parfor
As you rightly point out, there are many factors that could be at play here. Here are the factors that spring to mind when looki...

5 Monate ago | 1

| accepted

Answered
How to speed up a parfor loop with large broadcast variables
It seems from your code that you should be able to slice your large variables idx and W. This would mean that each element of th...

5 Monate ago | 0

| accepted

Answered
Memory issue with eig function and GPU Array
Using your reproduction steps, I was able to see the problem using R2017b, but this appears to be fixed in R2019a - so please tr...

5 Monate ago | 1

| accepted

Answered
Parfeval blocks parfor loop evaluation
This is expected behaviour. Unfortunately, there is currently no way to overlap parfeval and parfor. Your best bet is probably t...

5 Monate ago | 0

| accepted

Answered
[GPU] Why do GFLOPS of element-wise matrix operations (addition, multiplication) seem to scale poorly as compared to e.g. mtimes?
The main factor here is that MTIMES (i.e. matrix-matrix multiplication) is compute bound, where as PLUS and TIMES (element-wise ...

6 Monate ago | 1

| accepted

Answered
Parallel Computing - how to run jobs from clients on servers with the same version.
Firstly, you need to ensure that the correct version of MATLAB Distributed Computing Server (MDCS) is installed on your cluster....

6 Monate ago | 0

Answered
Calling sets of INPUTS in a FUNCTION in a PARFOR loop
Did you try something like this: graphs = {graph1, graph2, graph3}; Matrix1s = {Matrix11, Matrix21, Matrix31}; Matrix2s = {Ma...

6 Monate ago | 1

| accepted

Answered
AttachedFiles in parfor on cluster
Firstly, AutoAddClientPath modifies the path on the workers to match the path on the client. This works only when the client and...

6 Monate ago | 0

Answered
Sliced variable issue - variable cannot be classified
I augmented your code a tiny bit to make it executable, and it works fine in MATLAB R2019a, and I checked all the way back to R2...

6 Monate ago | 0

| accepted

Answered
How to use the matfile function to call and slice up a very large structure and use it in parfor without having broadcast variable warning?
In this case, the warning about broadcasting the matfile object is probably safe to ignore. The point is that the matfile object...

6 Monate ago | 0

| accepted

Answered
simulation based optimization using parallel computing, which one to be added to workers folders?
You haven't really given enough detail for me to give you particularly concrete suggestions, but here are a few thoughts anyway....

7 Monate ago | 0

Answered
Error using histogram in parlor-loop
Unfortunately, histogram tries to extract the name of the input variable, and this causes the transparency violation. You can wo...

7 Monate ago | 1

| accepted

Answered
GPU/CUDA API Change with Interleaved Complex Data
gpuArray data has always been stored in complex-interleaved format since its introduction in R2010b. The mxGPUGetData function a...

7 Monate ago | 0

| accepted

Answered
how to get parpool to pause at breakpoints?
Unfortunately, it is not possible to use the MATLAB debugger to debug code running on workers. The normal workaround is to liber...

7 Monate ago | 0

| accepted

Answered
Broadcast / Sliced variable implementation
You can use ticBytes and tocBytes to show that in your first example, the warning is accurate and R will not be sliced. This lim...

7 Monate ago | 1

| accepted

Answered
how to run a waitbar in a batch script
This is expected. The worker running your batch job has no access to your display, and cannot display any graphics (including a ...

7 Monate ago | 0

| accepted

Answered
how many NumWorkers do I have?
There's a difference between pmode and parpool. Behind the scenes, they both share some functionality, and there's some ... unin...

7 Monate ago | 2

Answered
PCT : cannot cancel a running job without a PCT chrash
When you run a parallel pool, PCT uses a parallel.Job behind the scenes to launch and co-ordinate the workers. By directly cance...

7 Monate ago | 0

| accepted

Answered
Batch saves the window screenshot in Task1.in.mat file
You haven't really given us enough reproduction steps to see exactly what's going on here, but I'm going to take a wild stab in ...

8 Monate ago | 0

Answered
Loop through structure elements with parfor
Given the following example data myStruct = struct('one', rand(1), ... 'two', rand(2), ... 'three', rand(3)); My sli...

8 Monate ago | 0

| accepted

Answered
write an imgae of type gpuarray
Try imwrite(gather(res), 'myfile.jpg')

8 Monate ago | 0

| accepted

Answered
Long transmission times of parfeval with large parallel.pool.Constant objects
You are correct that parallel.pool.Constant data is already available on the workers after construction. It's not clear to me wh...

8 Monate ago | 1

Answered
PARFOR slicing of user-defined objects
The parfor machinery decides whether a variable reference is "sliced" or not by examining the form of indexing used, paying no r...

8 Monate ago | 1

| accepted

Load more