Beantwortet
Restriction of functions run under parfeval
fprintf isn't inactive/not working, as much backgroundPool doesn't capture the "diary" of parfeval. This has the same behaviour...

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
Please suggest me to write the parallel loop in MATLAB without the workers getting aborted during the course of execution? Thanks
The entire pool idles out, not a single worker. My guess is that a worker is crashing because of memory. Tell us a bit more t...

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
Parallel pool hangs on startup for all versions of Matlab
Not sure why this would happen with every version of MATLAB. First try clearing out all the job files (this will destroy past j...

mehr als 4 Jahre vor | 0

Beantwortet
parfor slower than for
There are several considerations How many dedicated workers? Most often, more workers, the lower the amount of time. Amount of...

mehr als 4 Jahre vor | 0

Beantwortet
unrecognized function or variable in parfor
I don't have much time to look at this closer, so I'll give a couple of quick thoughts For starters, I would suggest going thro...

mehr als 4 Jahre vor | 1

Beantwortet
Parallel pool error, automatically clear jobstoragelocation
Look at my answer here for an option: https://www.mathworks.com/matlabcentral/answers/1440039-how-to-prevent-parpool-error#answe...

mehr als 4 Jahre vor | 1

Beantwortet
How to use All cores
To increase the number of permissible local workers, you could run local = parcluster('local'); local.NumWorkers = 44; pool =...

mehr als 4 Jahre vor | 0

Beantwortet
How can i run multiple callback functions based on a single event?
If you have the Parallel Computing Toolbox, then this might not be exactly what you're looking for, but it might get you started...

mehr als 4 Jahre vor | 0

Beantwortet
MATLAB crashes with only two lines in crash dump stack trace
This post isn't getting stack traces, but it might point you in the right direction: https://www.mathworks.com/matlabcentral/ans...

mehr als 4 Jahre vor | 0

Beantwortet
Parallelization in MATLAB R2018b
Please include how you're starting the parpool and how mex is being called. I suspect the issue is that the files required when...

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
How to run a MATLAB file in for loop in batch file step by step
Try using the -wait switch. E.g. @echo off for /l %%x in (1, 1, 2) do ( call matlab -wait -nosplash -r "cd('H:\EngFiles\A...

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
How to prevent parpool Error
There's a slight change it's because multiple jobs are running at the same time, all contending for the same subfolder. If so, ...

mehr als 4 Jahre vor | 1

| akzeptiert

Beantwortet
Is there a way to start a parellel pool with maximum available workers as the cores on the machine?
pool = parpool('local',maxNumCompThreads); Alternatively, if you're running this through a scheduler (e.g. PBS), you could quer...

mehr als 4 Jahre vor | 0

Beantwortet
Batch jobs of similar data size and function files are taking different times for job completion, though all are started at same time.
Not sure why the 1st task isn't finishing, but here's another approach. Keep what you have, but rather than using batch, use pa...

mehr als 4 Jahre vor | 1

| akzeptiert

Gelöst


Maximum value in a matrix
Find the maximum value in the given matrix. For example, if A = [1 2 3; 4 7 8; 0 9 1]; then the answer is 9.

mehr als 4 Jahre vor

Beantwortet
Running two loop together at the same time
Try using parfeval, such as the following pseudo code function start_Callback(hObject, eventdata, handles) pool = gcp('nocreat...

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
How to opening 1 instance of MATLAB from MATLAB, but accessing it multiple times
Using the Parallel Computing Toolbox, look at parpool and parfeval. parpool will start a N number of "workers" (i.e. headless i...

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
Cannot start parallel pool R2020a
Do you have other versions of MATLAB installed? If so, which? Had your run parpool successfully on those version(s)? One sugg...

mehr als 4 Jahre vor | 0

Beantwortet
parFor Worker unable to find file. Unrecognized function or variable 'parameters'
As Edric mentioned, this is/may not parallizable. But if it were, you'd need to make modifications to the for-loop. You've inc...

mehr als 4 Jahre vor | 0

Beantwortet
Parfor general question and thought
A parfor is run synchoneously. That is, the parfor is blocking until complete. By that logic, two parfor loops can only run se...

mehr als 4 Jahre vor | 0

Beantwortet
Error using Parfor "Unable to classify the variable 'Sort'"
Try this refactoring the for-loop a bit parfor k=1:Np flag = 0; %#ok<PFTUSW> for i=1:(Nu-1) for j=(i+1):Nu ...

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
using parfor loop for marking the image/advice on other method for marking image
The issue is that your plotting in the parfor loop, which has no display. Create a DataQueue and pipe the data back to the clie...

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
Submitting parallel compiled code to SLURM
Perhaps there's a race condition. Take a look at https://www.mathworks.com/matlabcentral/answers/545174-how-can-i-work-ar...

mehr als 4 Jahre vor | 0

Beantwortet
parallel computing toolbox - how to directly talk to the Workers?
You can use different schedulers; however, you need to call the parpool command to start workers. In order to start the workers...

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
Converting for loops to parfor format gives error "Error: Unable to classify the variable 'f_est_1' in the body of the parfor-loop."
I'm gathering the for-loop you're trying to re-write is for i = 1:length(x) Assuming you're able to re-write this, have you co...

mehr als 4 Jahre vor | 0

Beantwortet
What type of Amazon EC2 server for MathWorks Cloud Center
Just to clarify Walter's 2nd comment, he's suggesting a compute cluster. What you're saying is that your university does not hav...

mehr als 4 Jahre vor | 0

Beantwortet
codegen incorrect argument data type in Matlab example
There are several codegen functions/methods MATLAB Coder Control Toolbox Is it possible you have Control Toolbox installed, b...

mehr als 4 Jahre vor | 1

Beantwortet
how to use threads in matlab app designer
Do you have Parallel Computing Toolbox? If so, consider looking at parfeval.

mehr als 4 Jahre vor | 0

Beantwortet
Parfor number of workers, CPUs, how are they related? What are the limits?
A quadcore computer should max at 4 workers. We don't suggest throttling it to include hyperthreads. With that said, let's say ...

mehr als 4 Jahre vor | 2

| akzeptiert

Beantwortet
Parfor Loop & EnergyPlus Co-Simulation
I would suggest trying this first with a pool size of 1. If it works, then my guess is that mlep only allows one connection at ...

mehr als 4 Jahre vor | 0

| akzeptiert

Mehr laden