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

运行sh build.sh时获取不到CUDA_HOME的环境变量信息 #183

Open
yxs87 opened this issue Jun 7, 2024 · 0 comments
Open

运行sh build.sh时获取不到CUDA_HOME的环境变量信息 #183

yxs87 opened this issue Jun 7, 2024 · 0 comments

Comments

@yxs87
Copy link

yxs87 commented Jun 7, 2024

(lane-det) yxs@yxs-System-Product-Name:~/object/lane/my_interp$
sh build.sh
Traceback (most recent call last):
File "setup.py", line 7, in
CUDAExtension('my_interp', [
File "/home/yxs/anaconda3/envs/lane-det/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1077, in CUDAExtension
library_dirs += library_paths(cuda=True)
File "/home/yxs/anaconda3/envs/lane-det/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1204, in library_paths
if (not os.path.exists(_join_cuda_home(lib_dir)) and
File "/home/yxs/anaconda3/envs/lane-det/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 2419, in _join_cuda_home
raise OSError('CUDA_HOME environment variable is not set. '
OSError: CUDA_HOME environment variable is not set. Please set it to your CUDA install root.

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