hijkzzz/cuda-neural-network

nvcc fatal : redefinition of argument 'optimize'

Closed this issue · 0 comments

I got an issue when I compile the project using make , here is the output:

➜ build make

Scanning dependencies of target cu

[ 5%] Building CUDA object CMakeFiles/cu.dir/src/cuda/blas.cu.o

nvcc fatal : redefinition of argument 'optimize'

CMakeFiles/cu.dir/build.make:62: recipe for target 'CMakeFiles/cu.dir/src/cuda/blas.cu.o' failed

make[2]: *** [CMakeFiles/cu.dir/src/cuda/blas.cu.o] Error 1

CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/cu.dir/all' failed

make[1]: *** [CMakeFiles/cu.dir/all] Error 2

Makefile:83: recipe for target 'all' failed

make: *** [all] Error 2

It seems like a nvcc compiling issue using optimizing arguments like '-O3' or '-O2', but I just can not figure out. Can someone help me? Thx!