Respondida
Accessing gpuDevice WITHOUT resetting it, and without carrying around a gpuDevice handle, or declaring a global
You can simply use gpuDevice() with no input arguments to access the currently selected GPU device without resetting it.

más de 7 años hace | 1

| aceptada

Respondida
After uninstalling CUDA toolkit still MATLAB responds for gpuDevice() !!
MATLAB and Parallel Computing Toolbox need the CUDA driver to be installed on your system, not the CUDA toolkit. I admit it is...

más de 7 años hace | 1

Respondida
How to reset job numbering in MATLAB Distributed Computing Server?
Unfortunately, there is indeed no way to do that (using the MATLAB Job Scheduler) without shutting down the jobmanager, and star...

más de 7 años hace | 1

Respondida
How to measure parfeval() execution time?
A parallel.Future instance has StartDateTime and FinishDateTime properties - you can subtract these to get an idea of the execut...

más de 7 años hace | 0

Respondida
Advantages of parpool vs. job/tasks vs. multiple batches?
If you want to be able to quit the client machine while the process is running, then either |batch| or |createJob| & |createTask...

más de 7 años hace | 0

| aceptada

Respondida
Why does batch generate a different sequence of random numbers even when seeding the rng?
The problem here is that desktop MATLAB has a different default random number generator type than a Parallel Computing Toolbox w...

más de 7 años hace | 1

| aceptada

Respondida
Parfeval - Memory consumption piling up - Clear output data?
It would be really helpful if you could come up with an <https://stackoverflow.com/help/mcve mvce> to demonstrate the problem, a...

más de 7 años hace | 0

| aceptada

Respondida
How can I send data on the fly to a worker when using parfeval?
I think it's possible to do this sort of thing by getting the workers to create a <https://uk.mathworks.com/help/distcomp/parall...

más de 7 años hace | 1

| aceptada

Respondida
Can parfor be used in my case?
The problem here turns out to be quite simple to work around. You're assigning to elements of |TCP_m| in the loop over |m|, but ...

más de 7 años hace | 0

| aceptada

Respondida
How can I run this parfor loop?
One of the primary requirements of a |parfor| loop is that the iterations must be <https://uk.mathworks.com/help/distcomp/ensure...

más de 7 años hace | 1

Respondida
R2018b release notes has "batchsim"... how is this different than Parallel Computing Toolbox?
<https://uk.mathworks.com/help/simulink/slref/batchsim.html |batchsim|> is new in R2018b, and is designed to work with Parallel ...

más de 7 años hace | 1

Respondida
multiple cprintf in parallel loop problem
To stop the output being interleaved, you need to send all the stuff to be printed as a single message. Here's one way: q...

más de 7 años hace | 0

| aceptada

Respondida
cprintf not working in parallel situation
The way |cprintf| is implemented relies on manipulating the command window in a way that simply cannot be done for a parallel wo...

más de 7 años hace | 1

| aceptada

Respondida
How to send files from worker to client in MDSC?
There's no facility to transfer files from the workers back to the client. If you can, I would suggest reading the files into me...

más de 7 años hace | 0

| aceptada

Respondida
How to use ImageDataStore together with tall array?
The output of the |imageDatastore| is a |tall| |cell| array, so you'll almost certainly want to use |cell2mat| to convert this t...

más de 7 años hace | 2

| aceptada

Respondida
Matlab MDCS with loadlibrary, Module not found...
I _suspect_ that even if the actual |.dll| file is correctly available on the workers, perhaps some dependent libraries are not ...

más de 7 años hace | 0

| aceptada

Respondida
sim command in try/catch, in parfor results in error
I'm not 100% sure what's going on there, but it might work simply to say: simout = cell(1,2); parfor ii=1:2 try ...

más de 7 años hace | 0

| aceptada

Respondida
Parallel computing for images processing
Rather than using |labSend| and |labReceive| inside an |spmd| block, I would suggest simply re-writing this as a |parfor| loop w...

más de 7 años hace | 0

| aceptada

Respondida
Disable automatic conversion to reals
MATLAB's behaviour has always been to drop the imaginary part on indexing operations (where it is all zero!). |gpuArray| is some...

más de 7 años hace | 0

| aceptada

Respondida
Can I modify random positions of a logical vector inside a parfor?
You can recast this as a |parfor| <https://uk.mathworks.com/help/distcomp/reduction-variable.html reduction>, like so: Vect...

más de 7 años hace | 0

Respondida
Parcluster issue Matlab 2018a
The version of MATLAB used as your client must match exactly the version on the cluster. This is mentioned in the <https://uk.ma...

más de 7 años hace | 0

| aceptada

Respondida
Matlab parfor saves and loads temporary variables during execution!
The workers executing the body of any |parfor| loop are separate MATLAB processes, so the only reliable way that variables exist...

casi 8 años hace | 2

Respondida
Is there a way to skip serializing for specific objects in a parfor loop
Recent versions of MATLAB (R2015b and later if my memory serves correctly) are usually pretty good at only sending stuff to the ...

casi 8 años hace | 0

Respondida
Parfor or parfeval, what is better?
At least some of the trade-offs are: * |parfor| is generally easier to use, and the code probably looks much more like your s...

casi 8 años hace | 4

| aceptada

Respondida
Is there a way to avoid writing every variable name when using gather?
You could use date_and_time = gather(tt); or [date, time] = gather(tt.(1), tt.(2)); or if you end up with more v...

casi 8 años hace | 0

| aceptada

Respondida
how to storage output data from a nested parfor loop?
In this case, |x| is a 3-element vector. You can store each of these vectors in a 4-D array like so: for i = 1:5 ... ...

casi 8 años hace | 0

| aceptada

Respondida
How do I convert the following matlab code loops to batched form?
|pagefun| expects to operate over "pages" of your multi-dimensional array. These pages are slices taking in only the first two d...

casi 8 años hace | 0

| aceptada

Respondida
Flattening of gpuArray - row major or column major order?
|gpuArray| data is stored in column-major format, just like CPU data in MATLAB.

casi 8 años hace | 0

| aceptada

Respondida
ho to change cell array elemen value to Nan, when using gpuarray?
Instead of a 1x499 cell array of 5x5 |gpuArray| matrices, why not consider a 5x5x499 array. You can convert your existing |cell|...

casi 8 años hace | 0

| aceptada

Respondida
I get a warning in parfor (line 4) which might be unnecessary. Can I ignore it?
That warning is telling you that |A| is a <https://uk.mathworks.com/help/distcomp/broadcast-variable.html _broadcast_> variable....

casi 8 años hace | 0

| aceptada

Cargar más