Sunday, September 29, 2013

CUDA Clang Error on Mac OSX 10.8

If you got the following error in compiling CUDA sample codes on your Mac OSX 10.8

  1. clang: error: unsupported option '-dumpspecs'
  2. clang: error: no input files
The best solution lies here: devtalk.nvidia.com forum link 
 
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:

About Me

My photo
Jaison Paul Mulerikkal is the Vice Principal of Rajagiri School of Engineering and Technology (RSET), Kochi. He was the Principal of Jyothi Engineering College (JEC), Cheruthuruthy, Trissur, India. He is a member of CMI Sacred Heart Province, Kochi. He is a civil engineer by profession, but did his Masters in Information Systems from RMIT University, Melbourne, Australia and subsequently received his PhD in High Performance Scientific Computing from the Australian National University. He had worked as a computational scientist at the University of Auckland, New Zealand.