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

RuntimeError: code is not compiled with CUDA. #258

Open
zhanghaoie opened this issue Feb 25, 2022 · 3 comments
Open

RuntimeError: code is not compiled with CUDA. #258

zhanghaoie opened this issue Feb 25, 2022 · 3 comments

Comments

@zhanghaoie
Copy link

跑完build_and_run_unitest,unittest都pass了,但是运行benchmark gpu_fixed的时候,报code is not compiled with CUDA。

@feifeibear
Copy link
Collaborator

feifeibear commented Feb 27, 2022

README写了,编译时候应该 cmake .. -DWITH_GPU=ON,或者你下载成了cpu-only的镜像了

@zhanghaoie
Copy link
Author

sh tools/build_and_run_unittests.sh $PWD -DWITH_GPU=ON
按照readme运行的这个指令,难道这个不是支持gpu的吗?

@zhanghaoie
Copy link
Author

按照gpu docker的方式编译的,应该没什么问题的。。。

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