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

rcca compile error #7

Open
Alva-2020 opened this issue Dec 11, 2020 · 8 comments
Open

rcca compile error #7

Alva-2020 opened this issue Dec 11, 2020 · 8 comments

Comments

@Alva-2020
Copy link

File "/home/zhangli/anaconda3/envs/py36/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1538, in _run_ninja_build
raise RuntimeError(message) from e
RuntimeError: Error building extension 'rcca'

@Serge-weihao
Copy link
Owner

are you using torch 1.0+?

@Alva-2020
Copy link
Author

are you using torch 1.0+?
Yes.

@Alva-2020
Copy link
Author

Could you please give me some suggestions?

@Serge-weihao
Copy link
Owner

@Alva-2020 you can try python lower than 3.6 and cuda 10.0

@Serge-weihao
Copy link
Owner

python 3.6 with cuda10.0 can work

@johndpope
Copy link

johndpope commented Feb 5, 2021

fyi

  • I saw the original repo deleted Delete rcca.cpython-36m-x86_64-linux-gnu.so
    4c7923b

https://github.com/speedinghzl/CCNet/tree/pytorch-1.1

UPDATE - actually same error.

speedinghzl/CCNet#98

UPDATE installing apex withou cuda / also didn't help
pip install -v --disable-pip-version-check --no-cache-dir ./

@Serge-weihao
Copy link
Owner

@johndpope .so file is generated by compiling the cpp cuda extension, I tried that more than one year ago using lower version python and pytorch-1.1 cuda10.0. if you only use from .CC import CC_module as CrissCrossAttention, you need not to compile the cuda extension

@8secz-johndpope
Copy link

I can't use cuda 10 - as I have a later graphics card - 3090 :(
will see if I can get around 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

4 participants