Can C++17 be used together with CUDA using clang?
问题 As far as using nvcc , one needs to use the corresponding gcc (currently max. 5.4 I believe) in conjunction. This of course somewhat prevents one from using C++17 on the host side. Since C++17 can be compiled using clang 5 and upwards (see here), and one can compile cuda code as well (see here), is it possible to use both C++17 and CUDA at the same time (or can there be problems, e.g. with the CUDA runtime)? 回答1: Yes, as you already guessed the CUDA clang frontend is indeed ahead in C++