title: Error "CUDA_SAFE_CALL" is undefined
body: <p>I'm using source code from <a href="https://code.google.com/p/cubgs/downloads/detail?name=cubgs-src.zip&amp;can=2&amp;q=" rel="nofollow">here</a>. It's about Extended GMM for Background Subtraction on GPU using CUDA and OpenCV. I'm totally new to CUDA and I got an error in MVS 10</p>
  
  <pre><code>1&gt;d:/MVS10 Projects/CudaTest/CudaTest/CvFastBgGMM_ver5.cu(227): error : identifier "CUDA_SAFE_CALL" is undefined
  </code></pre>
  
  <p>1><br>
  <code>1&gt;  5 errors detected in the compilation of</code> </p>
  
  <pre><code>"C:/Users/DELL/AppData/Local/Temp/tmpxft_00000e34_00000000-5_CvFastBgGMM_ver5.cpp1.ii".
  1&gt;C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\BuildCustomizations\CUDA 5.0.targets(592,9): error MSB3721: The command ""C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.0\bin\nvcc.exe" -gencode=arch=compute_10,code=\"sm_10,compute_10\" --use-local-env --cl-version 2010 -ccbin "D:\IDE\Microsoft Visual Studio 10.0\VC\bin\x86_amd64"  -I"D:\SDK\OpenCV\opencv\build\include" -I"D:\SDK\OpenCV\opencv\build\include\opencv" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.0\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.0\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.0\include"  -G   --keep-dir "x64\Debug" -maxrregcount=0  --machine 64 --compile  -g   -DWIN32 -D_DEBUG -D_CONSOLE -D_UNICODE -DUNICODE -Xcompiler "/EHsc /W3 /nologo /Od /Zi /RTC1 /MDd  " -o "x64\Debug\CvFastBgGMM_ver5.cu.obj" "d:\MVS10 Projects\CudaTest\CudaTest\CvFastBgGMM_ver5.cu"" exited with code 2.
  </code></pre>
  
  <p>I installed CUDA version 5.0. What am i missing?
  Please help me. Thanks you!</p>