1. Installed Xcode6.3 from the apple developer website (https://developer.apple.com/ downloads/).
2. Use xcode-select –switch <path>/Xcode-6.3.app/Contents/ Developer (Answer by mskkdt in https://devtalk.nvidia.com/ default/topic/879431/cuda- programming-and-performance/ nvcc-amp-clang-7-no-typo-here- /)
3. Follow the subsequent procedure.
4. Link cuda SKD root dir in ccmake to /usr/local/cuda/samples as mentioned here https://devtalk.nvidia. com/default/topic/797232/cuda_ sdk_root_dir-notfound/
Other links that turned out to be useful:
1. Install DMG from command line http://commandlinemac. blogspot.in/2008/12/ installing-dmg-application- from-command.html
2. Install pkg from command line http://apple.stackexchange. com/questions/72226/ installing-pkg-with-terminal
3. Cuda7.0:
4. Find OSX version from command line
5. Mac OSX SKDs
6. Print a variable in makefile. Use Anthony Earl Wong’s answer:
7. Xcode can’t be directly downloaded using wget or curl. Use this trick. Use the answer by Ethan:
- open
Google Chrome.app
; - goto site
developer.apple.com
; - press
CMD
+SHIFT
+J
or click top-rightMenu
icon ->Tools
->Developer Tools
; - click
Network
panel; - now click
Xcode
download link at apple.com; - you will see one or more request records in the
Network
panel; - right click the latest record, then click
Copy as cURL
;