Community Profile

# Raymond Norris

### MathWorks

Last seen: Today Active since 2003

All

#### Content Feed

View by

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 days ago | 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 days ago | 1

| accepted

Solved

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

9 days ago

Solved

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

9 days ago

Solved

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

9 days ago

Solved

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

10 days ago

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

14 days ago | 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...

15 days ago | 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...

21 days ago | 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...

1 month ago | 0

Plotting graphs using parallel computing toolbox and communicating between workers

1 month ago | 0

| accepted

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

2 months ago | 0

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

2 months ago | 0

| accepted

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

2 months ago | 0

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

2 months ago | 0

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

3 months ago | 0

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

3 months ago | 0

| accepted

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

4 months ago | 0

| accepted

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

4 months ago | 0

| accepted

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

4 months ago | 0

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

4 months ago | 1

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

4 months ago | 1

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

5 months ago | 0

| accepted

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

5 months ago | 0

| accepted

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

5 months ago | 1

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

5 months ago | 0

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

5 months ago | 1

| accepted

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

6 months ago | 1

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

6 months ago | 1

| accepted