Skip to content
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

编译Error #14

Open
Cai-RS opened this issue Mar 31, 2024 · 1 comment
Open

编译Error #14

Cai-RS opened this issue Mar 31, 2024 · 1 comment

Comments

@Cai-RS
Copy link

Cai-RS commented Mar 31, 2024

你好,感谢你的工作!
我在编译你的项目时,因为我的显卡是3070,所以我就使用了“set(CUDA_GEN_CODE "-gencode=arch=compute_86,code=sm_86")”来指CUDA_GEN_CODE,但是在build时出现了这样的错误:
nvcc fatal : Don't know what to do with ' -std=c++11 -O0 -Xcompiler -fPIC -g -w -gencode=arch=compute_86,code=sm_86'

应该是是CmakeLists.txt中的这句话
set(CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS} -std=c++11 -O0 -Xcompiler -fPIC -g -w ${CUDA_GEN_CODE}")
无法被执行。查了半天没有找到相关的解决办法,请问你知道怎么解决吗?

@Melody-Zhou
Copy link
Owner

我的显卡是 RTX3060,我在编译的过程中 set(CUDA_GEN_CODE "-gencode=arch=compute_75,code=sm_75") 这行代码仍然是注释的,你并不需要修改它,你只需要指定修改几个库文件的路径,包括 OpenCV、CUDA、cuDNN、TensorRT、Protobuf,CMakeLists.txt 中的注释可能误导了,抱歉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants