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

ValueError: Unknown CUDA arch (8.6) or GPU not supported #129

Open
SuGoe-Young opened this issue Apr 4, 2023 · 0 comments
Open

ValueError: Unknown CUDA arch (8.6) or GPU not supported #129

SuGoe-Young opened this issue Apr 4, 2023 · 0 comments

Comments

@SuGoe-Young
Copy link

When I run the instruction "python3 setup.py build develop", show the error which in block below. How can I solve this error?
running build running build_py running build_ext building 'detectron2._C' extension gcc -pthread -B /root/anaconda3/envs/bcnet_pip/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/tmp/BCNet/detectron2/layers/csrc -I/root/anaconda3/envs/bcnet_pip/lib/python3.7/site-packages/torch/include -I/root/anaconda3/envs/bcnet_pip/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/root/anaconda3/envs/bcnet_pip/lib/python3.7/site-packages/torch/include/TH -I/root/anaconda3/envs/bcnet_pip/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/root/anaconda3/envs/bcnet_pip/include/python3.7m -c /tmp/BCNet/detectron2/layers/csrc/ROIAlign/ROIAlign_cpu.cpp -o build/temp.linux-x86_64-cpython-37/tmp/BCNet/detectron2/layers/csrc/ROIAlign/ROIAlign_cpu.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ In file included from /root/anaconda3/envs/bcnet_pip/lib/python3.7/site-packages/torch/include/ATen/ATen.h:9:0, from /root/anaconda3/envs/bcnet_pip/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3, from /tmp/BCNet/detectron2/layers/csrc/ROIAlign/ROIAlign.h:3, from /tmp/BCNet/detectron2/layers/csrc/ROIAlign/ROIAlign_cpu.cpp:3: /tmp/BCNet/detectron2/layers/csrc/ROIAlign/ROIAlign_cpu.cpp: In lambda function: /root/anaconda3/envs/bcnet_pip/lib/python3.7/site-packages/torch/include/ATen/Dispatch.h:116:56: warning: ‘c10::ScalarType detail::scalar_type(const at::DeprecatedTypeProperties&)’ is deprecated [-Wdeprecated-declarations] at::ScalarType _st = ::detail::scalar_type(the_type); \ ^ /tmp/BCNet/detectron2/layers/csrc/ROIAlign/ROIAlign_cpu.cpp:429:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES_AND_HALF’ AT_DISPATCH_FLOATING_TYPES_AND_HALF(input.type(), "ROIAlign_forward", [&] { ^ /root/anaconda3/envs/bcnet_pip/lib/python3.7/site-packages/torch/include/ATen/Dispatch.h:31:23: note: declared here inline at::ScalarType scalar_type(const at::DeprecatedTypeProperties &t) { ^~~~~~~~~~~ /tmp/BCNet/detectron2/layers/csrc/ROIAlign/ROIAlign_cpu.cpp: In lambda function: /root/anaconda3/envs/bcnet_pip/lib/python3.7/site-packages/torch/include/ATen/Dispatch.h:116:56: warning: ‘c10::ScalarType detail::scalar_type(const at::DeprecatedTypeProperties&)’ is deprecated [-Wdeprecated-declarations] at::ScalarType _st = ::detail::scalar_type(the_type); \ ^ /tmp/BCNet/detectron2/layers/csrc/ROIAlign/ROIAlign_cpu.cpp:481:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES_AND_HALF’ AT_DISPATCH_FLOATING_TYPES_AND_HALF(grad.type(), "ROIAlign_forward", [&] { ^ /root/anaconda3/envs/bcnet_pip/lib/python3.7/site-packages/torch/include/ATen/Dispatch.h:31:23: note: declared here inline at::ScalarType scalar_type(const at::DeprecatedTypeProperties &t) { ^~~~~~~~~~~ Traceback (most recent call last): File "setup.py", line 146, in <module> cmdclass={"build_ext": torch.utils.cpp_extension.BuildExtension}, File "/root/anaconda3/envs/bcnet_pip/lib/python3.7/site-packages/setuptools/__init__.py", line 87, in setup return distutils.core.setup(**attrs) File "/root/anaconda3/envs/bcnet_pip/lib/python3.7/site-packages/setuptools/_distutils/core.py", line 185, in setup return run_commands(dist) File "/root/anaconda3/envs/bcnet_pip/lib/python3.7/site-packages/setuptools/_distutils/core.py", line 201, in run_commands dist.run_commands() File "/root/anaconda3/envs/bcnet_pip/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands self.run_command(cmd) File "/root/anaconda3/envs/bcnet_pip/lib/python3.7/site-packages/setuptools/dist.py", line 1208, in run_command super().run_command(command) File "/root/anaconda3/envs/bcnet_pip/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 988, in run_command cmd_obj.run() File "/root/anaconda3/envs/bcnet_pip/lib/python3.7/site-packages/setuptools/_distutils/command/build.py", line 132, in run self.run_command(cmd_name) File "/root/anaconda3/envs/bcnet_pip/lib/python3.7/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command self.distribution.run_command(command) File "/root/anaconda3/envs/bcnet_pip/lib/python3.7/site-packages/setuptools/dist.py", line 1208, in run_command super().run_command(command) File "/root/anaconda3/envs/bcnet_pip/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 988, in run_command cmd_obj.run() File "/root/anaconda3/envs/bcnet_pip/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 84, in run _build_ext.run(self) File "/root/anaconda3/envs/bcnet_pip/lib/python3.7/site-packages/Cython/Distutils/old_build_ext.py", line 186, in run _build_ext.build_ext.run(self) File "/root/anaconda3/envs/bcnet_pip/lib/python3.7/site-packages/setuptools/_distutils/command/build_ext.py", line 346, in run self.build_extensions() File "/root/anaconda3/envs/bcnet_pip/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 372, in build_extensions build_ext.build_extensions(self) File "/root/anaconda3/envs/bcnet_pip/lib/python3.7/site-packages/Cython/Distutils/old_build_ext.py", line 195, in build_extensions _build_ext.build_ext.build_extensions(self) File "/root/anaconda3/envs/bcnet_pip/lib/python3.7/site-packages/setuptools/_distutils/command/build_ext.py", line 468, in build_extensions self._build_extensions_serial() File "/root/anaconda3/envs/bcnet_pip/lib/python3.7/site-packages/setuptools/_distutils/command/build_ext.py", line 494, in _build_extensions_serial self.build_extension(ext) File "/root/anaconda3/envs/bcnet_pip/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 246, in build_extension _build_ext.build_extension(self, ext) File "/root/anaconda3/envs/bcnet_pip/lib/python3.7/site-packages/setuptools/_distutils/command/build_ext.py", line 556, in build_extension depends=ext.depends, File "/root/anaconda3/envs/bcnet_pip/lib/python3.7/site-packages/setuptools/_distutils/ccompiler.py", line 599, in compile self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) File "/root/anaconda3/envs/bcnet_pip/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 288, in unix_wrap_compile "'-fPIC'"] + cflags + _get_cuda_arch_flags(cflags) File "/root/anaconda3/envs/bcnet_pip/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1027, in _get_cuda_arch_flags raise ValueError("Unknown CUDA arch ({}) or GPU not supported".format(arch)) ValueError: Unknown CUDA arch (8.6) or GPU not supported

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