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

RuntimeError: Error compiling objects for extension #195

Open
erinchen824 opened this issue Jul 16, 2020 · 1 comment
Open

RuntimeError: Error compiling objects for extension #195

erinchen824 opened this issue Jul 16, 2020 · 1 comment

Comments

@erinchen824
Copy link

erinchen824 commented Jul 16, 2020

could you please help me with this problem?
I was using CUDA=10.2, pytorch and torchvision accordingly
I got this error when I install the mmaction while running ./compile.sh
BTW, it seems CUDA is not properly detected since 'No CUDA runtime is found, using CUDA_HOME='/usr/local/cuda''
THX

Traceback (most recent call last): File "setup.py", line 84, in <module> cmdclass={'build_ext': BuildExtension}) File "/home/user/anaconda3/envs/mmaction-new/lib/python3.7/site-packages/setuptools/__init__.py", line 165, in setup return distutils.core.setup(**attrs) File "/home/user/anaconda3/envs/mmaction-new/lib/python3.7/distutils/core.py", line 148, in setup dist.run_commands() File "/home/user/anaconda3/envs/mmaction-new/lib/python3.7/distutils/dist.py", line 966, in run_commands self.run_command(cmd) File "/home/user/anaconda3/envs/mmaction-new/lib/python3.7/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/home/user/anaconda3/envs/mmaction-new/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 87, in run _build_ext.run(self) File "/home/user/anaconda3/envs/mmaction-new/lib/python3.7/distutils/command/build_ext.py", line 340, in run self.build_extensions() File "/home/user/anaconda3/envs/mmaction-new/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 603, in build_extensions build_ext.build_extensions(self) File "/home/user/anaconda3/envs/mmaction-new/lib/python3.7/distutils/command/build_ext.py", line 449, in build_extensions self._build_extensions_serial() File "/home/user/anaconda3/envs/mmaction-new/lib/python3.7/distutils/command/build_ext.py", line 474, in _build_extensions_serial self.build_extension(ext) File "/home/user/anaconda3/envs/mmaction-new/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 208, in build_extension _build_ext.build_extension(self, ext) File "/home/user/anaconda3/envs/mmaction-new/lib/python3.7/distutils/command/build_ext.py", line 534, in build_extension depends=ext.depends) File "/home/user/anaconda3/envs/mmaction-new/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 437, in unix_wrap_ninja_compile with_cuda=with_cuda) File "/home/user/anaconda3/envs/mmaction-new/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1163, in _write_ninja_file_and_compile_objects error_prefix='Error compiling objects for extension') File "/home/user/anaconda3/envs/mmaction-new/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1436, in _run_ninja_build raise RuntimeError(message) RuntimeError: Error compiling objects for extension

@1299372364
Copy link

Hello, I have the same question. Could you tell me if you have sovled it?

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