Project

General

Profile

Bug #3385

Updated by Szilárd Páll 3 months ago

I'm using a Clang based host compiler, which is based on Clang 9.
NVCC, at least at cuda 10.2, still does not accept Clang 9, only up to version 8.
So I have to use GCC as a cuda compiler, which should be fine
via -DCUDA_HOST_COMPILER.

However, I fail with:


<pre>


+ cmake .. -DCMAKE_C_COMPILER=cc -DCMAKE_C_FLAGS=-O3
+ -DCMAKE_CXX_COMPILER=CC -DCMAKE_CXX_FLAGS=-O3
+ -DCUDA_HOST_COMPILER=/global/opt/gcc/8.3.0/snos/bin/g++
+ -DGMX_BUILD_OWN_FFTW=ON -DGMX_HWLOC=OFF
+ -DGMX_BUILD_SHARED_EXE=OFF -DGMX_CYCLE_SUBCOUNTERS=ON -DGMX_GPU=ON
+ -DGMX_CUDA_TARGET_SM=70 -DGMX_OPENMP=ON -DGMX_MPI=ON
+ -DGMX_SIMD=AVX2_256
-- The C compiler identification is Clang 9.0.0
-- The CXX compiler identification is Clang 9.0.0
-- Check for working C compiler: /opt/cray/pe/craype/2.6.5.1/bin/cc
-- Check for working C compiler: /opt/cray/pe/craype/2.6.5.1/bin/cc --
works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /opt/cray/pe/craype/2.6.5.1/bin/CC
-- Check for working CXX compiler: /opt/cray/pe/craype/2.6.5.1/bin/CC
-- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test USING_LIBSTDCXX
-- Performing Test USING_LIBSTDCXX - Success CMake Error at
cmake/FindLibStdCpp.cmake:128 (message):
/global/opt/gcc/8.3.0/include/c++ doesn't exist even though it should.
Please report to developers.
Call Stack (most recent call first):
CMakeLists.txt:69 (find_package)
</pre>


Note that GCC does not have c++ under include, only g++.

<pre>
$ for num in 5.3.0 6.1.0 6.2.0 7.1.0 7.2.0 8.1.0 8.3.0 9.1.0; do ls /opt/gcc/$num/snos/include/; done
g++
g++
g++
g++
g++
g++
g++
g++
$
</pre>

Back