Building CUDA-aware openMPI on Ubuntu 12.04 cannot find cuda.h -
i building openmpi 1.8.5 on ubuntu 12.04 cuda 6.5 installed , tested default samples. intend run on single node following configuration:
 
dell precision t7400
 dual xeon x5450
 nvidia gt730/tesla c1060
the configure command issued was
    $ ./configure --prefix=/usr --with-cuda=/usr/local/cuda   in generated config.log, clear the configure script not able find cuda.h , cuda_runtime_api.h in /usr/loca/cuda/include, exist. 
for cuda.h:
    configure:73774: checking cuda.h usability     configure:73774: gcc -std=gnu99 -c -o3 -dndebug    conftest.c >&5     conftest.c:645:18: fatal error: cuda.h: no such file or directory     compilation terminated.     configure:73774: $? = 1     configure: failed program was:     | /* confdefs.h */   for cuda_runtime_api.h:
    configure:73857: checking cuda_runtime_api.h presence     configure:73857: gcc -e   conftest.c     conftest.c:612:30: fatal error: cuda_runtime_api.h: no such file or directory     compilation terminated.     configure:73857: $? = 1     configure: failed program was:     | /* confdefs.h */   i tried change path version-specific directory, i.e. /usr/loca/cuda-6.5/cuda same error thrown.
i tried proceed install, , ompi_info gave 
    mca:mpi:base:param:mpi_built_with_cuda_support:value:false   does had similar experience can me out? many thanks!
ok, think fixed problem. conftest.c seems looking cuda.h in /usr/include, instead of supposed /usr/local/cuda/include. problem solved once created soft link of cuda.h , cuda_runtime_api.h.
Comments
Post a Comment