Updated for compiling a CUDA file with clang.

This commit is contained in:
Edward Diener
2019-10-02 18:52:09 -04:00
parent b7b1425c7f
commit af70b2872e

View File

@ -3,6 +3,7 @@
#~ (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #~ (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
import testing ; import testing ;
import cast ;
project preprocessor_tests : requirements <warnings>on project preprocessor_tests : requirements <warnings>on
<toolset>gcc-4.3.0:<warnings>all <toolset>gcc-4.3.0:<warnings>all
@ -250,10 +251,10 @@ alias preprocessor_config
alias test_clang_cuda alias test_clang_cuda
: :
[ compile clang_cuda.cu [ compile [ cast _ cpp : clang_cuda.cu ]
: <cxxflags>--cuda-gpu-arch=sm_20 : <cxxflags>-nocudalib
<cxxflags>-nocudalib <cxxflags>-nocudainc
<cxxflags>--no-cuda-version-check <cxxflags>"-x cuda"
: clang_cuda_cu : clang_cuda_cu
] ]
; ;