sru
sru copied to clipboard
build error
I use "pip install sru[cuda]" to install the sru, but when I import SRU, This error is occured。 Please help me , thanks.
import sru /opt/conda/lib/python3.7/site-packages/torch/utils/cpp_extension.py:252: UserWarning:
!! WARNING !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Your compiler (c++) is not compatible with the compiler Pytorch was built with for this platform, which is g++ on linux. Please use g++ to to compile your extension. Alternatively, you may compile PyTorch from source using c++, and then you can also use c++ to compile your extension.
See https://github.com/pytorch/pytorch/blob/master/CONTRIBUTING.md for help with compiling PyTorch from source. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! WARNING !!
platform=sys.platform)) Traceback (most recent call last): File "/opt/conda/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1515, in _run_ninja_build env=env) File "/opt/conda/lib/python3.7/subprocess.py", line 487, in run output=stdout, stderr=stderr) subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "
i have same issue, did you have solved it?
Hi Xianyu,
Nope. I did not.
Regards Venkatesh
On Sat, Nov 6, 2021 at 7:16 AM xianyu-123 @.***> wrote:
i have same issue, did you have solved it?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/asappresearch/sru/issues/154#issuecomment-962458204, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM45YZVOTCTCZBMHKNEHK73UKU2FJANCNFSM4V2FYEUQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.