Closed dcanelhas closed 11 years ago
I think you can also use CUDA 5.0, build example with gcc 4.6+ version and cuda with gcc 4.7- version.
Best, Lu
On Aug 22, 2013, at 6:06 AM, dcanelhas notifications@github.com wrote:
I had to use update-alternatives --config gcc to select version 4.6 due to CUDA not supporting 4.7 yet.
During compilation I got an error regarding the use of the -std=c++11 flag on the examples.
A workaround for my system (3.8.0-29-generic #42-Ubuntu x86_64) was to change Kangaroo / applications / examples / CMakeLists.txt / line 5. from set(CMAKE_CXX_FLAGS "-std=c++11 -g")
to set(CMAKE_CXX_FLAGS "-std=c++0x -g")
— Reply to this email directly or view it on GitHub.
Updated compiler flags to be compatible with GCC 4.6.
I had to use update-alternatives --config gcc to select version 4.6 due to CUDA not supporting 4.7 yet.
During compilation I got an error regarding the use of the -std=c++11 flag on the examples.
A workaround for my system (3.8.0-29-generic #42-Ubuntu x86_64) was to change Kangaroo / applications / examples / CMakeLists.txt / line 5. from set(CMAKE_CXX_FLAGS "-std=c++11 -g")
to set(CMAKE_CXX_FLAGS "-std=c++0x -g")