Toolchain: Pass -allow-unsupported-compiler to nvcc

This commit is contained in:
Ole Schütt 2021-11-19 10:09:11 +01:00 committed by Ole Schütt
parent fa5ede6011
commit 8fa5b1f9cf

View file

@ -116,7 +116,7 @@ CUDA_DFLAGS="-D__GRID_CUDA -D__DBCSR_ACC -D__PW_CUDA IF_DEBUG(-D__OFFLOAD_PROFIL
if [ "${ENABLE_CUDA}" = __TRUE__ ] && [ "${GPUVER}" != no ]; then
LIBS="${LIBS} IF_CUDA(${CUDA_LIBS}|)"
DFLAGS="IF_CUDA(${CUDA_DFLAGS}|) ${DFLAGS}"
NVFLAGS="-g -arch sm_${ARCH_NUM} -O3 -Xcompiler='-fopenmp' --std=c++11 \$(DFLAGS)"
NVFLAGS="-g -arch sm_${ARCH_NUM} -O3 -allow-unsupported-compiler -Xcompiler='-fopenmp' --std=c++11 \$(DFLAGS)"
CXXFLAGS+=" --std=c++11"
check_command nvcc "cuda"
check_lib -lcudart "cuda"