Answered
SimEvents: Parallel Simulations produce same results for each MatLab worker
The reason for the duplicate results is that your call to 'se_randomizeseeds' is using the system clock to set up the random num...

13 years ago | 1

| accepted

Answered
Parallelizing multiple iterations and randperm for a Monte Carlo simulation
If you take computations out of the PARFOR loop, then even if they are vectorized, they are no longer operating in parallel so i...

13 years ago | 2

Answered
Best approach to this problem - spmd or parfor ?
I would say that it sounds like your PARFOR solution is probably pretty close to the best you can do. It sounds like your proble...

13 years ago | 0

| accepted

Answered
Speeding up Image Processing using Parallel Computing
I think vectorization using BSXFUN is likely to help you out more here than parallelization if I've understood your problem corr...

13 years ago | 2

Answered
How can I customize the instances of matlab launched via matlabpool?
When you run an interactive MATLABPOOL session, we always try to synchronize the path on the workers to make sure all your code ...

13 years ago | 0

Answered
How to stop at warning within parfor
You cannot debug code running on matlabpool workers, however you can run your code with matlabpool closed and debug that. Wh...

13 years ago | 0

| accepted

Answered
Existence of parallel computing resources (statistics, etc)?
There are some simple benchmark results for PARFOR <http://www.mathworks.com/products/parallel-computing/examples.html?file=/pro...

13 years ago | 2

| accepted

Answered
Many GPU problems on new MacBook Pro
Hi Ralph, Please could you try the suggestions made in Jos's answer here <http://www.mathworks.com/matlabcentral/answers/44740-m...

14 years ago | 0

| accepted

Answered
MATLAB couldn't find my gpu any more
Firstly, I don't know of any good reason why installing nvmex should have any effect on whether the GPU stuff works in MATLAB. ...

14 years ago | 1

Answered
When to use spmd and parfor function.
Here's a very brief summary: PARFOR is much simpler to use than SPMD, and should normally be your first choice when attemptin...

14 years ago | 6

| accepted

Answered
How to modify code to use parfor rather than more than two nested for loops?
I think you should be able to solve this problem by using linear indexing - i.e. taking advantage of MATLAB's ability to index a...

14 years ago | 1

Answered
How to use parfor-loop or parallel computation on a cluster?
You should send 'script-1' as a batch script for execution on your cluster with an open MATLABPOOL, like this: j = batch('s...

14 years ago | 2

| accepted

Answered
Difference between simple matlabpool parfor and batch parfor.
The amount of computation that your PARFOR loop contains is far too small to benefit from launching such a large matlabpool. Lau...

14 years ago | 0

| accepted

Solved


Bullseye Matrix
Given n (always odd), return output a that has concentric rings of the numbers 1 through (n+1)/2 around the center point. Exampl...

14 years ago

Solved


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

14 years ago

Solved


Return unique values without sorting
If the input vector A is [42 1 1], the output value B must be the unique values [42 1] The *values of B are in the s...

14 years ago

Solved


Return the largest number that is adjacent to a zero
This example comes from Steve Eddins' blog: <http://blogs.mathworks.com/steve/2009/05/27/learning-lessons-from-a-one-liner/ Lear...

14 years ago

Solved


Add two numbers
Given a and b, return the sum a+b in c.

14 years ago

Solved


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

14 years ago

Answered
MATLAB Distributed Computing Server
Yes, you can open a matlabpool using MDCS workers and run PARFOR and SPMD.

14 years ago | 1

| accepted

Answered
Saving data from SPMD loop to client
After the SPMD block, 'out' is a 'Composite'. By indexing into the Composite, you ring the values back to the client. To bring a...

14 years ago | 3

Answered
Log file of minimization done in parallel using batch
At this time, it's not possible to get the diary output from a batch job until after the job has completed execution. You could ...

14 years ago | 0

| accepted

Answered
Imbedded regression use with GPUs
Whether or not you will get much benefit from using GPUArrays depends quite a bit on where the majority of the time is spent in ...

14 years ago | 1

Answered
How to Execute Parallel program through SPMD or BATCH or TASK?
Inside an SPMD block, you need to use a <http://www.mathworks.co.uk/help/toolbox/distcomp/bqkoovb.html for-loop over a distribut...

14 years ago | 2

| accepted

Answered
parfor loop: How to calculate its transmission limit?
It's not straightforward to calculate how much sliced data is sent to the workers during a PARFOR loop. The broadcast data is si...

14 years ago | 1

| accepted

Answered
Multi-GPU computing in MATLAB
You're right that each gpuArray can reside only on a single GPU, and that a single MATLAB instance can access only a single GPU ...

14 years ago | 1

Answered
ParFor takes a lot of time to run
The MATLAB profiler can only provide you with useful information about your client MATLAB instance (i.e. the one where you're in...

14 years ago | 3

| accepted

Answered
Parfor Step
As the doc states, PARFOR needs to work with unit-step ranges. So you do need to re-work the loop slightly, something like this:...

14 years ago | 0

| accepted

Answered
hyperthreading question
There are several reasons why different numbers of workers can behave differently. In some situations, even if each PARFOR loop ...

14 years ago | 2

| accepted

Answered
Using parfor
One thing to check - have you opened MATLABPOOL before issuing PARFOR? You need to do this in each MATLAB session to make the ex...

14 years ago | 0

Load more