MILVLG / bottom-up-attention.pytorch

A PyTorch reimplementation of bottom-up-attention models
Apache License 2.0
294 stars 76 forks source link

nvcc compile issue. Solved by modifying 'setup.py'. #73

Closed Clement25 closed 2 years ago

Clement25 commented 3 years ago

Hi, I was installing using setup.py but encounter the following error

nvcc fatal: redefinition of argument 'compiler-bindir'

So I checked the nvcc compiling command, and found there are two "-ccbin" parameter input. After I delete the code that assigns value to this field:

https://github.com/MILVLG/bottom-up-attention.pytorch/blob/18e9a1056f18d6ce42836f7f0c15cc29b5e83929/setup.py#L44-L45

and reinstall, I finally succeed. Please check if the two lines are necessary. Thanks. My CUDA is in 10.0 version (cudatoolkit=10.1.243).

MIL-VLG commented 2 years ago

Thanks! We have fixed this problem in #84