Using C++20 in the nvcc compiler for cuda

Viewed 1066

I'm trying to use the std::countr_zero() function from the <bitset> library, but I'm not sure how I'm supposed to configure my nvcc compiler as I'm sure it's not using the C++20 version.

1 Answers

NVCC does not currently support C++20. In fact, the C++17 support is quite new (November 2020; see the NVCC versions). You can find more information here and there. Using Clang instead may help you to (partially) use C++20.

Related