How to install Open MPI with Cuda-Aware MPI in Linux Debian -
i installing open mpi v1.8.8 cuda v7.5 on linux debian. have tested cuda , works, tested openmpi , works too. when try combine them program, meet error: cannot find cuda.h file . scenario:
my program source code include these .h file
include "cuda.h" include "mpi.h"
i run command: mpicc <filepath> -o test
, error appear:
cuda.h: no such file or directory #include "cuda.h"`
omp_info give me : mca:mpi:base:param:mpi_built_with_cuda_support:value:false
i have googled , , followed methods found: ./configure --with-cuda
./configure --with-cuda=/usr/local/cuda-7.5
( source link : http://mirror.its.dal.ca/openmpi/faq/?category=buildcuda) after that, remake , remake install open mpi. run: mpicc or mpirun, compiler give me error : mpirun error mca: base: component find: unable open /usr/local/lib/openmpi/mca_mpool_sm
i set soft link : ln -s /usr/local/cuda/include /usr/include
( describe in link : building cuda-aware openmpi on ubuntu 12.04 cannot find cuda.h). cannot fix issue.
does install it? please me or share experience. thanks.
i think confusing installation problems incorrect compiler options. necessary explicity specify include paths, library paths, , libraries cuda when compiling , linking host code mpi wrapped host compiler.
something like:
mpicc -i/usr/local/cuda-7.5/include -l/usr/local/cuda-7.5/lib -o test <filepath> -lcuda
would normal way build simple mpi program call cuda driver apis. need add nvcc compilation device code , host code uses runtime api.
the apparent lack of cuda support in mpi flavour separate question , 1 should take in forum (like user mailing list of mpi flavour use).
Comments
Post a Comment