If you got the following error in compiling CUDA sample codes on your Mac OSX 10.8
The best solution lies here: devtalk.nvidia.com forum link
- clang: error: unsupported option '-dumpspecs'
- clang: error: no input files
This is what is been suggested and that worked for me:
I had the same problem, thanks to martindeveloper. I found the findcudalib.mk but didn't have llvm-g++ (tried to install it but lost like 2 hours for nothing, because it doesn't come anymore with XCode and
compiling it from llvm.org didn't work). Tried with gcc/g++ but nothing
worked
Finally, I changed GCC ?= g++ to GCC ?= /usr/bin/clang (on findcudalib.mk)
and everything worked fine (even if clang support is beta)
No comments:
Post a Comment