Respondida
Is there a way to tell if a function is executing inside a parfor?
You could try using isOnWorker = ~isempty(getCurrentTask()); to see if your code is running on a worker.

casi 12 años hace | 2

| aceptada

Respondida
matlab parfor to evaluate a function in bunch of 4 rather than all at the same time
The number of simultaneous function evaluations will be determined by the size of the parallel pool that you open. So, if you we...

casi 12 años hace | 0

Respondida
Solve Poisson Problem with Finite Difference using parallelization
You might consider using <http://www.mathworks.com/help/distcomp/spmd.html SPMD> blocks within MATLAB - these run blocks of code...

casi 12 años hace | 1

| aceptada

Respondida
Display image inside parfor loop
One option is to use PARFEVAL and display the images back at the host when they're ready. Here's an example: <http://blogs.mathw...

casi 12 años hace | 0

Respondida
elapsed time in parfor
You should be able to solve this problem simply by parameterising your function, a bit like this: function dy = simWithTime...

casi 12 años hace | 0

Respondida
how can I write a parallel code in Matlab?
Ideally, you should not open and close the pool for timing purposes - it's intended that you keep the pool open.

casi 12 años hace | 0

Respondida
Multiplying a 2d matrix with each slice of 3d matrix
With Parallel Computing Toolbox, you can perform this on the GPU using <http://www.mathworks.com/help/distcomp/pagefun.html PAGE...

casi 12 años hace | 1

Respondida
CUDA on Windows 8.1 Matlab R2014a student edition
In R2014a, you should use CUDA Toolkit version 5.5. (This is shown in the output from running 'gpuDevice' - look for the field '...

casi 12 años hace | 1

Resuelto


Text processing - Help Johnny write a letter home from camp
Johnny overuses the word 'great'. Write a script that will help him with this and future letters. If a sentence contains more ...

casi 12 años hace

Respondida
Rewrite "randsample" function, but a variable is indexed, but not sliced
It's OK to have variables that are "indexed but not sliced" - that warning is trying to tell you that you might be transferring ...

casi 12 años hace | 1

| aceptada

Respondida
About parallel computation and inter process communication
What sort of data are you passing into SPMD? Inside SPMD, only _distributed_ arrays are automatically operated on in parallel. F...

casi 12 años hace | 0

Respondida
Error thrown in a parlor loop
Have you tried debugging the loop when running it as a PARFOR? You can force the PARFOR to run locally in your desktop MATLAB in...

alrededor de 12 años hace | 0

| aceptada

Respondida
FOR to PARFOR - cannot make it right
There are several problems here, but I think the biggest problems you need to overcome is that the result of a PARFOR loop needs...

alrededor de 12 años hace | 0

| aceptada

Respondida
Multi computer parallel simulation
To use MATLABPOOL with more than one computer, you need <http://www.mathworks.com/products/distriben/ MATLAB Distributed Computi...

alrededor de 12 años hace | 0

| aceptada

Respondida
Enable multi-threading on a parfor loop
You can use the <http://www.mathworks.com/help/matlab/ref/maxnumcompthreads.html maxNumCompThreads> function (from within an SPM...

alrededor de 12 años hace | 0

| aceptada

Respondida
Why does the parallel mode slow down the speed of each core/task
Parallel workers run in 'single computational thread' mode, and this can mean that using multiple workers is no faster than usin...

alrededor de 12 años hace | 1

Respondida
using CUDA kernel of complex variables
Try using 'double2' in your kernel source code, which should be exactly the same as cuDoubleComplex.

alrededor de 12 años hace | 0

Respondida
batch arguements 'pool' v 'matlabpool'?
The older 'Matlabpool' parameter is still supported in the newer versions of Parallel Computing Toolbox, but it will be removed ...

alrededor de 12 años hace | 1

| aceptada

Respondida
Why does my Matlab 2014a only start 12 workers when I ask for more?
I think the problem here is that you either need to explicitly state when calling parpool how many workers you want, like so: ...

alrededor de 12 años hace | 2

| aceptada

Respondida
How to use Task.Diary
The task "diary" property is updated automatically when your task function would emit text to the command window. For example: ...

alrededor de 12 años hace | 1

| aceptada

Respondida
Multi-GPU on MATLAB 2013
Why not use <http://www.mathworks.com/help/distcomp/spmd.html SPMD> to do this once after you've opened the pool? matlabpoo...

alrededor de 12 años hace | 0

Respondida
Job monitor fails to update and slow down the matlab startup.
You might have some old corrupt jobs in the local cluster. You can delete the old jobs like this (presuming you don't need the d...

alrededor de 12 años hace | 3

| aceptada

Respondida
global variables - call function - parfor
Global variables are not synchronized between the desktop MATLAB and the workers, as described <http://www.mathworks.com/help/di...

alrededor de 12 años hace | 0

Respondida
how do workers in mdce automatically select GPUs if multiple are available?
Workers use the function 'selectGPU' to determine which GPU device to use. Type help selectGPU in MATLAB for more detail...

alrededor de 12 años hace | 0

| aceptada

Respondida
Where I can find a cluster to use?
There's more information about what you need to do to set up EC2 <http://www.mathworks.com/discovery/matlab-ec2.html here>.

alrededor de 12 años hace | 0

| aceptada

Respondida
Why does the sum not defined error happen when using mean(table col) inside a parlor loop?
I get the same error when using a FOR loop. Perhaps you're missing a call to TABLE2ARRAY? I.e. parfor ... b(i,1)=mean(...

alrededor de 12 años hace | 0

Respondida
how to make a matrix grow inside a parfor loop?
You should be able to do this. For example, the following works correctly: S = []; parfor idx = 1:10 r = rand(); ...

alrededor de 12 años hace | 0

| aceptada

Respondida
Error using rgb2array and gpuArray
You need to be using at least R2013b for RGB2GRAY to operate on gpuArray data. See the <http://www.mathworks.com/help/images/rel...

alrededor de 12 años hace | 0

Respondida
Usage of sturctures inside parfor!!
A simpler reproduction of the problem is shown below: parfor idx = 1:2 a.x = 1; a.y = 2; end Th...

alrededor de 12 años hace | 2

Respondida
The variable location in a parfor cannot be classified. parfor
The reason this doesn't work is that you aren't slicing 'location'. PARFOR output values must either be 'sliced' where the outpu...

más de 12 años hace | 0

Cargar más