MIMD and SPMD
All processors can get the same code but different data
ARRAYS A & B
if (A < 0)
b = 0
else
b = 1
endif
do i = 1, 10
c(i)=a(i)*b(i)
enddo
ARRAYS A & B
if (A < 0)
b = 0
else
b = 1
endif
do i = 1, 10
c(i)=a(i)*b(i)
enddo
ARRAYS A & B
if (A < 0)
b = 0
else
b = 1
endif
do i = 1, 10
c(i)=a(i)*b(i)
enddo
processor 0
processor 2
processor 1
. . .
Previous slide
Next slide
Back to first slide
View graphic version