Questions tagged [spmd]

SPMD (single program, multiple data) is a technique employed to achieve parallelism; it is a subcategory of MIMD

In computing, (single program, multiple data) is a technique employed to achieve parallelism; it is a subcategory of .
Tasks are split up and run simultaneously on multiple processors with different input in order to obtain results faster.
SPMD is the most common style of parallel programming. It is also a prerequisite for research concepts such as active messages and distributed shared memory.
In SPMD, multiple autonomous processors simultaneously execute the same program at independent points, rather than in the lockstep that SIMD imposes on different data. With SPMD, tasks can be executed on general purpose CPUs; SIMD requires vector processors to manipulate data streams. Note that the two are not mutually exclusive.

Wikipedia page: http://en.wikipedia.org/wiki/SPMD

40 questions
0
votes
1 answer

Error using parfor inside spmd block - matlab

As I know about parallel programming in Matlab, We can exactly specify what worker does what; using : if labindex == x %some computations end Also we can run for loops in parallel; using : parfor i1 = x:y %some computations end I'm using…
user5871360
0
votes
0 answers

Error using codistributed/subsasgn (line 131) Assignment has more non-singleton rhs dimensions than non-singleton subscripts

I'm running my code in parallel, my local profile has two cores. this code is Forward algorithm in hidden markov model. my code is here: function [ eln_alpha ] = forward_algo( Obs,P,Pi_0 ,Q ) parpool('local',2); n = length(Pi_0); T =…
user5871360
0
votes
1 answer

Waiting when using spmd (parallel computing) in Matlab

I am using spmd to distribute two different tasks into the two processors of the computer. The code is something similar to: spmd if labindex==1 TASK_ONE; end if labindex==2 TASK_TWO; end end Each task opens a file and…
wuampa
  • 273
  • 4
  • 15
0
votes
1 answer

use spmd in matlab (parallel) to apply a function to parts of vector

I am working in MatLab with the parallel computing toolbox. Task I have a vector v. I have 4 cores. I want to split the vector on each core (so each core handles 1/4th of the vector, assuming length(v) is divisible by 4) and apply a function f() on…
Jesper - jtk.eth
  • 7,026
  • 11
  • 36
  • 63
0
votes
1 answer

Generate random numbers inside spmd in matlab

I am running a Monte carlo simulation in Matlab using parallelisation due to the extensive time that the simulation takes to run. The main objective is create a really big panel data set and use that to estimate some regressions. The problem is that…
0
votes
2 answers

Matlab Spmd Termination

I'm implementing a simulated annealing algorithm in matlab using spmd. I will compare different implentation types. One of them is asynchronous paralellism. 12 workers will run the code. if one of them meets the criteria(error<0.01) code will stop…
0
votes
1 answer

composite date from parallel computing

I'm using parallel computing for the first time (spmd). After starting the pool and doing some parallel computations, I only have composite variables in my workspace and can't open them. Or when I open them by double clicking they are empty. How can…
holistic
  • 103
  • 6
0
votes
2 answers

How to get significant speed up using Parallel Computing Toolbox of MATLAB in core i7 processor?

I am working on Image Processing . I am having a computer with Intel(R) Core(TM) i7 -3770 CPU @3.40 GHz, RAM 4 GB Configuration. I just want parallelize our code of an algorithm of image processing using SPMD command of PCT. For this i have divided…
0
votes
1 answer

MPI library - problems saving values on array

I am trying to save values on an array at a process, specifically at number 0. So, I made a condition to save these values if its rank is 0: int main(int argc, char *argv[]) { int rank,numprocs; int count[numprocs]; int disp[numprocs]; …
horro
  • 1,262
  • 3
  • 20
  • 37
-2
votes
1 answer

Proceacmiento distributed images with matlab

I'm doing image processing in a cluster, but failed to optimal performance, I have a function that replicate the edges and another to apply the filter or mask, but when the time of execution of MATLAB SPMD used the program are not meeting each while…
1 2
3