[gmx-users] compiling GPU 4.5b2, CUDA_INCLUDE_DIRECTORIES function is undefined

chris.neale at utoronto.ca chris.neale at utoronto.ca
Wed Aug 4 00:36:45 CEST 2010


Dear users:

I previously posted about difficulties compiling gromacs 4.5b2 for GPUs:
http://lists.gromacs.org/pipermail/gmx-users/2010-August/052905.html

It turns out that this problem was not directly related to version.

First, I had to add -DLIB_INSTALL_DIR=$(pwd)/install_dir to the cmake call.

Second, (and it is here that I am stuck), the error message:

CMake Error at kernel/gmx_gpu_utils/CMakeLists.txt:18  
(CUDA_INCLUDE_DIRECTORIES):
   Unknown CMake command "CUDA_INCLUDE_DIRECTORIES".

is telling me that the function CUDA_INCLUDE_DIRECTORIES is undefined.  
Indeed, I can't find reference to it in any other files.

Just to be sure, I downgraded to cmake v2.6.4, but I get the same  
error. Here is my full command line and my error message:

export  
OPENMM_ROOT_DIR=/project/pomes/cneale/GPC/exe/OpenMM2.0-Source/exec/openmm
/project/pomes/cneale/GPC/exe/cmake-2.6.4-Linux-i386/bin/cmake  
/project/pomes/cneale/GPC/exe/intel/gromacs-4.5-beta2/src  
-DGMX_OPENMM=ON -DGMX_THREADS=OFF  
-DCMAKE_INSTALL_PREFIX=$(pwd)/gpuexec -DLIB_INSTALL_DIR=$(pwd)/gpuexec


## output

-- The C compiler identification is Intel
-- The CXX compiler identification is Intel
-- Check for working C compiler:  
/project/scinet/gpc/intel/Compiler/11.1/072/bin/intel64/icc
-- Check for working C compiler:  
/project/scinet/gpc/intel/Compiler/11.1/072/bin/intel64/icc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler:  
/project/scinet/gpc/intel/Compiler/11.1/072/bin/intel64/icpc
-- Check for working CXX compiler:  
/project/scinet/gpc/intel/Compiler/11.1/072/bin/intel64/icpc -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error at kernel/gmx_gpu_utils/CMakeLists.txt:18  
(CUDA_INCLUDE_DIRECTORIES):
   Unknown CMake command "CUDA_INCLUDE_DIRECTORIES".


CMake Warning (dev) in CMakeLists.txt:
   No cmake_minimum_required command is present.  A line of code such as

     cmake_minimum_required(VERSION 2.6)

   should be added at the top of the file.  The version specified may be lower
   if you wish to support older CMake versions for this project.  For more
   information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred!





More information about the gromacs.org_gmx-users mailing list