SeanNaren / warp-ctc

Pytorch Bindings for warp-ctc
Apache License 2.0
756 stars 271 forks source link

recipe for target 'CMakeFiles/warpctc.dir/src/warpctc_generated_reduce.cu.o' failed #116

Open Adhders opened 5 years ago

Adhders commented 5 years ago

pytorch-1.0.1.post2 ,ubantu 18.0.4, build error!

do anyone have some idea?

movecpp commented 5 years ago

undefine on "__shfl_up" or "__shfl_down" ? open CMakeList and delete something :

IF (CUDA_VERSION GREATER 7.6) set(CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS} -gencode arch=compute_60,code=sm_60") set(CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS} -gencode arch=compute_61,code=sm_61") set(CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS} -gencode arch=compute_62,code=sm_62") ENDIF() IF (CUDA_VERSION GREATER 8.9) set(CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS} -gencode arch=compute_70,code=sm_70") ENDIF()

Adhders commented 5 years ago

warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++

undefine on "__shfl_up" or "__shfl_down" ? open CMakeList and delete something :

IF (CUDA_VERSION GREATER 7.6) set(CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS} -gencode arch=compute_60,code=sm_60") set(CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS} -gencode arch=compute_61,code=sm_61") set(CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS} -gencode arch=compute_62,code=sm_62") ENDIF() IF (CUDA_VERSION GREATER 8.9) set(CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS} -gencode arch=compute_70,code=sm_70") ENDIF()

Thanks ,I make it !

Adhders commented 5 years ago

there is a new issue when I python setup.py install . warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++

movecpp commented 5 years ago

check up your compile arguments follow that MakeFile,you can ignore this all warning text because compiler will be autocomplete

wjf5203 commented 5 years ago

maybe gcc and g++ version cause the problem, try gcc-4.8 and g++4.8. I met the same problem and that help me

berylyellow commented 5 years ago

请问你是怎样解决你题目中的这个问题的?@Adhders 我是gcc7.3,cuda10.1,pytorch版本1.1.0a0+7e73783,make的时候报跟你一样的错

qmpzzpmq commented 5 years ago

same error, delete is not work.

qmpzzpmq commented 5 years ago

You need to set FLAG manually responding edition with your device model.