apex icon indicating copy to clipboard operation
apex copied to clipboard

Whether to support Cuda 12.1

Open yangzhipeng1108 opened this issue 1 year ago • 5 comments

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: https://github.com/NVIDIA/apex/pull/323#discussion_r287021798. You can try commenting out this check (at your own risk).

yangzhipeng1108 avatar Nov 13 '23 08:11 yangzhipeng1108

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

tiandiao123 avatar Dec 15 '23 05:12 tiandiao123

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.

CTW20191008 avatar Feb 06 '24 07:02 CTW20191008

Thanks very much! This works for me.

zhongyu-zhao avatar Feb 27 '24 06:02 zhongyu-zhao