Hi.
I wrote a simple contour detection code with two functions.
When I build the kernels and run the program in Emulation Mode, the program runs well and the result is also as I expected.
However, when I try to compile the *.cu files in Release Mode for my device, I meet the following error :
1>Performing Custom Build Step
1>kernel_run.cu
1>tmpxft_000009fc_00000000-3_kernel_run.cudafe1.gpu
1>tmpxft_000009fc_00000000-8_kernel_run.cudafe2.gpu
1>C:\DOCUME~1\WONWOO~1\LOCALS~1\Temp/tmpxft_000009fc_00000000-9_kernel_run.cpp3.i(202): Advisory: Cannot tell what pointer points to, assuming global memory space
1>C:\DOCUME~1\WONWOO~1\LOCALS~1\Temp/tmpxft_000009fc_00000000-9_kernel_run.cpp3.i(259): Advisory: Cannot tell what pointer points to, assuming global memory space
1>C:\DOCUME~1\WONWOO~1\LOCALS~1\Temp/tmpxft_000009fc_00000000-9_kernel_run.cpp3.i(260): Advisory: Cannot tell what pointer points to, assuming global memory space
1>Internal error
1>nvcc error : 'ptxas' died with status 0xC0000005 (ACCESS_VIOLATION)
My environment is as follows : WindowsXP sp3, VC2005 express, CUDA ver 2.0.
I attached my kernel codes here.
I tried to find the reason of this error in my codes,
and I realized that it occurs when I access to some variables declared
in the device functions or when I access some pointers.
But I couldn’t figure out why this error happens.
I also found some similar issues in this forum but there was not a clear answer to this.
Anybody knows the solution of this problem ?
SCRatioCUDA.zip (4.33 KB)