title: CUDA Nsight on OS X failing to make
body: <p>I am attempting to <code>make</code> in Nsight IDE but unfortunately without any luck:</p>
  
  <pre><code>Building file: ../src/Cuda_Test.cu
  Invoking: NVCC Compiler
  /Developer/NVIDIA/CUDA-5.5/bin/nvcc -O3 -gencode arch=compute_12,code=sm_12 -odir "src" -M -o "src/Cuda_Test.d" "../src/Cuda_Test.cu"
  clang: error: unsupported option '-dumpspecs'
  clang: error: no input files
  make: *** [src/Cuda_Test.o] Error 1
  </code></pre>
  
  <p>As i can understand on following pages:</p>
  
  <p><a href="http://blog.cryptohaze.com/2012/12/nvcc-os-x-clang-and-dumpspecs.html" rel="nofollow">http://blog.cryptohaze.com/2012/12/nvcc-os-x-clang-and-dumpspecs.html</a>
  <a href="http://lists.freebsd.org/pipermail/freebsd-ports/2011-December/071844.html" rel="nofollow">http://lists.freebsd.org/pipermail/freebsd-ports/2011-December/071844.html</a></p>
  
  <p>It seems that i am using the wrong C and CPP compiler, but how can i change these parameters? The workaround seems to be valid for <code>CMake</code> and not <code>Make</code>.</p>
  
  <pre><code>usr/bin/gcc --version
  Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
  Apple LLVM version 5.0 (clang-500.2.76) (based on LLVM 3.3svn)
  Target: x86_64-apple-darwin12.4.0
  Thread model: posix
  </code></pre>
  
  <p>Environment:</p>
  
  <pre><code>echo $PATH
  /usr/local/homebrew/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Developer/NVIDIA/CUDA-5.5/bin
  
  echo $DYLD_LIBRARY_PATH
  /Developer/NVIDIA/CUDA-5.5/lib:$DYLD_LIBRARY_PATH
  </code></pre>