Hi!
I got a “conflict with clock” warning after switching from building a multi-threaded RT lib (/MD) to a multi threaded DLL (/MD) or multi threaded debug DLL (/MDd).
FYI:
I want to pack some cuda functions into a DLL. After coding all functions and testing as standalone app I tried to but some functions into a dll and load it from a tester app.
One of these functions are the “printDeviceInfo” example:
NVCC call:
$(CUDA_BIN_PATH)\nvcc.exe -ccbin “$(VCInstallDir)bin” -deviceemu -c -D_DEBUG -DWIN32 -DIOCALC_EXPORTS -D_CONSOLE -D_MBCS -Xcompiler /EHsc,/W3,/nologo,/Wp64,/Od,/Zi,/RTC1,/MDd -I"$(CUDA_INC_PATH)" -I./ -o $(ConfigurationName)\printDeviceInfo.obj printDeviceInfo.cu
Warning message:
printDeviceInfo.cu
1>“j:\cuda\include\common_functions.h”, line 55: warning: dllexport/dllimport
1> conflict with “clock” (declared at line 176 of
1> “J:\Programme\Microsoft Visual Studio 8\VC\INCLUDE\time.h”);
1> dllimport/dllexport dropped
1> extern __declspec(host) __declspec(device) clock_t clock(void) ;
Any ideas?
Cheers!