You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not really an issue. Just to help others who want to compile with new versions of CUDA.
CUDA Samples are not found in local installation anymore. Based on NVIDIA samples README:
Beginning in the next CUDA release, samples will be relocating from a local installation to GitHub! Please refer to our online repository for the most up-to-date CUDA samples and library examples: https://github.com/nvidia/cuda-samples
Change -I/usr/local/cuda/samples/common/inc -I/usr/local/cuda/samples/shared/inc/ to -I/yourPath/cuda-samples/Common/ in the make_MC-GPU_v1.5b.sh file;
Also, if using MPI, you need to install it sudo apt install libopenmpi-dev and the mpicc -showme command shows the path to the necessary libraries to compile mpi projects (based on this answer). Then substitute -I/usr/include/openmpi -L/usr/lib/ -lmpi with the output from the previous command.
Not really an issue either but I thought it would be good for me as much as anyone to leave instructions to run MCGPU on docker on a similar note to @rodrigovimieiro
First you need to install docker to work with your gpu drivers:
Not really an issue. Just to help others who want to compile with new versions of CUDA.
CUDA Samples are not found in local installation anymore. Based on NVIDIA samples README:
So, these are the steps:
git clone https://github.com/NVIDIA/cuda-samples.git
;-I/usr/local/cuda/samples/common/inc -I/usr/local/cuda/samples/shared/inc/
to-I/yourPath/cuda-samples/Common/
in the make_MC-GPU_v1.5b.sh file;sudo apt install libopenmpi-dev
and thempicc -showme
command shows the path to the necessary libraries to compile mpi projects (based on this answer). Then substitute-I/usr/include/openmpi -L/usr/lib/ -lmpi
with the output from the previous command.This command works for me:
nvcc MC-GPU_v1.5b.cu -o MC-GPU_v1.5b.x -m64 -O3 -use_fast_math -DUSING_MPI -I. -I/usr/local/cuda/include -I/home/rodrigo/NVIDIA_CUDA-11.5_Samples/cuda-samples/Common/ -I/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi -I/usr/lib/x86_64-linux-gnu/openmpi/include -L/usr/lib/x86_64-linux-gnu/openmpi/lib -lmpi -lz --ptxas-options=-v -gencode=arch=compute_50,code=sm_50 -gencode=arch=compute_61,code=sm_61
Environment:
The text was updated successfully, but these errors were encountered: