Beantwortet
Logging parellel pool worker diaries to single file
Instead of |parfor|, you could use |parfeval| to run stuff on the workers. This will require a bit of restructuring - you'll nee...

mehr als 8 Jahre vor | 1

| akzeptiert

Beantwortet
I got NaN using parfor while the same code works with for loop
|dbstop if naninf| always causes execution to stop during setup of a |parfor| loop. This turns out to be expected behaviour (par...

mehr als 8 Jahre vor | 0

Beantwortet
Are file mutexes available in Matlab these days?
Probably your best bet with the current implementation is to use a <https://uk.mathworks.com/help/distcomp/parallel.pool.dataque...

mehr als 8 Jahre vor | 3

| akzeptiert

Beantwortet
Get Average Running Duration from PCT Batch Jobs
Here's how you can use the information stored in the jobs to get a running duration in seconds for each job that has a valid |St...

mehr als 8 Jahre vor | 1

| akzeptiert

Beantwortet
Why doesn't MATLAB support 'cpuArray' for some array creation functions?
Another workaround is to use a |cell| array. if useGpu arg = {'gpuArray'}; else arg = {}; end A = rand(3...

mehr als 8 Jahre vor | 1

| akzeptiert

Beantwortet
I used matlab 2016a ,GPU are AMD Radeon HD 7600M and Inter HD Graphics 4000, The question is cannot load the CUDA driver, please tell me the answer, think you
The |gpuArray| support in Parallel Computing Toolbox requires an NVIDIA GPU, and the latest NVIDIA CUDA driver, as <http://www.m...

mehr als 8 Jahre vor | 0

Beantwortet
How can I pass a TCPIP handle to a parfeval worker
The workers executing the body of your |parfeval| requests are separate processes, so you cannot send objects of class |tcpip| t...

mehr als 8 Jahre vor | 0

Beantwortet
using feval() to launch CUDA kernels from Matlab
1. Input/output variables to |CUDAKernel.feval| are operated on in-place in the usual way for MATLAB data. See <https://blogs.ma...

mehr als 8 Jahre vor | 1

Beantwortet
how to avoid resending large data which is in the workspace of a function handle?
It's slightly tricky to use |parallel.pool.Constant| in this case because the constructor assumes that if you pass in a function...

mehr als 8 Jahre vor | 0

| akzeptiert

Beantwortet
Running MATLAB in headless mode.
On UNIX platforms, you can use |matlab -nodisplay| (there's no equivalent on Windows).

mehr als 8 Jahre vor | 1

| akzeptiert

Beantwortet
How to add a new variable to a tall table which depends on information available in other lower size tall table?
You can use a |tall| |table| <https://www.mathworks.com/help/matlab/ref/table.join.html |join|> or method to do this. Here's a s...

mehr als 8 Jahre vor | 0

Beantwortet
Matrix Multiplication on GPU quite slow?
I would recommend using <https://uk.mathworks.com/matlabcentral/fileexchange/34080-gpubench GPUBench> to get an understanding of...

mehr als 8 Jahre vor | 0

Beantwortet
How to correctly read in variable names using datastore and tall functions
The |datastore| documentation states that variable names are read only from the first file. You can work around this by using <h...

mehr als 8 Jahre vor | 2

Beantwortet
Wrong results with cumsum on logical tall array?
Thanks for reporting this - this is indeed a bug in the |tall| implementation of |cumsum| for |logical| arrays. You can work aro...

mehr als 8 Jahre vor | 1

| akzeptiert

Beantwortet
How can i create an array whose length indirectly depends on parfor loop's index?
Strange, that code works as written for me, so I'm not sure what's going wrong for you. But even so, I don't think it would do w...

mehr als 8 Jahre vor | 0

| akzeptiert

Beantwortet
Unable to use parfor with strcmpi
The variable |data_2| is not being sliced because every iteration of the |parfor| loop needs access to the whole array. This is ...

mehr als 8 Jahre vor | 0

| akzeptiert

Beantwortet
Batching different functions in a job
You can use <https://www.mathworks.com/help/distcomp/wait.html |wait|> to see when your |batch| jobs have finished... perhaps so...

mehr als 8 Jahre vor | 0

Beantwortet
Easily Reproducible GPU Bug in R2017a
This does indeed appear to be a bug. Thanks for reporting this, I have passed this report on to the appropriate development team...

mehr als 8 Jahre vor | 0

| akzeptiert

Beantwortet
How to construct a Sliced Reduction Variable in MALTAB parallel for loop
|parfor| doesn't support the notion of a variable that is both _sliced_ and _reduced_. You need to recast things so that you hav...

mehr als 8 Jahre vor | 0

Beantwortet
Parallel job bring me same random numbers
Parallel Computing Toolbox deliberately sets the random number state of workers such that the each task of a job starts from a k...

mehr als 8 Jahre vor | 1

| akzeptiert

Beantwortet
Inevitable broadcast variable in parfor?
If I've understood correctly, you can convert your non-sliced data into sliced data at the client before the loop starts. One wa...

mehr als 8 Jahre vor | 1

| akzeptiert

Beantwortet
How can i simulate equity prices with parfor?
To get output from a |parfor| loop, you need to write to an output variable in either a "sliced" or "reduction" manner. For a "s...

mehr als 8 Jahre vor | 0

| akzeptiert

Beantwortet
Using .Net Assembly Methods in parfor Parallel loops.
In your example, the variable |SP| is being transferred to the workers, and that uses the same machinery as |save| and |load| (d...

mehr als 8 Jahre vor | 0

Beantwortet
Running long simulations on Matlab Online
You could run a <https://www.mathworks.com/help/distcomp/batch.html |batch|> job submitted from your desktop machine to a cluste...

mehr als 8 Jahre vor | 0

| akzeptiert

Beantwortet
What happens if the number of workers vacant are less than the minimum value in the specified range of SPMD?
The <https://www.mathworks.com/help/distcomp/spmd.html |spmd|> reference page states: |spmd(m,n), statements, end| uses a min...

mehr als 8 Jahre vor | 0

| akzeptiert

Beantwortet
Why doesn't a parfor loop run properly with a custom object with saveobj and loadobj methods?
You can use the undocumented flag |'debug'| to a |parfor| loop to diagnose this sort of problem (normally the |loadobj| function...

mehr als 8 Jahre vor | 1

Beantwortet
How do I retrieve the pool worker index from an asynchronous parallel function evaluation using MATLAB's parfeval?
The function |labindex| indicates how many workers are running in parallel *only* inside an |spmd| block. However, with |parfeva...

mehr als 8 Jahre vor | 0

Beantwortet
How can I degug inside a parfor loop?
You can debug code called from the body of a |parfor| loop if no parallel pool is open, but unfortunately you cannot debug the b...

mehr als 8 Jahre vor | 1

| akzeptiert

Beantwortet
Parfor in simulink linearization
Perhaps you can use <https://uk.mathworks.com/help/simulink/slref/parsim.html |parsim|> - this makes it simpler to run Simulink ...

mehr als 8 Jahre vor | 0

Beantwortet
parfor fails with loop indices being uint64
This is indeed a bug in the implementation of |parfor|. Thanks for reporting this, we'll endeavour to fix this in a future relea...

mehr als 8 Jahre vor | 0

| akzeptiert

Mehr laden