decord icon indicating copy to clipboard operation
decord copied to clipboard

nvcc fatal : redefinition of argument 'std'

Open YuqiHUO opened this issue 5 years ago • 2 comments

in the last stage of compiling using make, it report a bug:

[ 97%] Building CUDA object CMakeFiles/decord.dir/src/improc/improc.cu.o nvcc fatal : redefinition of argument 'std' CMakeFiles/decord.dir/build.make:508: recipe for target 'CMakeFiles/decord.dir/src/improc/improc.cu.o' failed

I find that it is caused by line 62, CMakeLists.txt

set(CMAKE_CUDA_FLAGS "-std=c++11 ${CMAKE_CUDA_FLAGS}")

erase the '-std=c++11' will solve the problem.

YuqiHUO avatar May 07 '20 14:05 YuqiHUO

What's your cmake version? @YuqiHUO

zhreshold avatar May 08 '20 21:05 zhreshold

3.17.0 installed using conda-forge

YuqiHUO avatar May 08 '20 23:05 YuqiHUO