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

fatal error: cuda_runtime_api.h: 没有那个文件或目录 #41

Open
cwt4007 opened this issue Jan 17, 2022 · 0 comments
Open

fatal error: cuda_runtime_api.h: 没有那个文件或目录 #41

cwt4007 opened this issue Jan 17, 2022 · 0 comments

Comments

@cwt4007
Copy link

cwt4007 commented Jan 17, 2022

运行 python setup.py build develop 时候,通过网络查看了可能是torch 和 cuda 版本不匹配,但还没有找到处理问题的方法

具体报错:
In file included from /home/rebot/anaconda3/envs/cwt_DeepLearning/lib/python3.7/site-packages/torch/include/ATen/cuda/CUDAContext.h:5:0,
from /home/rebot/DeepLearning/Box_Discretization_Network-master/maskrcnn_benchmark/csrc/cpu/dcn_v2_cpu.cpp:4:
/home/rebot/anaconda3/envs/cwt_DeepLearning/lib/python3.7/site-packages/torch/include/c10/cuda/CUDAStream.h:6:10: fatal error: cuda_runtime_api.h: 没有那个文件或目录
#include <cuda_runtime_api.h>
^~~~~~~~~~~~~~~~~~~~
compilation terminated.
error: command 'gcc' failed with exit status 1

请问大家发现这个问题的解决办法了吗?

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

1 participant