title: Mutex for CUDA host code? boost::mutex no solution due to BOOST_COMPILER redefinition with nvcc
body: <p>Do anyone see a possiblity to synchronize operations in CUDA host code? With CUDA host code I mean the host code that is contained in your .cu-file and preprocessed by nvcc and then passed to cl.exe on windows for example. </p>
  
  <p>Due to the unavoidable preprocessing of the host code by nvcc I cannot use my preferred implementation boost::mutex: If I include boost stuff I get an error of BOOST_COMPILER makro redefinition.</p>