Hi,
I’m using VC++2005 and Cuda 2.1 on WinXP Prof. SP3.
I’ve got a problem compiling a .cu file: When compiling for Debug or Release (=no Emulation), the compilation takes about 5 minutes to complete for one particular file. Also odd is that the compiler warning messages appear twice. Other .cu files are compiled in normal time.
This is the output when compiling:
1>Compiling with CUDA Build Rule…
1>“C:\CUDA\bin\nvcc.exe” -arch sm_10 -ccbin “C:\Program Files\Microsoft Visual Studio 8\VC\bin” -Xcompiler "/EHsc /W3 /nologo /Od /Zi /MTd " -maxrregcount=32 --compile -o Debug\tier1.cu.obj tier1.cu
1>tier1.cu
1>c:\documents and settings\heidemn\desktop\xp-dev\gpu\bpc_kernel.cu(347): warning: variable “offset_ul” was declared but never referenced
1>c:\documents and settings\heidemn\desktop\xp-dev\gpu\bpc_kernel.cu(349): warning: variable “offset_dl” was declared but never referenced
1>c:\documents and settings\heidemn\desktop\xp-dev\gpu\bpc_kernel.cu(350): warning: variable “offset_dr” was declared but never referenced
1>c:\documents and settings\heidemn\desktop\xp-dev\gpu\bpc_kernel.cu(654): warning: variable “id” was declared but never referenced
1>tmpxft_00000ae4_00000000-3_tier1.cudafe1.gpu
1>tmpxft_00000ae4_00000000-8_tier1.cudafe2.gpu
1>./c:\cuda\include\device_functions.h(1328): Advisory: Cannot tell what pointer points to, assuming global memory space
########## here the compiler stucks for 5 min. ###############
1>c:\documents and settings\heidemn\desktop\xp-dev\gpu\bpc_kernel.cu(347): warning: variable “offset_ul” was declared but never referenced
1>c:\documents and settings\heidemn\desktop\xp-dev\gpu\bpc_kernel.cu(349): warning: variable “offset_dl” was declared but never referenced
1>c:\documents and settings\heidemn\desktop\xp-dev\gpu\bpc_kernel.cu(350): warning: variable “offset_dr” was declared but never referenced
1>c:\documents and settings\heidemn\desktop\xp-dev\gpu\bpc_kernel.cu(654): warning: variable “id” was declared but never referenced
1>tmpxft_00000ae4_00000000-3_tier1.cudafe1.cpp
1>tmpxft_00000ae4_00000000-13_tier1.ii
When I look into task manager at the point where nothing happens, ptxas.exe uses 25% CPU and over 400MB ram (quad core, so it is full cpu usage) and nvcc.exe uses 0% CPU.
Can anyone please help me? It’s really annoying, I can’t work like that.
Note: The file compiles well on another PC with the same Cuda version (but Windows vista).
Thanks, Martin