Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NVML library path

I compiled a software (GROMACS 2016.3) using cmake (3.5.1) with the following flags:

cmake .. -DGMX_BUILD_OWN_FFTW=ON -DREGRESSIONTEST_DOWNLOAD=ON -DGMX_MPI=on -DGMX_GPU=on -DGMX_OPENMP=on -DCUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda-8.0 -DGPU_DEPLOYMENT_KIT_ROOT_DIR=/usr/local/cuda-8.0

CUDA libraries 8.0 were installed from deb with the default paths.

When the software runs it throws a warning as GROMACS was configured without NVML support ... Recompile with the NVML library.

How can I make it see such library? Am I giving the wrong paths to cmake? (No warnings or errors arise when compiling gromacs).

Many thanks

like image 217
Irene Marzuoli Avatar asked Dec 03 '25 23:12

Irene Marzuoli


1 Answers

I am currently compiling GROMACS to support NVML as well, and here is how I got it to work: add this to your cmake, substitute your paths as needed.

-DNVML_INCLUDE_DIR=/usr/cuda_toolkit/8.0.61/include -DNVML_LIBRARY=/usr/cuda_toolkit/8.0.61/lib64/stubs/libnvidia-ml.so

NVML is included as of CUDA 8+, no longer a separate install.

like image 66
Ted Avatar answered Dec 06 '25 10:12

Ted



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!