Beantwortet
How to pass on a different sized matrix through GPU Arrayfun
Unfortunately, you cannot pass cell arrays to the GPU. What you might be able to do is instead use a nested function handle to p...

mehr als 12 Jahre vor | 1

Beantwortet
Large broadcast variable in parfor loop
Unfortunately, because PARFOR supports operation across multiple machines and uses multiple MATLAB processes, I'm afraid there's...

mehr als 12 Jahre vor | 0

| akzeptiert

Beantwortet
How can I modify this code to use parfor s=1:r?
You could try something like this r=20; n=2; m=3; D=unidrnd(20,8,2); upp=zeros(size(D,1),r,n); for j=1:n...

mehr als 12 Jahre vor | 0

| akzeptiert

Beantwortet
Parfor Indexing -- Basic question
Here are two ways you could address this. Firstly, using concatenation: B1 = []; parfor idx = 1:1000 x = rand(); ...

fast 13 Jahre vor | 2

Beantwortet
adapting pattersearch algorithm to use with distributed computing server.
Firstly, you need to set up a parallel configuration to allow Parallel Computing Toolbox to talk to your PBS cluster. You may ne...

fast 13 Jahre vor | 1

| akzeptiert

Beantwortet
How can I modify this nested loop to work as a parfor without requiring a ridiculously large array?
Does it work to do something like this: prop = zeros(1, N); parfor ... ... tmp = zeros(1, N); tmp(h...

fast 13 Jahre vor | 2

Beantwortet
Setting default priority for matlabpool processes
I assume you're running on windows - you could try using this file exchange submission: <http://www.mathworks.com/matlabcentral/...

fast 13 Jahre vor | 0

Beantwortet
A Problem with matlabpool
That looks like somehow your installation has become corrupted. You probably need to reinstall.

fast 13 Jahre vor | 2

Beantwortet
Why is parfor so slow?
Firstly, I assume you meant to put a PARFOR loop in your example code for the 1:N loop. The reason you are not seeing any speedu...

fast 13 Jahre vor | 1

Beantwortet
How can I run two code blocks in parallel?
An alternative to BATCH might be SPMD. You could do something like this: spmd(2) if labindex == 1 % do first th...

fast 13 Jahre vor | 0

Beantwortet
Can MATLAB work well and paralellize code with AMD Radeon HD 7670m graphics card ?
Currently, the gpuArray support in Parallel Computing Toolbox supports only NVIDIA GPU devices of compute capability 1.3 or grea...

fast 13 Jahre vor | 2

Beantwortet
MEX memory leak - is this a bug?
It appears as though there's a problem with mxGPUCopyFromMxArray. Please could you try the following workaround: /** * ...

fast 13 Jahre vor | 0

| akzeptiert

Beantwortet
MEX memory leak - is this a bug?
I think this is nothing to do with the MEX interface, and instead to do with the way MATLAB tries to recycle memory allocations ...

fast 13 Jahre vor | 0

Beantwortet
parfor schedule not very smart?
The PARFOR scheduler divides loop iterations up in a fixed way to try and achieve a good balance for 'normal' workloads. In part...

fast 13 Jahre vor | 0

Beantwortet
parfor for double iteration??
Unfortunately, PARFOR doesn't understand how you're accessing 'G' even though you are using it in an order-independent way. What...

fast 13 Jahre vor | 0

| akzeptiert

Beantwortet
How does the client send data to the workes, when calling parfor?
A and B are sent once to each worker at the start of the PARFOR loop. There are certainly cases where the data transfer time dom...

fast 13 Jahre vor | 2

| akzeptiert

Beantwortet
Assignin in parfor loop
When you run your code at the command-line, all of the FOR loop body is run in the base workspace - whereas the PARFOR body is n...

fast 13 Jahre vor | 1

Beantwortet
multi-core CPU to DCS
The main difference that you might find when running your code on a remote MDCS cluster is that the workers must be able to acce...

fast 13 Jahre vor | 1

Beantwortet
spmd inside parfor loop
All available parallelism is used up by the outermost PARFOR/SPMD, so there is no possible benefit to nesting these constructs. ...

fast 13 Jahre vor | 0

Beantwortet
Parfor function for numerical simulations
You might need to extract the columns of E1 etc. before working on them. For example parfor colIdx = 1:numColumns ...

fast 13 Jahre vor | 0

Beantwortet
Error using matlabpool _ Failed to open matlabpool
As the error message suggests, you need to set the NumWorkers property of the cluster to some finite value (i.e. the number of w...

fast 13 Jahre vor | 0

Beantwortet
Can't find GPU in LAN
You need to install the CUDA driver on the worker machines. Once this is done, you should be able to use gpuArray and gpuDevice ...

etwa 13 Jahre vor | 0

Beantwortet
parfor question with 40 nodes
If you manually divide your problem and submit many independent tasks, you will probably see a slight improvement in the amount ...

etwa 13 Jahre vor | 0

Beantwortet
How to use MDCS with a Torque based cluster
It seems that you are making reasonable progress towards getting things working. We are always happy to hear about suggestions f...

etwa 13 Jahre vor | 1

| akzeptiert

Beantwortet
Definitive answer for hyperthreading and the Parallel Computing Toolbox (PCT)?
By default, MATLAB and Parallel Computing Toolbox consider only real cores, not hyperthreaded cores. You can override this ch...

etwa 13 Jahre vor | 8

| akzeptiert

Beantwortet
How can i read data from a text file with parfor or spmd .i have to read as two workers and to combine the result lastly.please reply soon..
Something like this? spmd fh = fopen(sprintf('file_%d.txt', labindex), 'rt'); data = fscanf(fh, '%f'); fclos...

etwa 13 Jahre vor | 0

Beantwortet
mvnrnd bug when run in parfor?
As Shashank points out, this is expected behaviour. Matlabpool workers have their random number generators set up carefully at t...

etwa 13 Jahre vor | 0

Beantwortet
parfor with sliced and reduction variable
You could try something like this so that you're updating whole columns of newc_left and newc_right: numRows = size(oldc, 1...

etwa 13 Jahre vor | 1

| akzeptiert

Beantwortet
I am having problem implementing parfor
Generally, it's best to have the PARFOR loop at the highest level possible because there's an overhead to running each PARFOR lo...

etwa 13 Jahre vor | 0

Beantwortet
How to execute fft's with gpu,cuda in parallel (spmd)?
MATLAB's FFT function can operate along any single dimension. So you can simply do: data_device = fft(data_device, [], 3); ...

etwa 13 Jahre vor | 1

| akzeptiert

Mehr laden