Réponse apportée
how to get parpool to pause at breakpoints?
Unfortunately, it is not possible to use the MATLAB debugger to debug code running on workers. The normal workaround is to liber...

presque 7 ans il y a | 1

| A accepté

Réponse apportée
Broadcast / Sliced variable implementation
You can use ticBytes and tocBytes to show that in your first example, the warning is accurate and R will not be sliced. This lim...

presque 7 ans il y a | 1

| A accepté

Réponse apportée
how to run a waitbar in a batch script
This is expected. The worker running your batch job has no access to your display, and cannot display any graphics (including a ...

presque 7 ans il y a | 0

| A accepté

Réponse apportée
how many NumWorkers do I have?
There's a difference between pmode and parpool. Behind the scenes, they both share some functionality, and there's some ... unin...

presque 7 ans il y a | 2

Réponse apportée
PCT : cannot cancel a running job without a PCT chrash
When you run a parallel pool, PCT uses a parallel.Job behind the scenes to launch and co-ordinate the workers. By directly cance...

presque 7 ans il y a | 0

| A accepté

Réponse apportée
Batch saves the window screenshot in Task1.in.mat file
You haven't really given us enough reproduction steps to see exactly what's going on here, but I'm going to take a wild stab in ...

presque 7 ans il y a | 0

Réponse apportée
Loop through structure elements with parfor
Given the following example data myStruct = struct('one', rand(1), ... 'two', rand(2), ... 'three', rand(3)); My sli...

presque 7 ans il y a | 0

| A accepté

Réponse apportée
write an imgae of type gpuarray
Try imwrite(gather(res), 'myfile.jpg')

presque 7 ans il y a | 0

| A accepté

Réponse apportée
Long transmission times of parfeval with large parallel.pool.Constant objects
You are correct that parallel.pool.Constant data is already available on the workers after construction. It's not clear to me wh...

presque 7 ans il y a | 1

Réponse apportée
PARFOR slicing of user-defined objects
The parfor machinery decides whether a variable reference is "sliced" or not by examining the form of indexing used, paying no r...

presque 7 ans il y a | 2

| A accepté

Réponse apportée
parfor Vs muliple matlab session
parfor ought to be considerably more convenient than manually opening multiple MATLAB windows and ensuring they're all working o...

presque 7 ans il y a | 2

| A accepté

Réponse apportée
Issue with Simulink Model Simulation using CVSIM command inside Parfor ?
Caveat: I know nothing about cvtest or cvsim. I suspect that cvsim is trying to inspect the calling workspace - this is not allo...

presque 7 ans il y a | 0

| A accepté

Réponse apportée
Parallel Computing - COM Port Error
My guess is that your code inside the spmd block performs some initialization that either should be done only once per MATLAB pr...

presque 7 ans il y a | 0

| A accepté

Réponse apportée
Using parallel workers to edit same Simulink model?
In short: no - you cannot make simultaneous changes to a single Simulink model file from multiple processes (i.e. the multiple M...

environ 7 ans il y a | 1

| A accepté

Réponse apportée
parfor energyplus co-simulation toolbox
I think the problem here is that the toolbox is not designed to be run multiple times simultaneously on a single machine. I took...

environ 7 ans il y a | 0

| A accepté

Réponse apportée
How can one create an object in MATLAB that behaves like an array?
To make an object in MATLAB that is a single object that behaves like an array, you need to overload a bunch of methods to do wi...

environ 7 ans il y a | 1

| A accepté

Réponse apportée
How to call a user-defined function within a parfor loop
You should call addAttachedFiles outside the parfor loop.

environ 7 ans il y a | 0

Réponse apportée
Is there a technical limitation/design choice preventing dynamic allocation of parfor workload?
The parfor implementation already attempts to take account of this sort of situation - behind the scenes, the loop is split up i...

environ 7 ans il y a | 1

Réponse apportée
Speed up big matrix multiplication (Parallel Processing/GPU)
You should take advantage of: Implicit dimension expansion, and The new multi-dimension arguments to sum and then perform the...

environ 7 ans il y a | 1

| A accepté

Réponse apportée
how do I slice a variable? parfor loop
The problem here is that the parfor machinery cannot tell that you are completely overwriting quantity and Quantity_av in your i...

environ 7 ans il y a | 2

Réponse apportée
The variable x in a parfor cannot be classified
Hm, I didn't see that precise error. I modified your example just a little so that it was actually executable, like so: n = 4; ...

environ 7 ans il y a | 0

Réponse apportée
Variable to track parfor loop progress
@Matt J posted the simplest option which is to have the parfor loop display data. If you need more sophistication, you can use D...

environ 7 ans il y a | 1

Réponse apportée
How to run multiple cores without graphical interfaces?
I'm guessing you're starting MATLAB by running matlab -nojvm. This will not allow parpool to work. Use matlab -nodisplay instead...

environ 7 ans il y a | 1

| A accepté

Réponse apportée
Is there a way to change number of worker in a created parpool?
Unfortunately, there is currently no way to increase the number of workers in a parallel pool. One approach that might possibly ...

environ 7 ans il y a | 1

Réponse apportée
How can I store dates as arrays for further process when using Matlab GPU computing?
If you know the reduction operation you wish to perform on z, then you might be able to update a "running total" as the while lo...

environ 7 ans il y a | 0

Réponse apportée
Strange sparse matrix error on GPU
The maximum number of elements in a gpuArray is intmax('int32'). In this case, the scalar addition is forcing your sparse matrix...

environ 7 ans il y a | 0

| A accepté

Réponse apportée
Issue with Simulink Model Simulation inside Parfor ?
As @Sean says, parsim is the way to go if you can. However, as a workaround, you might get away with doing something like this: ...

environ 7 ans il y a | 1

| A accepté

Réponse apportée
How can I launch a script as an LSF job from the Matlab console?
Yes, you can use the batch command to do this. You'll need Parallel Computing Toolbox installed on your desktop MATLAB client, a...

environ 7 ans il y a | 1

| A accepté

Réponse apportée
isempty slow on GPU
I think there are a couple of things going on here. Firstly, enabling the profiler introduces overheads - particularly to GPU-r...

environ 7 ans il y a | 0

Réponse apportée
Checking if persistent variable exists on GPU: check if 'data no longer exists on the GPU' for a variable.
You need existsOnGPU, like so: x = gpuArray(1); assert(existsOnGPU(x)); reset(gpuDevice); assert(~existsOnGPU(x));

environ 7 ans il y a | 0

| A accepté

Charger plus