Hello. I recently started programming in CUDA and i tried to compile a programm in Visual Studio 2013 (Windows 10, Cuda 7.5) and I entered the option “-std=c++11” in order to use the classes that are provided by C++11, but it is ignored. Is C++11 supported by CUDA at all?
Yes, its supported. On the windows platform, c++11 compiler support (in CUDA 7.5) is automatically enabled and there is no need to manually add the switch.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| how to enable c++11 in nvcc for visual studio 14 (2015) ?? | 1 | 2432 | December 11, 2017 | |
| C++11 on CUDA project in visual studio 2013 | 1 | 987 | November 18, 2015 | |
| nvcc: C++11 standard in CUDA frontend? (dependencies, gcc, Windows vs. Linux) | 9 | 29379 | September 19, 2014 | |
| NVRTC and C++11 | 0 | 508 | August 22, 2017 | |
| CUDA 8, C++ 11, and VS 2015 | 4 | 3013 | November 25, 2016 | |
| NVCC fails if C++11 activated and certain headers included | 6 | 7726 | November 12, 2015 | |
| Intel icc compiler and c++11 | 4 | 5817 | July 19, 2016 | |
| failing to compile with GPU : The -std=c++11 flag is not supported with the configured host compiler | 2 | 2401 | July 30, 2019 | |
| nvcc not supporting c++11, any tricks or suggestion for OSX Mavericks? | 5 | 2666 | September 23, 2014 | |
| Can I use C++11 in the .cu-files (CUDA5.5) in Windows7x64 (MSVC) and Linux64 (GCC4.8.2)? | 0 | 1290 | February 9, 2014 |