andreinechaev/nvcc4jupyter

Is it possible to specify C++ standard version for compilation? C++17, C++20?

Closed this issue · 1 comments

Alvov1 commented

Wanna use C++20 features inside Cuda code

Added a feature that allows you to pass arguments to the compiler (nvcc). The cell magic would look something like:

%%cuda --compiler-args "--std c++20"

Be aware that you need at least version 12 of "nvcc" to be able to compile with C++ 20. See this page for more details.