답변 있음
parallel processing fine balance
You're quite right that in this case, you're always inevitably going to be held up by the slowest worker. It's almost impossible...

거의 6년 전 | 0

| 수락됨

답변 있음
Pass NET-Object to parallel function (parfeval)
I do think parallel.pool.Constant is probably part of the answer here, but you need to make two changes: Make sure you perform ...

거의 6년 전 | 1

답변 있음
Parfor: Unable to perform assignment because the size of the left side is 98-by-50 and the size of the right side is 107-by-50
Unfortunately, error reporting from parfor has some limitations, and specifically it cannot indicate the precise line within the...

거의 6년 전 | 0

| 수락됨

답변 있음
Apply function row-wise on a tall array
You're on the right track with matlab.tall.transform, but you should call your function in that context. The function invoked by...

거의 6년 전 | 1

| 수락됨

답변 있음
Some workers go idle in parfor creating a waste of computation time
The parfor implementation uses a number of different strategies to try to keep the workers busy. However, sometimes these might ...

거의 6년 전 | 0

| 수락됨

답변 있음
Parallel optimization hanging on getCompleteIntervals
A few notes: The deadlock detection is for labSend and labReceive. Your parallel code is using parfor. There is no way that par...

거의 6년 전 | 1

답변 있음
mpiprofile viewer crashes unexpectedly
I suspect the debug breakpoint is interfering with the data transfer from the spmd block back to the client. I suppose the only...

거의 6년 전 | 0

| 수락됨

답변 있음
Issue with writematrix and parfor
You cannot write to the same file simultaneously from mulitple processes. (This is not a limitation specific to parfor - rather,...

거의 6년 전 | 0

답변 있음
interrupt a function when it takes too long
The simplest approach would be to modify the potentially long-running function so that it checks whether it has exceeded its tim...

거의 6년 전 | 1

답변 있음
Can ParallelServer be run from a client behind a NAT (connecting to cluster outside of NAT)
It should work to specify the routable address at the client using pctconfig. Something like pctconfig('hostname', '<routable a...

거의 6년 전 | 0

| 수락됨

답변 있음
Convert code to run on parallel
It's hard to tell exactly what computations you're performing there. It would be better if you could give us a reproducible exam...

거의 6년 전 | 1

| 수락됨

답변 있음
How to close client node when running a parpool job across multiple nodes of a cluster using slurm scheduler integration
You would be better off if you can submitting only a single job to the cluster, have that job be a batch job with the Pool optio...

거의 6년 전 | 0

| 수락됨

답변 있음
-r vs -batch when calling matlab in unix
(I'm not an expert here, just a user of the -batch option) The main advantages for me of the -batch option compared to -r for n...

거의 6년 전 | 1

| 수락됨

답변 있음
Parfor indexing for looping over edges and assigning to adjacent cell indices
I think this can be made to work, but it might be a little tricky. parfor is complaining because your output variables flux and ...

거의 6년 전 | 1

| 수락됨

답변 있음
Parfor solving optimization problems (Cplex) slower than for
Does the performance improve much / not much / not at all if you run the parfor loop a second time without closing the pool? If...

거의 6년 전 | 1

답변 있음
Parfor gives NaN when for does not
I'm not sure if this is the only problem, but the fact that you have a global variable set on the client and used by the workers...

거의 6년 전 | 0

| 수락됨

답변 있음
Error while using dct on gpu. Matrix dimensions must agree.
This appears to be a problem with the gpuArray version of dct. Thanks for reporting this.

거의 6년 전 | 0

답변 있음
SPMD - store all values and return
I tried the following, which worked as expected: spmd(2) if labindex == 1 labSend(magic(4), 2); else ...

거의 6년 전 | 1

| 수락됨

답변 있음
Parfor failure: cannot load object of class 'cSapModeL'. Its class cannot be found.
You need the code for the class cSapModel to be available on the workers. The following might help: addAttachedFiles(gcp(), 'cS...

거의 6년 전 | 0

답변 있음
Seeding random number generator in parfor properly
I'm not an expert by any means, but my understanding is that your proposed approach will give you reproducible results, but the ...

대략 6년 전 | 1

| 수락됨

답변 있음
inexplicable GPU memory usage
MATLAB caches GPU memory and FFT plans etc. to make subsequent operations more efficient. This does mean that the FreeMemory pro...

대략 6년 전 | 0

| 수락됨

답변 있음
Code that processes a Byte structure in parfeval crashes the parallell workers
I would suggest that you need to run whatever code you're currently using to initialize img on the desktop client, you instead r...

대략 6년 전 | 0

답변 있음
How to restart a worker in parpool?
You can't easily do this with parfor, but you can do something like this with parfeval. I haven't tried too hard here to make th...

대략 6년 전 | 1

| 수락됨

답변 있음
Running functions in parallel
In your code above, the two parfeval lines are initiating asynchronous function evaluation requests in parallel. You're also cal...

대략 6년 전 | 0

답변 있음
Slicing variable in parfor loop (restricted indexing)
Steve has already pointed out that your X indexing expressions make it ineligible for slicing as things stand. However, fortunat...

대략 6년 전 | 0

| 수락됨

답변 있음
CUDA kernel MaxThreadsPerBlock not constant
In your comment you mention that you see different values of MaxThreadsPerBlock for different kernels. This is expected. The CUD...

대략 6년 전 | 1

| 수락됨

답변 있음
sparse and gpuArray/sparse errors very odd! (with MWE)
@Matt J has already provided some great information here, just adding a few more thoughts on your specific cases. Case 1: spar...

대략 6년 전 | 1

| 수락됨

답변 있음
Calling parpool with SpmdEnabled = False
Unfortunately, only MJS and Local cluster types support SpmdEnabled = false. You might be able to use the "cluster parfor" appro...

대략 6년 전 | 0

| 수락됨

답변 있음
How do I specify the number of workers in parfeval without deleting and recreating my pool
Unfortunately, there's no API to constrain the number of workers from the pool eligible to be used by parfeval. What you could c...

대략 6년 전 | 1

| 수락됨

답변 있음
How to properly store variables to use with parfor?
Yes, your code is somewhat inefficient in that in each parfor loop you're sending the whole of Tree to the workers. Here are a c...

대략 6년 전 | 2

더 보기