[gmx-users] Compilation of Gromacs 4.5.5 with GPU support: libxml and CUDA toolkit problems

ms devicerandom at gmail.com
Mon Aug 6 15:04:38 CEST 2012


I am trying to compile Gromacs 4.5.5 with GPU support on Linux. I have 
performed the following steps:

export OPENMM_ROOT_DIR=/home/xxxx/gromacs/OpenMM2.0-Linux64/
mkdir build-gpu
mkdir exec-gpu
cd build-gpu
cmake ../  -DGMX_OPENMM=ON -DFFTW3F_INCLUDE_DIR=/usr/lib/include 

but it fails with:

-- Using manually set binary suffix: "_gpu"
-- Using manually set library suffix: "_gpu"
-- checking for module 'libxml-2.0'
--   package 'libxml-2.0' not found
-- Could NOT find LibXml2 (missing:  LIBXML2_LIBRARIES LIBXML2_INCLUDE_DIR)
CMake Error at cmake/FindCUDA.cmake:465 (message):
Call Stack (most recent call first):
   CMakeLists.txt:434 (find_package)

For libxml2: I have libxml2.so.2 in /usr/lib
I tried the following:

- export LIBXML2_INCLUDE_DIR=/usr/lib
- export LIBXML2_LIBRARIES=/usr/lib/libxml2.so.2
- adding -DLIBXML2_INCLUDE_DIR=/usr/lib

but it continues to fail.

About the CUDA_TOOLKIT_ROOT_DIR, I don't know where to find it honestly.

Any hint on how to find a solution?

Thanks a lot,

Massimo Sandal, Ph.D.

More information about the gromacs.org_gmx-users mailing list