-
Notifications
You must be signed in to change notification settings - Fork 216
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 #259
Comments
Do you have set the export CUDA_HOME=/path/to/cuda-11.3 or install ninja as: pip install ninja |
Hello, I meet the same problem, did you solve it? |
2 errors detected in the compilation of "E:/Py_Conda_Project/detrex/detrex/layers/csrc/DCNv3/dcnv3_cuda.cu".
dcnv3_cuda.cu
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "C:\Users\admin01.conda\envs\detrex-main\lib\site-packages\torch\utils\cpp_extension.py", line 1814, in _run_ninja_build
env=env)
File "C:\Users\admin01.conda\envs\detrex-main\lib\subprocess.py", line 512, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
erial
self.build_extension(ext)
File "C:\Users\admin01.conda\envs\detrex-main\lib\site-packages\setuptools\command\build_ext.py", line 246, in build_extension
_build_ext.build_extension(self, ext)
File "C:\Users\admin01.conda\envs\detrex-main\lib\site-packages\setuptools_distutils\command\build_ext.py", line 556, in build_extension
depends=ext.depends,
File "C:\Users\admin01.conda\envs\detrex-main\lib\site-packages\torch\utils\cpp_extension.py", line 747, in win_wrap_ninja_compile
with_cuda=with_cuda)
File "C:\Users\admin01.conda\envs\detrex-main\lib\site-packages\torch\utils\cpp_extension.py", line 1492, in _write_ninja_file_and_compile_ob
jects
error_prefix='Error compiling objects for extension')
File "C:\Users\admin01.conda\envs\detrex-main\lib\site-packages\torch\utils\cpp_extension.py", line 1824, in _run_ninja_build
raise RuntimeError(message) from e
RuntimeError: Error compiling objects for extension
[end of output]
运行
pip install -e .
时候抛出的异常以下是我的配置:
pytorch==1.12.1 torchvision==0.13.1 torchaudio==0.12.1 cudatoolkit=11.6
cuda: 11.6
我找了很多方法但并无用处,还望告知!
The text was updated successfully, but these errors were encountered: