chenwuperth / rgz_rcnn

ClaRAN: A deep learning classifier for radio morphologies
MIT License
36 stars 15 forks source link

Need to Downgrade to gcc 7 to build lib with cuda #6

Closed FernOfGitHub closed 5 years ago

FernOfGitHub commented 6 years ago

FYI

when running 'make' in lib, nvcc complained that it could not find a version of gcc 7 or less. I am running version 8.1

I created at the parent of lib & tools /cuda/bin. In bin 'ln -s gcc' In /lib/setup.py I added the argument "--compiler-bindir=../cuda/bin" to extra_compile_args= for nvcc.

This removed the compiler complaint from nvcc.

chenwuperth commented 6 years ago

Thanks. Interesting! Does your symbolic link point to a gcc 7 (or less), or does it still use gcc 8.1. Just wanted to know if the error is because nvcc does not work with gcc 8.1 or is it because it cannot locate any gcc.

FernOfGitHub commented 6 years ago

The symbolic link points to gcc-7. nvcc complains in host_config.h that the gcc compiler must be 7 or less. Part of #if GCNUC ... #error ...

On Mon, Nov 5, 2018 at 12:27 AM Chen Wu notifications@github.com wrote:

Thanks. Interesting! Does your symbolic link point to a gcc 7 (or less), or does it still use gcc 8.1. Just wanted to know if the error is because nvcc does not work with gcc 8.1 or is it because it cannot locate any gcc.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/chenwuperth/rgz_rcnn/issues/6#issuecomment-435759223, or mute the thread https://github.com/notifications/unsubscribe-auth/AGCKZ7Co_fx22kxLMf0AFWYsq-9i2BMFks5ur8xUgaJpZM4YNj1J .

-- "Don't play what's there, play what's not there." - Miles Davis

“Read the directions and directly you will be directed in the right direction.” — Lewis Carroll

"Science is the belief in the ignorance of experts." - Richard Fenyman

chenwuperth commented 5 years ago

I am closing this ticket as the ClaRAN v0.2 is out (perhaps checkout if you have some time), and it does not require extra CUDA code to do NMS or other bounding box calculations.