Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: [OMPI users] OpenMPI 1.7rc5 fails to build with CUDA support when CUDA is in a non-standard location
From: Adam DeConinck (ajdecon_at_[hidden])
Date: 2012-11-02 18:24:39


Hey all,

Not sure that this is the right location to send this report to, might
be more appropriate for the dev list. Let me know if so.

The pre-release OpenMPI 1.7rc5 does not built correctly if you attempt
to compile it with a non-standard CUDA location. The culprit is in
ompi/contrib/vt/vt/vtlib/Makefile, which uses /usr/local/cuda
regardless of the CUDA directory supplied in ./configure
--with-cuda=$CUDA_HOME.

(We keep several different versions of CUDA and select between them
using environment modules, so /usr/local/cuda is always wrong.)

To duplicate:

tar xzf openmpi-1.7rc5.tar.gz
cd openmpi-1.7rc5
./configure --with-cuda=$CUDA_HOME (where CUDA_HOME is not /usr/local/cuda)
grep "usr/local/cuda" ompi/contrib/vt/vt/vtlib/Makefile

will show:
CUDATKDIR = /usr/local/cuda/
CUDATKINCDIR = -I/usr/local/cuda/include/
CUDATKLIBDIR = -L/usr/local/cuda/lib64
CUPTIINCDIR = -I/usr/local/cuda//extras/CUPTI/include/

Attempting to make then failed.

I was able to build successfully by manually substituting the correct
location into the Makefile in question.

Cheers,
Adam