Advertisement
lamiastella

local cuda doesn't work

Sep 14th, 2021
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.45 KB | None | 0 0
  1. (proxy) [jalal@goku apex]$ export PATH=/usr/local/cuda-11./bin:$PATH
  2. (proxy) [jalal@goku apex]$ export LD_LIBRARY_PATH=/usr/local/cuda-11.1/lib64:$LD_LIBRARY_PATH
  3. (proxy) [jalal@goku apex]$ pip uninstall torchaudio torch torchvision
  4. Found existing installation: torchaudio 0.9.0
  5. Uninstalling torchaudio-0.9.0:
  6. Would remove:
  7. /scratch3/venv/proxy/lib/python3.8/site-packages/torchaudio-0.9.0.dist-info/*
  8. /scratch3/venv/proxy/lib/python3.8/site-packages/torchaudio/*
  9. Proceed (Y/n)? y
  10. Successfully uninstalled torchaudio-0.9.0
  11. Found existing installation: torch 1.9.0+cu111
  12. Uninstalling torch-1.9.0+cu111:
  13. Would remove:
  14. /scratch3/venv/proxy/bin/convert-caffe2-to-onnx
  15. /scratch3/venv/proxy/bin/convert-onnx-to-caffe2
  16. /scratch3/venv/proxy/lib/python3.8/site-packages/caffe2/*
  17. /scratch3/venv/proxy/lib/python3.8/site-packages/torch-1.9.0+cu111.dist-info/*
  18. /scratch3/venv/proxy/lib/python3.8/site-packages/torch/*
  19. Proceed (Y/n)? y
  20. Successfully uninstalled torch-1.9.0+cu111
  21. Found existing installation: torchvision 0.10.0+cu111
  22. Uninstalling torchvision-0.10.0+cu111:
  23. Would remove:
  24. /scratch3/venv/proxy/lib/python3.8/site-packages/torchvision-0.10.0+cu111.dist-info/*
  25. /scratch3/venv/proxy/lib/python3.8/site-packages/torchvision.libs/libcudart.05b13ab8.so.11.0
  26. /scratch3/venv/proxy/lib/python3.8/site-packages/torchvision.libs/libjpeg.ceea7512.so.62
  27. /scratch3/venv/proxy/lib/python3.8/site-packages/torchvision.libs/libnvjpeg.d463bc90.so.11
  28. /scratch3/venv/proxy/lib/python3.8/site-packages/torchvision.libs/libpng16.7f72a3c5.so.16
  29. /scratch3/venv/proxy/lib/python3.8/site-packages/torchvision.libs/libz.1328edc3.so.1
  30. /scratch3/venv/proxy/lib/python3.8/site-packages/torchvision/*
  31. Proceed (Y/n)? y
  32. Successfully uninstalled torchvision-0.10.0+cu111
  33. (proxy) [jalal@goku apex]$ pip install torch==1.9.0+cu111 torchvision==0.10.0+cu111 torchaudio==0.9.0 -f https://download.pytorch.org/whl/torch_stable.html
  34. Looking in links: https://download.pytorch.org/whl/torch_stable.html
  35. Collecting torch==1.9.0+cu111
  36. Using cached https://download.pytorch.org/whl/cu111/torch-1.9.0%2Bcu111-cp38-cp38-linux_x86_64.whl (2041.3 MB)
  37. Collecting torchvision==0.10.0+cu111
  38. Using cached https://download.pytorch.org/whl/cu111/torchvision-0.10.0%2Bcu111-cp38-cp38-linux_x86_64.whl (23.2 MB)
  39. Collecting torchaudio==0.9.0
  40. Using cached torchaudio-0.9.0-cp38-cp38-manylinux1_x86_64.whl (1.9 MB)
  41. Requirement already satisfied: typing-extensions in /scratch3/venv/proxy/lib/python3.8/site-packages (from torch==1.9.0+cu111) (3.10.0.2)
  42. Requirement already satisfied: numpy in /scratch3/venv/proxy/lib/python3.8/site-packages (from torchvision==0.10.0+cu111) (1.21.2)
  43. Requirement already satisfied: pillow>=5.3.0 in /scratch3/venv/proxy/lib/python3.8/site-packages (from torchvision==0.10.0+cu111) (8.3.2)
  44. Installing collected packages: torch, torchvision, torchaudio
  45. Successfully installed torch-1.9.0+cu111 torchaudio-0.9.0 torchvision-0.10.0+cu111
  46. (proxy) [jalal@goku apex]$ pip install -v --disable-pip-version-check --no-cache-dir > --global-option="--cpp_ext" --global-option="--cuda_ext" ./
  47. /scratch3/venv/proxy/lib/python3.8/site-packages/pip/_internal/commands/install.py:229: UserWarning: Disabling all use of wheels due to the use of --build-option / --global-option / --install-option.
  48. cmdoptions.check_install_build_global(options)
  49. DEPRECATION: A future pip version will change local packages to be built in-place without first copying to a temporary directory. We recommend you use --use-feature=in-tree-build to test your packages with this new behavior before it becomes the default.
  50. pip 21.3 will remove support for this functionality. You can find discussion regarding this at https://github.com/pypa/pip/issues/7555.
  51. Running command python setup.py egg_info
  52.  
  53.  
  54. torch.__version__ = 1.9.0+cu111
  55.  
  56.  
  57. running egg_info
  58. creating /scratch/tmp/pip-pip-egg-info-balgcp4g/apex.egg-info
  59. writing /scratch/tmp/pip-pip-egg-info-balgcp4g/apex.egg-info/PKG-INFO
  60. writing dependency_links to /scratch/tmp/pip-pip-egg-info-balgcp4g/apex.egg-info/dependency_links.txt
  61. writing top-level names to /scratch/tmp/pip-pip-egg-info-balgcp4g/apex.egg-info/top_level.txt
  62. writing manifest file '/scratch/tmp/pip-pip-egg-info-balgcp4g/apex.egg-info/SOURCES.txt'
  63. reading manifest file '/scratch/tmp/pip-pip-egg-info-balgcp4g/apex.egg-info/SOURCES.txt'
  64. writing manifest file '/scratch/tmp/pip-pip-egg-info-balgcp4g/apex.egg-info/SOURCES.txt'
  65. /scratch/tmp/pip-req-build-rqcjg2ac/setup.py:67: UserWarning: Option --pyprof not specified. Not installing PyProf dependencies!
  66. warnings.warn("Option --pyprof not specified. Not installing PyProf dependencies!")
  67. Running command /scratch3/venv/proxy/bin/python3.8 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/scratch/tmp/pip-req-build-rqcjg2ac/setup.py'"'"'; __file__='"'"'/scratch/tmp/pip-req-build-rqcjg2ac/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' --cuda_ext install --record /scratch/tmp/pip-record-jpa0j20t/install-record.txt --single-version-externally-managed --compile --install-headers /scratch3/venv/proxy/include/site/python3.8/apex
  68.  
  69.  
  70. torch.__version__ = 1.9.0+cu111
  71.  
  72.  
  73. /scratch/tmp/pip-req-build-rqcjg2ac/setup.py:67: UserWarning: Option --pyprof not specified. Not installing PyProf dependencies!
  74. warnings.warn("Option --pyprof not specified. Not installing PyProf dependencies!")
  75.  
  76. Compiling cuda extensions with
  77. nvcc: NVIDIA (R) Cuda compiler driver
  78. Copyright (c) 2005-2018 NVIDIA Corporation
  79. Built on Sat_Aug_25_21:08:01_CDT_2018
  80. Cuda compilation tools, release 10.0, V10.0.130
  81. from /usr/local/cuda-10.0/bin
  82.  
  83. Traceback (most recent call last):
  84. File "<string>", line 1, in <module>
  85. File "/scratch/tmp/pip-req-build-rqcjg2ac/setup.py", line 159, in <module>
  86. check_cuda_torch_binary_vs_bare_metal(CUDA_HOME)
  87. File "/scratch/tmp/pip-req-build-rqcjg2ac/setup.py", line 99, in check_cuda_torch_binary_vs_bare_metal
  88. raise RuntimeError("Cuda extensions are being compiled with a version of Cuda that does " +
  89. 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 11.1.
  90. 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).
  91. ERROR: Command errored out with exit status 1: /scratch3/venv/proxy/bin/python3.8 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/scratch/tmp/pip-req-build-rqcjg2ac/setup.py'"'"'; __file__='"'"'/scratch/tmp/pip-req-build-rqcjg2ac/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' --cuda_ext install --record /scratch/tmp/pip-record-jpa0j20t/install-record.txt --single-version-externally-managed --compile --install-headers /scratch3/venv/proxy/include/site/python3.8/apex Check the logs for full command output.
  92. (proxy) [jalal@goku apex]$
  93.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement