./configure --prefix=/opt/openmpi --with-cuda=/usr/local/cuda make make install export PATH=$PATH:/opt/openmpi/bin export LD_LIBRARY_PAHT=/opt/openmpii/lib #test cd openmpi-4.0.0/examples make ./hello_c