Why the profiler can't save the data to the CSV file.

I have set the
CUDA_PROFILE=1
CUDA_PROFILE_CSV=1
CUDA_PROFILE_LOG and CUDA_PROFILE_CONFIG
in both User variables abd System variables, but the generated CSV files (temp_cuda_profiler_1_0.csv,temp_cuda_profiler_2_0.csv etc.)are always 0 bytes, causing a fail to read error. Does anyone know how to fix this.

BTW, I am using XP and my CUDA visual profiler version is 2.3. Thanks in advance.

Try adding a cudaThreadExit() call at the end of your code. That seems to ensure that the profile data gets flushed to disk.

Hi avidday,

Thanks a lot, it really solves my problem :rolleyes: