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

i use cpu only,but cannot compile?how to resolve it? #182

Open
dotsonliu opened this issue Jul 2, 2020 · 1 comment
Open

i use cpu only,but cannot compile?how to resolve it? #182

dotsonliu opened this issue Jul 2, 2020 · 1 comment

Comments

@dotsonliu
Copy link

_build_ext.run(self)

File "/opt/conda/lib/python3.7/distutils/command/build_ext.py", line 340, in run
self.build_extensions()
File "/opt/conda/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 353, in build_extensions
build_ext.build_extensions(self)
File "/opt/conda/lib/python3.7/distutils/command/build_ext.py", line 449, in build_extensions
self._build_extensions_serial()
File "/opt/conda/lib/python3.7/distutils/command/build_ext.py", line 474, in _build_extensions_serial
self.build_extension(ext)
File "/opt/conda/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 205, in build_extension
_build_ext.build_extension(self, ext)
File "/opt/conda/lib/python3.7/distutils/command/build_ext.py", line 534, in build_extension
depends=ext.depends)
File "/opt/conda/lib/python3.7/distutils/ccompiler.py", line 574, in compile
self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
File "/opt/conda/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 269, in unix_wrap_compile
"'-fPIC'"] + cflags + _get_cuda_arch_flags(cflags)
File "/opt/conda/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 977, in _get_cuda_arch_flags
capability = torch.cuda.get_device_capability()
File "/opt/conda/lib/python3.7/site-packages/torch/cuda/init.py", line 328, in get_device_capability
prop = get_device_properties(device)
File "/opt/conda/lib/python3.7/site-packages/torch/cuda/init.py", line 334, in get_device_properties
init() # will define _get_device_properties and _CudaDeviceProperties
File "/opt/conda/lib/python3.7/site-packages/torch/cuda/init.py", line 164, in init
_lazy_init()
File "/opt/conda/lib/python3.7/site-packages/torch/cuda/init.py", line 192, in _lazy_init
_check_driver()
File "/opt/conda/lib/python3.7/site-packages/torch/cuda/init.py", line 102, in _check_driver
http://www.nvidia.com/Download/index.aspx""")
AssertionError:
Found no NVIDIA driver on your system. Please check that you
have an NVIDIA GPU and installed a driver from
http://www.nvidia.com/Download/index.aspx

@kennymckormick
Copy link
Member

Seems the error log is not full. Please paste the complete error log and provide the command you run which lead to the error log.

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

2 participants