CCNet-Pure-Pytorch icon indicating copy to clipboard operation
CCNet-Pure-Pytorch copied to clipboard

rcca compile error

Open Alva-2020 opened this issue 4 years ago • 8 comments

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'

Alva-2020 avatar Dec 11 '20 18:12 Alva-2020

are you using torch 1.0+?

Serge-weihao avatar Dec 12 '20 11:12 Serge-weihao

are you using torch 1.0+? Yes.

Alva-2020 avatar Dec 17 '20 15:12 Alva-2020

Could you please give me some suggestions?

Alva-2020 avatar Dec 17 '20 15:12 Alva-2020

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

Serge-weihao avatar Dec 22 '20 09:12 Serge-weihao

python 3.6 with cuda10.0 can work

Serge-weihao avatar Dec 22 '20 09:12 Serge-weihao

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.

https://github.com/speedinghzl/CCNet/issues/98

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

johndpope avatar Feb 05 '21 19:02 johndpope

@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

Serge-weihao avatar Feb 06 '21 13:02 Serge-weihao

I can't use cuda 10 - as I have a later graphics card - 3090 :( will see if I can get around it.

8secz-johndpope avatar Feb 06 '21 20:02 8secz-johndpope