[mvapich-discuss] OSU benchmarks GPU initialization

Jens Glaser jglaser at umn.edu
Sun Aug 25 16:27:26 EDT 2013


Hi,

I had trouble running the osu_bw test with the new MVAPICH 2.0a.

I got
../src/pm/hydra/mpiexec.hydra -np 2 ./osu_bw D D 
Error initializing cuda context

After changing line 360 in osu_bw.c
to read

if ((str = getenv("MV2_COMM_WORLD_LOCAL_RANK")) != NULL) {

instead of

if ((str = getenv("LOCAL_RANK")) != NULL) {

and after recompiling, it worked.

Hope that will help others, too.

Best
Jens

P.S.: I was running in thread exclusive mode, if that's of interest.


More information about the mvapich-discuss mailing list