Beantwortet
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...

mehr als ein Jahr vor | 0

Beantwortet
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...

mehr als ein Jahr vor | 0

Beantwortet
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 ...

mehr als ein Jahr vor | 0

Beantwortet
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...

mehr als ein Jahr vor | 0

| akzeptiert

Beantwortet
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.

fast 2 Jahre vor | 0

Beantwortet
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...

fast 2 Jahre vor | 0

Beantwortet
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...

fast 2 Jahre vor | 1

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

fast 2 Jahre vor | 1

| akzeptiert

Beantwortet
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...

fast 2 Jahre vor | 0

Beantwortet
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...

fast 2 Jahre vor | 0

Beantwortet
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...

fast 2 Jahre vor | 1

| akzeptiert

Beantwortet
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...

etwa 2 Jahre vor | 0

Beantwortet
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...

etwa 2 Jahre vor | 0

Beantwortet
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...

etwa 2 Jahre vor | 0

| akzeptiert

Beantwortet
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...

etwa 2 Jahre vor | 0

Beantwortet
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 ...

etwa 2 Jahre vor | 0

| akzeptiert

Beantwortet
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 ...

etwa 2 Jahre vor | 0

Beantwortet
How to use composite objects using spmd
It's not related to your parallel code, the issue is the initialization of mov. This can be reproduced by the following functi...

etwa 2 Jahre vor | 0

| akzeptiert

Beantwortet
Where we can check the total number of worker instances configured in Matlab parallel server.
Are you using MATLAB job scheduler (MJS) or your own (e.g. PBS)? MJS has a property that specifies the current number of idle w...

etwa 2 Jahre vor | 0

Beantwortet
Cluster uses only one node, even though 5 nodes Running (parfor)
Starting a parpool will create very little activity for the workers. It's only once you run a parallel construct (e.g., parfor)...

etwa 2 Jahre vor | 0

Beantwortet
How to run .m files in one thread from an app running in a different thread so that I can interact with the app during .m file execution?
@Mitchell Tillman you might consider refactoring the code so that the callbacks call parfeval with backgroundPool, but keep in t...

etwa 2 Jahre vor | 0

Beantwortet
Unrecognized function or variable 'nvcc'. with Matlab R2022a
nvcc is a NVIDIA compiler, not a MATLAB function. I suspect what you want is mexcuda.

etwa 2 Jahre vor | 0

| akzeptiert

Beantwortet
Running parfor on SLURM limits cores to 1
Try changing -n 32 for -c 32 -n is tasks, but with 1 CPU per task (by default). It's possible that cgroups is telling MA...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
When does what License get reserved when using MATLAB Parallel Server?
My questions lie in, what is the exact sequence of when licenses are reserved and when the job gets scheduled and when the job r...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
Each PARFOR Worker Writes to the Same File
@Paul Safier since the order of the file doesn't have to be deterministic, use a data queue to write back to the client and have...

mehr als 2 Jahre vor | 0

Beantwortet
Parallel for loop problem
@Simone Fiumi think of the code running in the parfor as running on some entirely different machine. There is no "debugging" pe...

mehr als 2 Jahre vor | 1

Beantwortet
Extract variable from function after using parfeval
@Koren Murphy the issue is that you've told MATLAB there are no output arguments (even if there are) F(K)=parfeval(fcn,0,K); T...

mehr als 2 Jahre vor | 1

Beantwortet
Confirm if Parallel Server is installed on cluster
Hi @Michael Raba. Reach out to me directly and I'll help you work through this.

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
Issue using a parfor loop to control two instruments at the same time
Hi @james ingham, I see a couple of potential issues main1; %<------ Connects to laser and starts connection etc (WORKS FINE) ...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
Recommended approach to "resetting" the workers for each new parallel computation?
Hi @Mitsu You have the right idea. A couple of quick comments If you have a parallel pool running, then deleting the jobs wil...

mehr als 2 Jahre vor | 1

Mehr laden