Re: [AMBER] [EXTERNAL] Error: Incompatible CUDA and GNU versions

From: Info via AMBER <amber.ambermd.org>
Date: Wed, 15 Nov 2023 08:20:56 +0000 (UTC)

Thanks, I was using cmake 3.20. I just installed 3.28 and tried again but unfortunately same error. Pasting the full output below:

(amber) [hussaif1.delltower48 build]$ ./clean_build
Cleaning directory /home/hussaif1/amber/amber22_src/build
Removing:
- arch.c
- CMakeCache.txt
- CMakeFiles
- cmake.log
OK to apply remove command on these files? [N/y]
y
Done cleaning.
(amber) [hussaif1.delltower48 build]$ ./configure_cmake.py --prefix /home/hussaif1/amber/ --compiler gnu --cuda --install-tests --python --with-python $(which python) --no-miniconda --force-internal-libs="blas;lapack;arpack;netcdf" --no-check-updates --no-apply-updates --no-color-message --save
Starting configure_cmake.py on Wed Nov 15 03:17:57 2023


Setting SOURCE path automatically to ... /home/hussaif1/amber/amber22_src
Amber(Tools) source directory .......... /home/hussaif1/amber/amber22_src
install directory ...................... /home/hussaif1/amber
compiler ............................... GNU
enable MPI parallelization ............. no
enable CUDA acceleration ............... yes
enable OpenMP parallelization .......... no
build GUI .............................. yes
install tests .......................... yes
build python programs .................. yes
python executable location ............. /home/hussaif1/amber/bin/python
force internal library building for .... blas;lapack;arpack;netcdf
check for available updates ............ no
apply available updates ................ no
cmake color messages ................... no
Saving cmake instructions .............. run_cmake


Running cmake command:
cmake /home/hussaif1/amber/amber22_src -DCMAKE_INSTALL_PREFIX=/home/hussaif1/amber -DCOMPILER=GNU -DMPI=FALSE -DCUDA=TRUE -DOPENMP=FALSE -DBUILD_GUI=TRUE -DINSTALL_TESTS=TRUE -DBUILD_PYTHON=TRUE -DPYTHON_EXECUTABLE=/home/hussaif1/amber/bin/python -DFORCE_INTERNAL_LIBS=blas;lapack;arpack;netcdf -DCHECK_UPDATES=FALSE -DAPPLY_UPDATES=FALSE -DCOLOR_CMAKE_MESSAGES=FALSE


-- **************************************************************************
-- Starting configuration of Amber version 22.0.0...
-- CMake Version: 3.28.0
-- For how to use this build system, please read this wiki:
--     http://ambermd.org/pmwiki/pmwiki.php/Main/CMake
-- For a list of important CMake variables, check here:
--     http://ambermd.org/pmwiki/pmwiki.php/Main/CMake-Common-Options
-- **************************************************************************
-- Setting C compiler to gcc
-- Setting CXX compiler to g++
-- Setting Fortran compiler to gfortran
-- Amber source found, building AmberTools and Amber
-- The C compiler identification is GNU 8.5.0
-- The CXX compiler identification is GNU 8.5.0
-- The Fortran compiler identification is GNU 8.5.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Check for working Fortran compiler: /usr/bin/gfortran - skipped
-- Testing if stdlib.h can be included...
-- Testing if stdlib.h can be included... yes
CMake Warning (dev) at cmake/CudaConfig.cmake:11 (find_package):
  Policy CMP0146 is not set: The FindCUDA module is removed.  Run "cmake
  --help-policy CMP0146" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.


Call Stack (most recent call first):
  CMakeLists.txt:120 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.


-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found CUDA: /usr/local/cuda-11.8 (found version "11.8")
-- CUDA version 11.8 detected
-- Configuring for SM3.5, SM5.0, SM5.2, SM5.3, SM6.0, SM6.1, SM7.0, SM7.5 and SM8.0
--
************************************************************
Error: Incompatible CUDA and GNU versions
 8.5.0
See https://stackoverflow.com/questions/6622454/cuda-incompatible-with-my-gcc-version
************************************************************
--
CMake Error at cmake/CudaConfig.cmake:124 (message):
Call Stack (most recent call first):
  CMakeLists.txt:120 (include)
-- Configuring incomplete, errors occurred!
Cleaning source directories.
cp: cannot stat 'config.h': No such file or directory
Makefile:11: config.h: No such file or directory
make: *** No rule to make target 'config.h'.  Stop.
cp: cannot stat 'config.h': No such file or directory
Makefile:11: config.h: No such file or directory
make: *** No rule to make target 'config.h'.  Stop.
(amber) [hussaif1.delltower48 build]$
_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Wed Nov 15 2023 - 00:30:02 PST
Custom Search