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

alrededor de 3 años hace | 0

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

alrededor de 3 años hace | 0

| aceptada

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

alrededor de 3 años hace | 0

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

alrededor de 3 años hace | 0

| aceptada

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

alrededor de 3 años hace | 0

Respondida
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)...

más de 3 años hace | 0

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

más de 3 años hace | 0

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

más de 3 años hace | 0

| aceptada

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

más de 3 años hace | 0

| aceptada

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

más de 3 años hace | 0

| aceptada

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

más de 3 años hace | 0

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

más de 3 años hace | 1

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

más de 3 años hace | 1

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

más de 3 años hace | 0

| aceptada

Respondida
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) ...

más de 3 años hace | 0

| aceptada

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

más de 3 años hace | 1

Respondida
Setting -configCluster- in Matlab 2018b
@Stefano Lombardi I wrote configCluster for your site. Reach out to me direclty if you have any questions regarding how to use ...

más de 3 años hace | 0

Respondida
Running parfor on multiple nodes using Slurm
The local scheduler will only spawn workers on the same machine running the MATLAB client (e.g., on a Slurm compute node). In o...

más de 3 años hace | 1

| aceptada

Respondida
parallel pool to increase code speed
Starting a parallel pool doesn't run subsequent MATLAB code in parallel, it simple starts a colletion of headless MATLAB process...

más de 3 años hace | 1

Respondida
PARFOR is 10X Slower than FOR
@Paul Safier I believe the problem is that you're calling nested tic/toc. In clipSpacing_HELP, you call tic on line 16 and toc ...

más de 3 años hace | 1

| aceptada

Respondida
How can I make expm running on many cores?
Starting a parallel pool doesn't run subsequent MATLAB code in parallel, it simple starts a colletion of headless MATLAB process...

más de 3 años hace | 2

| aceptada

Respondida
How to limit CPU availabilty to Matlab
Try maxNumCompThreads(10);

más de 3 años hace | 1

Respondida
How do I allocate cpu resources to a batch job?
It would help if you could provide an example of the script and how you're running the job. Let's assume you're using PBS, mayb...

más de 3 años hace | 0

Respondida
multiple optimization problems under parfor
I'm assuming all of this works fine when you run a for-loop instead of a parfor loop. To address the first warning, I'm not an ...

más de 3 años hace | 1

| aceptada

Respondida
What is going on when I call a function that uses parfor loop inside of a parfor loop in my main script?
The outer parfor-loop is parallelized and the inner parfor-loop is run as a for-loop.

más de 3 años hace | 1

Respondida
Can I use GPU instead of CPU to run parfor-loop?
GPU threads aren't divided up by workers. Conversely, one worker controls a GPU at a time.

más de 3 años hace | 0

| aceptada

Respondida
How to input global variables in function that is in parloop?
We can agree that if global variables were supported, you wouldn't modify data1 and have that reflected on the client -- that wo...

más de 3 años hace | 0

| aceptada

Respondida
Pausing to Save data and Then Rerun from the Same State
There isn't. parfor blocks MATLAB from anything else. To "stop" the parfor, you'd need to hit Ctrl-C, but then you'd stop the ...

más de 3 años hace | 0

| aceptada

Respondida
MATLAB Cloud. How to use if I have an Institution license
MATLAB has several cloud offerings MATLAB Online (matlab.mathworks.com) Cloud Center (cloudcenter.mathworks.com), running on A...

más de 3 años hace | 1

| aceptada

Respondida
Parrellel server dir() for files local to the server
For starters, you don't want to hard code files/paths in your code. Your code should be functions so that you can pass in root ...

más de 3 años hace | 2

| aceptada

Cargar más