
I run: mpicc or mpirun, the compiler give me error : mpirun error mca: base: component find: unable to open /usr/local/lib/openmpi/mca_mpool_sm configure -with-cuda=/usr/local/cuda-7.5Īfter that, i remake all, remake install Open Mpi. I have googled, and i followed some methods i found:

Omp_info give me : mca:mpi:base:param:mpi_built_with_cuda_support:value:false h fileĪnd error appear:cuda.h: No such file or directory But when i try to combine them into a program, i meet an error: cannot find cuda.h file. I have tested CUDA and it works, tested OpenMPI and it works too. XorgModulePath=/usr/lib/nvidia-331/xorg,/usr/lib/xorg/modulesįinally save the file, reboot and then test vblank_mode=0 glxgears you should get a high frame rate using the dedicated graphics chip.I am installing Open MPI v1.8.8 with CUDA v7.5 on my Linux Debian. To: # Section with nvidia driver specific options, only parsed if Driver=nvidia XorgModulePath=/usr/lib/nvidia-current/xorg,/usr/lib/xorg/modules # comma-separated path of the directory containing nvidia_drv.so and the LibraryPath=/usr/lib/nvidia-current:/usr/lib32/nvidia-current # colon-separated path to the nvidia libraries # Module name to load, defaults to Driver if empty or unset If this value is not set (or empty),Īlso change: # Section with nvidia driver specific options, only parsed if Driver=nvidia To: # The Driver used by Bumblebee server. # (See also the driver-specific sections below) The available drivers are nvidia and nouveau gksudo gedit /etc/bumblebee/nfĬhange: # The Driver used by Bumblebee server.sudo apt-get install libcuda1-331 libvdpau1 nvidia-331 nvidia-331-uvm nvidia-libopencl1-331 nvidia-opencl-icd-331 nvidia-settings screen-resolution-extra.

Install bumblebee bumblebee-nvidia bbswitch-dkms primus through synaptic package manager because there are dependancies for these three that didn't show up on the apt-get call GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset" GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` sudo nano /etc/default/grub should look like this: GRUB_DEFAULT=0
