Problem with PLASMA and MPI

Open forum for general discussions relating to PLASMA.

Problem with PLASMA and MPI

Postby Zero » Wed Sep 28, 2011 10:44 am


I tried to use PLASMA in combination with MPI, but there occurs a big problem.
I first call the MPI_init and then the PLASMA_init function. The processes are distributed amoung different cores until the PLASMA_init is called, then all processes are using the same core.
I dont know why the PLASMA_init function influences the distribution of the MPI-processes.

Is there a way to use PLASMA with MPI in an efficient way?
Posts: 1
Joined: Wed Sep 28, 2011 10:30 am

Re: Problem with PLASMA and MPI

Postby mateo70 » Wed Sep 28, 2011 11:21 am


PLASMA bind all the threads to core for better performances. So if you run different MPI processes on a same node, PLASMA will bind all of them on the core 0 by default.

If you want to do that, you have to make sure you give as many cores to PLASMA as those you give to your MPI processes, and make sure every processes bind threads on different cores qith the folowing code for example:

Code: Select all
/* If you give 4 cores to 4 MPI processes on a 16-cores architecture */

int nbcores=4;
int *affinity = (int*)malloc(nbcores*sizeof(int));

for(i=0; i<nbcores; i++) {
       affinity[i] = myrank * nbcores + i;
PLASMA_Init_Affinity( nbcores, affinity );

Posts: 92
Joined: Fri May 07, 2010 3:48 pm

Return to User discussion

Who is online

Users browsing this forum: jianqayn and 1 guest