-
Notifications
You must be signed in to change notification settings - Fork 271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
支持CUDA11.1吗 #182
Comments
I add some lines in CMakeLists for RTX3090+CUDA11.1+pytorch1.7.1. Lines 50 to 57 in e2609d8
IF (CUDA_VERSION GREATER 8.9)
set(CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS} -gencode arch=compute_70,code=sm_70")
ENDIF()
IF (CUDA_VERSION GREATER 9.9)
set(CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS} -gencode arch=compute_75,code=sm_75")
ENDIF()
IF (CUDA_VERSION GREATER 10.9)
set(CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS} -gencode arch=compute_80,code=sm_80")
ENDIF()
if (NOT APPLE)
set(CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS} --std=c++14")
set(CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS}")
ENDIF() It works for the following testing codes,
Output: CPU_cost: 2.462858
GPU_cost: 2.462858
tensor([[ 0.1770, -0.7081, 0.1770, 0.1770, 0.1770],
[ 0.1770, 0.1770, -0.7081, 0.1770, 0.1770]], device='cuda:0') |
(yu_tf_py) root@gao-PowerEdge-T640:/yu_ex/warp-ctc3333/pytorch_binding# python setup.py install |
我使用 from warp_ctc import CTCLoss 之后,报错:
ImportError: ....... warp-ctc-pytorch_bindings/pytorch_binding/warpctc_pytorch/_warp_ctc.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZN3c1011CPUTensorIdEv
我之前是能用的。然后我用nvidia-smi查看cuda版本为11.1 ,请问是否不支持cuda11.1?期待解答,不胜感激!
The text was updated successfully, but these errors were encountered: