title: Installing cuda via brew and dmg
body: <p>After attempting to install nvidia toolkit on MAC by following guide : <a href="http://docs.nvidia.com/cuda/cuda-installation-guide-mac-os-x/index.html#axzz4FPTBCf7X" rel="noreferrer">http://docs.nvidia.com/cuda/cuda-installation-guide-mac-os-x/index.html#axzz4FPTBCf7X</a> I received error "Package manifest parsing error"  which led me to this : <a href="https://stackoverflow.com/questions/36942135/nvidia-cuda-toolkit-7-5-27-failing-to-install-on-os-x">NVidia CUDA toolkit 7.5.27 failing to install on OS X</a> . I unmounted the dmg and upshot was that instead of receiving "Package manifest parsing error" the installer would not launch (it seemed to launch briefly , then quit).</p>
  
  <p>Installing via command <code>brew install Caskroom/cask/cuda</code> (<a href="https://stackoverflow.com/questions/36105066/cuda-7-5-install-on-mac-missing-nvrtc/36180729">CUDA 7.5 install on Mac missing nvrtc</a>) seems to have successfully installed cuda.</p>
  
  <p>command <code>nvcc --version</code>  returns :</p>
  
  <pre><code>nvcc: NVIDIA (R) Cuda compiler driver
  Copyright (c) 2005-2015 NVIDIA Corporation
  Built on Mon_Apr_11_13:23:40_CDT_2016
  Cuda compilation tools, release 7.5, V7.5.26
  </code></pre>
  
  <p>I've built the example in <code>/Developer/NVIDIA/CUDA-7.5/samples/1_Utilities</code> with :</p>
  
  <pre><code>make -C bandwidthTest/
  </code></pre>
  
  <p>This executed without error.</p>
  
  <p>It appears installing with <code>brew install Caskroom/cask/cuda</code> is safe method of installing ? What is difference between this install method and installing via DMG file from nvidia ?</p>
  
  <p>Caskroom appears to be an extension for brew for installing GUI applications : <a href="https://github.com/caskroom/homebrew-cask" rel="noreferrer">https://github.com/caskroom/homebrew-cask</a></p>
  
  <p>Should an IDE also be installed as part of the cuda install ?</p>