Does anyone know what _ITERATOR_DEBUG_LEVEL the NVCC sets?
I'm working in a Cmake project in VS2010 and get a linking error when trying to link the project:
2>warper_cuda.lib(cudakernels.cu.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in ColorTable.obj
I can set the _ITERATOR_DEBUG_LEVEL to 0 for the c++ files, but then it doesn't link anymore with some other libraries. So I need a way to make the nvcc compile with level 2.
Using everything in release mode works, so there the level seems to be set correctly. The command line used to compile look like this:
"C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v4.0/bin/nvcc.exe" C:/path/to/cudakernels.cu -c -o "C:/path/to/cudakernels.cu.obj" -ccbin "c:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/bin" -m64 -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -Xcompiler ,\"/DWIN32\",\"/D_WINDOWS\",\"/W3\",\"/Zm1000\",\"/EHsc\",\"/GR\",\"/openmp\" -DNVCC -I -IC:/include/directory ...