Respondida
how to use arrayfun for gpu
In general, arrayfun allows you to speed up cases where you have lots of elementwise operations to perform. You need to look ins...

alrededor de 14 años hace | 0

| aceptada

Respondida
Segmentation Faults and Thread-Safety in Parfor Loops: Part II
Please note that 'thread safety' really shouldn't be the major concern here. When you open a MATLABPOOL, you are starting severa...

alrededor de 14 años hace | 1

Respondida
Parfor on GPU
Yes, you can do this. Whether you get much benefit depends on whether you have multiple GPUs in your system (under some circumst...

alrededor de 14 años hace | 6

| aceptada

Respondida
fill() in parfor loop
Unfortunately, you cannot use a PARFOR loop in this way. The workers cannot create graphics on your client.

alrededor de 14 años hace | 2

Respondida
fprintf output in a parallel computing job
If you use the <http://www.mathworks.com/help/toolbox/distcomp/batch.html batch> function to submit a job, you can use the "diar...

alrededor de 14 años hace | 1

| aceptada

Respondida
Asynchronous GPU calculations
The asynchronous nature of the kernel invocations should be completely transparent in terms of functionality (if it isn't, then ...

alrededor de 14 años hace | 1

| aceptada

Respondida
Parallel Code
If you have Parallel Computing Toolbox, you could do this: % first start up 2 local workers matlabpool open local 2 ...

alrededor de 14 años hace | 0

Respondida
Use of an anonymous functions with additional parameters within a spmd-block
You need to work around the fact that SPMD blocks cannot call internal functions or define anonymous functions. I would do it li...

alrededor de 14 años hace | 0

| aceptada

Respondida
Communicating between parfor loop iterations
I don't think there's a reliable way to achieve this with PARFOR. I would be tempted to investigate SPMD which does allow commun...

alrededor de 14 años hace | 0

| aceptada

Respondida
Parallel Computing Toolbox: Lost Data when Error occur
There's no built-in way to checkpoint your computations. You could either split your PARFOR loop into smaller chunks and save th...

alrededor de 14 años hace | 0

Enviada


Blackjack computational kernel
Simulation of a single hand of blackjack

más de 14 años hace | 1 descarga |

0.0 / 5

Respondida
parfor loop stalls where a for loop does fine, no error
The main difference when running PARFOR are that different iterations of the loop are executed by different processes. So, if yo...

más de 14 años hace | 0

Respondida
Memory spike when using previously declared variable in spmd block
One more thing, if you need the same data on each worker, you could also do this: c = Composite(); c{1} = getMyLarge...

más de 14 años hace | 4

| aceptada

Respondida
Memory spike when using previously declared variable in spmd block
If you need to build data from client-side, you can use the explicit <http://www.mathworks.co.uk/help/toolbox/distcomp/brukctb-1...

más de 14 años hace | 3

Respondida
running distributed jobs
You need to give the name of the script to the createTask function, like so: sched = findResource(...); job = create...

más de 14 años hace | 1

| aceptada

Respondida
Loop on gpu
The nearest equivalent on the GPU is to use arrayfun. This implicitly loops over each element of your input gpuArray, so there's...

más de 14 años hace | 1

| aceptada

Respondida
Way to save results to a file inside a parfor loop
See <http://www.mathworks.com/matlabcentral/answers/33127-whats-the-best-command-to-write-to-file-inside-parfor-loop this answer...

más de 14 años hace | 0

| aceptada

Respondida
Mutex for Increment in Matlab Parfor?
It's only the indexing into results that PARFOR doesn't understand. The following should work I think: results = 0; parf...

más de 14 años hace | 1

| aceptada

Respondida
does parfor support global variables?
There are two restrictions. # You cannot place a GLOBAL declaration directly inside a PARFOR loop # The MATLAB workers execu...

más de 14 años hace | 0

Respondida
Error caught during construction of remote parfor code
The error message indicates that perhaps you're trying to send too much data into the body of the PARFOR loop. For example, the ...

más de 14 años hace | 0

Respondida
Whats the best command to write to file inside parfor loop?
Inside PARFOR, you can still access the current task, and get its ID - that will be unique. My "Worker Object Wrapper" has an ex...

más de 14 años hace | 4

| aceptada

Respondida
Parallel computing problem
GLOBAL data is never shared between your desktop MATLAB session and the workers running jobs and tasks. However, you might find ...

más de 14 años hace | 0

Respondida
GPU computing with 32bit matlab in 64 bit windows 7 system
Have you tried using the 64bit MATLAB?

más de 14 años hace | 0

Respondida
Can I step in .cu file when doing GPU parallel computing in MATLAB
Running MATLAB under a CUDA debugger is possible, but rather difficult. You first need to ensure you can use the debugger on a s...

más de 14 años hace | 0

| aceptada

Respondida
Matrix Dimension Error with Parfor
You cannot use GLOBAL data together with PARFOR in this way. The MATLAB workers in your pool are separate processes and therefor...

más de 14 años hace | 0

Respondida
Parallel Configuration Validation: times out, but job finishes; what to do?
You must use the same version of MATLAB on both the client and the cluster. (Although that may not be the only problem - when jo...

más de 14 años hace | 0

Respondida
fread directly to GPU memory
Unfortunately, there's no way to do that. The nearest you can get is to pre-allocate the gpuArray, fread chunks of data, and the...

más de 14 años hace | 2

| aceptada

Respondida
Identifying lab id within a parfor
As mentioned elsewhere, LABINDEX will not work for this purpose. You could either use t = getCurrentTask(); t.ID to find...

más de 14 años hace | 6

| aceptada

Respondida
image processing with parallel approach
In PMODE, run some code that does this: switch labindex case 1 runFcn1(); case 2 runFcn2(); .....

más de 14 años hace | 1

Respondida
image processing with parallel approach
The other options are: # Non-interactive <http://www.mathworks.co.uk/help/toolbox/distcomp/bqur7dy.html jobs and tasks> # <h...

más de 14 años hace | 1

Cargar más