Using C++20 in the nvcc compiler for cuda
I'm trying to use the std::countr_zero()
function from the <bits>
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.
Solution 1:
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.