-
Notifications
You must be signed in to change notification settings - Fork 400
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
Error compiling objects for extension in CUDA11.1, pytorch1.7 or pytorch-nightly(1.8), RTX3090 #90
Comments
also CUDA11.1, pytorch1.7, RTX3090, except no conda, just python3.6.9: |
I found that the signatures are changed in |
same error, waiting... |
Downgrading pytorch to 1.0 worked for me. |
but rtx3090 can only run work on pytorch1.7
…---Original---
From: "Sina Radmard"<[email protected]>
Date: Wed, Nov 11, 2020 07:43 AM
To: "CharlesShang/DCNv2"<[email protected]>;
Cc: "Comment"<[email protected]>;"cctge123"<[email protected]>;
Subject: Re: [CharlesShang/DCNv2] Error compiling objects for extension in CUDA11.1, pytorch1.7, RTX3090 (#90)
Downgrading pytorch to 1.0 worked for me.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Sorry, I have rtx2070. |
I don't know if it works to compile pytorch1.6 on RTX3090/CUDA11.1 |
I have no idea, that is a little hard for me, beyond my current ability. |
I also tried pytorch 1.6 and used the code from this repository. https://github.com/jinfagang/DCNv2_latest/ |
I am learning and trying to modify, it seems a bit difficult。 |
THCudaBlas_Sgemv, THCudaBlas_Sgemm, these errors is solved. but I have this error.‘THFloatBlas_gemm’ was not declared in this scope; did you mean ‘THFloatBlas_axpy’?ubuntu20.04, RTX3090, CUDA11.1, Pytorch1.8 |
May be you are right. |
This issue is solved by MatthewHowe #92 |
print(torch.version) shows pytorch1.7+cuda110. My cuda is 11.0, RTX3060. I have checked the possible solutions above but still have Error compiling objects for extension. Please help. running build The above exception was the direct cause of the following exception: Traceback (most recent call last): |
My envorment is the same as yours,but i got:g++: error: /home/lq/code/TREG/TREG/ltr/external/DCNv2_latest-master/build/temp.linux-x86_64-3.7/home/lq/code/TREG/TREG/ltr/external/DCNv2_latest-master/src/cuda/dcn_v2_psroi_pooling_cuda.o: 没有那个文件或目录 |
print(torch.version) shows pytorch1.8.0+cuda11.1. My cuda is 11.1, RTX3080ti. I have checked the possible solutions above but still have Error compiling objects for extension. Please help. Thanks in advance! Compiling cuda extensions with running install The above exception was the direct cause of the following exception: Traceback (most recent call last): |
Maybe u can try this : https://github.com/lbin/DCNv2. |
Thanks. I am really appreciate.
…------------------ 原始邮件 ------------------
发件人: ***@***.***>;
发送时间: 2022年3月23日(星期三) 下午5:21
收件人: ***@***.***>;
抄送: ***@***.***>; ***@***.***>;
主题: Re: [CharlesShang/DCNv2] Error compiling objects for extension in CUDA11.1, pytorch1.7 or pytorch-nightly(1.8), RTX3090 (#90)
Maybe u can try this : https://github.com/lbin/DCNv2.
It's work for me.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
Thanks,it works for me too. |
Error compiling objects for extension in CUDA11.1, pytorch1.7, RTX3090
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "D:\anaconda3\envs\pytorch\lib\site-packages\torch\utils\cpp_extension.py", line 1539, in _run_ninja_build
env=env)
File "D:\anaconda3\envs\pytorch\lib\subprocess.py", line 438, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "setup.py", line 70, in
cmdclass={"build_ext": torch.utils.cpp_extension.BuildExtension},
File "D:\anaconda3\envs\pytorch\lib\site-packages\setuptools_init_.py", line 153, in setup
return distutils.core.setup(**attrs)
File "D:\anaconda3\envs\pytorch\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "D:\anaconda3\envs\pytorch\lib\distutils\dist.py", line 955, in run_commands
self.run_command(cmd)
File "D:\anaconda3\envs\pytorch\lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "D:\anaconda3\envs\pytorch\lib\site-packages\setuptools\command\install.py", line 67, in run
self.do_egg_install()
File "D:\anaconda3\envs\pytorch\lib\site-packages\setuptools\command\install.py", line 109, in do_egg_install
self.run_command('bdist_egg')
File "D:\anaconda3\envs\pytorch\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "D:\anaconda3\envs\pytorch\lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "D:\anaconda3\envs\pytorch\lib\site-packages\setuptools\command\bdist_egg.py", line 167, in run
cmd = self.call_command('install_lib', warn_dir=0)
File "D:\anaconda3\envs\pytorch\lib\site-packages\setuptools\command\bdist_egg.py", line 153, in call_command
self.run_command(cmdname)
File "D:\anaconda3\envs\pytorch\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "D:\anaconda3\envs\pytorch\lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "D:\anaconda3\envs\pytorch\lib\site-packages\setuptools\command\install_lib.py", line 11, in run
self.build()
File "D:\anaconda3\envs\pytorch\lib\distutils\command\install_lib.py", line 107, in build
self.run_command('build_ext')
File "D:\anaconda3\envs\pytorch\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "D:\anaconda3\envs\pytorch\lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "D:\anaconda3\envs\pytorch\lib\site-packages\setuptools\command\build_ext.py", line 79, in run
_build_ext.run(self)
File "D:\anaconda3\envs\pytorch\lib\site-packages\Cython\Distutils\old_build_ext.py", line 186, in run
_build_ext.build_ext.run(self)
File "D:\anaconda3\envs\pytorch\lib\distutils\command\build_ext.py", line 339, in run
self.build_extensions()
File "D:\anaconda3\envs\pytorch\lib\site-packages\torch\utils\cpp_extension.py", line 674, in build_extensions
build_ext.build_extensions(self)
File "D:\anaconda3\envs\pytorch\lib\site-packages\Cython\Distutils\old_build_ext.py", line 195, in build_extensions
_build_ext.build_ext.build_extensions(self)
File "D:\anaconda3\envs\pytorch\lib\distutils\command\build_ext.py", line 448, in build_extensions
self._build_extensions_serial()
File "D:\anaconda3\envs\pytorch\lib\distutils\command\build_ext.py", line 473, in _build_extensions_serial
self.build_extension(ext)
File "D:\anaconda3\envs\pytorch\lib\site-packages\setuptools\command\build_ext.py", line 196, in build_extension
_build_ext.build_extension(self, ext)
File "D:\anaconda3\envs\pytorch\lib\distutils\command\build_ext.py", line 533, in build_extension
depends=ext.depends)
File "D:\anaconda3\envs\pytorch\lib\site-packages\torch\utils\cpp_extension.py", line 656, in win_wrap_ninja_compile
with_cuda=with_cuda)
File "D:\anaconda3\envs\pytorch\lib\site-packages\torch\utils\cpp_extension.py", line 1257, in _write_ninja_file_and_compile_objects
error_prefix='Error compiling objects for extension')
File "D:\anaconda3\envs\pytorch\lib\site-packages\torch\utils\cpp_extension.py", line 1555, in _run_ninja_build
raise RuntimeError(message) from e
RuntimeError: Error compiling objects for extension
The text was updated successfully, but these errors were encountered: