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

Whether to support Cuda 12.1 #1748

Open
yangzhipeng1108 opened this issue Nov 13, 2023 · 5 comments
Open

Whether to support Cuda 12.1 #1748

yangzhipeng1108 opened this issue Nov 13, 2023 · 5 comments
Labels
bug Something isn't working

Comments

@yangzhipeng1108
Copy link

torch.version = 2.1.0+cu121

Compiling cuda extensions with
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2023 NVIDIA Corporation
Built on Fri_Sep__8_19:17:24_PDT_2023
Cuda compilation tools, release 12.3, V12.3.52
Build cuda_12.3.r12.3/compiler.33281558_0
from /usr/local/cuda/bin

/usr/lib/python3/dist-packages/requests/init.py:89: RequestsDependencyWarning: urllib3 (2.0.7) or chardet (3.0.4) doesn't match a supported version!
warnings.warn("urllib3 ({}) or chardet ({}) doesn't match a supported "
Traceback (most recent call last):
File "setup.py", line 178, in
check_cuda_torch_binary_vs_bare_metal(CUDA_HOME)
File "setup.py", line 40, in check_cuda_torch_binary_vs_bare_metal
raise RuntimeError(
RuntimeError: Cuda extensions are being compiled with a version of Cuda that does not match the version used to compile Pytorch binaries. Pytorch binaries were compiled with Cuda 12.1.
In some cases, a minor-version mismatch will not cause later errors: #323 (comment). You can try commenting out this check (at your own risk).

@yangzhipeng1108 yangzhipeng1108 added the bug Something isn't working label Nov 13, 2023
@tiandiao123
Copy link

do you have some ways to fix this? I have a similar problem over here.

@CTW20191008
Copy link

conda install packaging
pip install -v --disable-pip-version-check --no-cache-dir --no-build-isolation --global-option="--cpp_ext" --global-option="--cuda_ext" ./

These work for me. Good luck.

@zhongyu-zhao
Copy link

Thanks very much! This works for me.

@jiayoujiayoujiayoua
Copy link

conda install packaging
pip install -v --disable-pip-version-check --no-cache-dir --no-build-isolation --global-option="--cpp_ext" --global-option="--cuda_ext" ./

These work for me. Good luck.

Thanks, this works for me, too

@kkk935208447
Copy link

Thanks, this works for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants