已回答
Set the number of parallel workers (optimization)
64, though you can try more. You might find a 10-20% improvement as you add more workers (most likely not 2x as you get to 128)...

2 years 前 | 0

已回答
Dot indexing is not supported for variables of this type on a parfor line with no dot indexing.
My guess is that it has to do with your ActiveX Server, specifically if Veh_TT_measurement is used in your parfor. See if this ...

2 years 前 | 0

已回答
Queue simulation of two parallel servers
If I'm reading this right, I think this code for y=1:10000 inter_arrival_times(y) = exprnd(1/arrival_rate_m); arrival...

2 years 前 | 0

| 已接受

已回答
Parallel Pool No data errors
Glad you mentioned that you unplugged the Ethernet cable, that helped me track this down a bit (I think). It appears as though ...

2 years 前 | 0

已回答
Does the MATLAB python interface support parallel processing?
I can't see a single python session being the issue. I'm betting you ran out of memory. Try the following I'm assuming you ha...

2 years 前 | 0

已回答
Matlab Parallel Computing on Cluster - File not found (Task8-32.in.mat)
Hi @Antonio Cioffi. I'm not sure why mpiexec is crashing, but I can tell you why you're getting validation issues. When you sw...

2 years 前 | 0

已回答
How does parallel computing toolbox works in nested loop?
MATLAB will run the inner parfor loop as a for-loop. Therefore, in your example, where you have a parallel pool of 8 workers, 2...

2 years 前 | 0

| 已接受

已回答
SPMD Video Writing with dynamic frames
This might be an approach. Quite a bit of this is pseudo code and probably needs refining to synchronize the images into correc...

2 years 前 | 0

已回答
Parallel Computing Toolbox and parsim: two different versions of Matlab?
Consider using parfor and sim, but read this first Using sim Function Within parfor - MATLAB & Simulink (mathworks.com)

2 years 前 | 0

已回答
parfor-value is not accessible
Can you reformat you post by highlighting your code and putting it into a CODE block? How are you running your parallel code, f...

2 years 前 | 0

已回答
How to parallelize MATLAB function on the CPU
As @Arka mentioned, consider using the Parallel Computing Toolbox. In your case, I would suggest looking at rewriting your oute...

2 years 前 | 0

已回答
How to shut down all running workers of paarpools?
Hi @Felix. If even if a single worker crashes, all workers will terminate. Can you elaborate a bit more on a couple of things ...

2 years 前 | 0

已回答
MATLAB Parallel server: save output data of each worker by program independent job
Try the following function [] = test_func(input_var) % Store the local hostname for future runs persistent HN if isempty(H...

2 years 前 | 0

| 已接受

已回答
How to reset job ID in job monitor?
If you delete all of the jobs and then restart MATLAB, I would expect the job ID to be reset to 1.

2 years 前 | 0

已回答
parpool sorting out the default number of workers
Hey @Bruno Luong, per your link, you have 8 Efficient cores, hence 14 (6+8) cores. For R2022b (which I think is the version you...

2 years 前 | 0

已回答
Best parallel computing option for heavily serialized code
The very nature of a cascading algorithm (i.e., dependent on previous values) makes it impossible to parallellize. However, per...

2 years 前 | 1

已回答
Parallel sever: Request GPU via SLURM
Hi @Christopher McCausland, try the following cluster = parcluster(); cluster.AdditionalProperties.AdditionalSubmitArgs = '--g...

3 years 前 | 1

| 已接受

已回答
parallel computing - cluster profile validation job test(create job) stuck in running
Any chance you have a local pool already running? If so, this would block validation. If not, I would suggest reaching out t...

3 years 前 | 0

已回答
Connecting to a parallel server over the Internet
The "server" machine has to be reachabe from the Internet. If this is an isolated machine, without a public IP address, you won...

3 years 前 | 0

已回答
How to have a global variable that can be accessed and edited and used inside a parfor loop? Or, how to show progress of a parallel job?
Workers in a parfor-loop can't communicate with each other, so a global variable won't work. Consider using a DataQueue. The p...

3 years 前 | 1

| 已接受

已解决


Get the length of a given vector
Given a vector x, the output y should equal the length of x.

3 years 前

已解决


Flip the vector from right to left
Flip the vector from right to left. Examples x=[1:5], then y=[5 4 3 2 1] x=[1 4 6], then y=[6 4 1]; Request not ...

3 years 前

已解决


Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

3 years 前

已解决


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

3 years 前

已回答
Why am I getting invalid file identifier error?
fopen will return two output arguments: the file id and an error message if it failed (i.e., the file id is <0). Add the follow...

3 years 前 | 0

已回答
parfor code can not run after wrapping into a function
Hi @Yulin, when you write your code without the function prototype function tempFcn() then as a script, MATLAB doesn't know if...

3 years 前 | 0

已回答
Can parfor be used if no Parallel Computing Toolbox licenses are available?
Hi @Gregory Vernon. If Parallel Computing Toolbx is not installed, then MATLAB will run parfor serially, in reverse order. Tho...

3 years 前 | 0

| 已接受

已回答
Suppress parallel toolbox logs
If you're not already, add a semicolon to suppress the evalc calls. evalc('pool = gcp();'); evalc('delete(pool)'); Above reas...

3 years 前 | 0

已回答
Plotting graphs using parallel computing toolbox and communicating between workers
Look at https://www.mathworks.com/matlabcentral/answers/1829258-how-to-use-composite-objects-using-spmd#answer_1077643 for some ...

3 years 前 | 0

| 已接受

已回答
Using System() to submit cluster job to SLURM but gives "sbatch: command not found" error.
I suspect the command not found is for sbatch. If so, I would suggest hardcoding the location of it in your path. For example ...

3 years 前 | 0

加载更多