I got an CUDA program (myprogram.cu) , and i want to Use MPI communication protocol.When i add header "mpi.h" and try to compile
nvcc -c myprogram.cu -lmpi -l/usr/include/mpi -o output
I got : error: mpi.h : No such file or directory My program uses both HOST and DEVICE functions.
How can i compile mpi-cuda aware program? My program runs well , so i thought i dont need to upload my code. It just doesnt recognise the header,so i cant even write code for MPI. I compile my program in an environment that is capable of GPU Direct - MPI cuda-aware (university computer system) . Thanks in advance.