# CUDA Visual Profiler generating csv that itself cannot read

**URL:** <https://forums.developer.nvidia.com/t/cuda-visual-profiler-generating-csv-that-itself-cannot-read/6768>\
**Category:** CUDA Programming and Performance\
**Created:** [December 9, 2008, 9:31pm UTC](https://forums.developer.nvidia.com/t/cuda-visual-profiler-generating-csv-that-itself-cannot-read/6768 "2008-12-09T21:31:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![icegibbon](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@icegibbon](https://forums.developer.nvidia.com/u/icegibbon)\
**Post date:** [December 9, 2008, 9:31pm UTC](https://forums.developer.nvidia.com/t/cuda-visual-profiler-generating-csv-that-itself-cannot-read/6768/1 "2008-12-09T21:31:48Z")

</div>

Copied from [post=“472916”]CUDA Visual Profiler generating csv that itself cannot read[/post]  
CUDA Visual Profile on linux error when reading csv with # lines.

When using the CUDA Visual Profiler 1.0.11 on a program, it will generate temp\_cuda\_profiler\_0.csv while running. The file starts out with these lines:

# CUDA\_PROFILE\_LOG\_VERSION 1.3

# CUDA\_PROFILE\_CSV 1

timestamp,method,gputime,cputime,occupancy  
44867.000,memcopy,1814.816,6556.000

When finished running I get the error:

Error -94 in reading profiler output. Minimum expected columns (method,gputime,cputime,occupancy) not found in profiler output file.

If I make a copy of the temp\_cuda\_profiler\_0.csv file while the profiler runs, and then later try to import it, I get the same error.

If I remove the lines:

# CUDA\_PROFILE\_LOG\_VERSION 1.3

# CUDA\_PROFILE\_CSV 1

it imports it correctly.

- Operating System - Fedora 9 x86\_64
- CUDA toolkit release version: cuda-linux64-rel-nightly-2.1.1635-3065709
- SDK release version - NVIDIA\_CUDA\_SDK\_2.02.0807.1535\_linux
- Compiler for CPU host code - g++ 4.3.0
- System description including:
- CPU type :IntelÂ® Coreâ„¢2 Extreme CPU X9770 @ 3.20GHz
- Installed system RAM: 4G
- System type and model: Alienware ALX
- Video cards installed in the system: 3 GTX280s

---

<div class="post-metadata">

**Author:** ![Sanjiv.Satoor](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/sanjiv.satoor/32/14043_2.png) [@Sanjiv.Satoor](https://forums.developer.nvidia.com/u/Sanjiv.Satoor)\
**Post date:** [December 10, 2008, 2:01am UTC](https://forums.developer.nvidia.com/t/cuda-visual-profiler-generating-csv-that-itself-cannot-read/6768/2 "2008-12-10T02:01:14Z")

</div>

> [@](#):
>
> Copied from [post=“472916”]CUDA Visual Profiler generating csv that itself cannot read[/post]
> 
> CUDA Visual Profile on linux error when reading csv with # lines.
> 
> When using the CUDA Visual Profiler 1.0.11 on a program, it will generate temp\_cuda\_profiler\_0.csv while running. The file starts out with these lines:
> 
> # CUDA\_PROFILE\_LOG\_VERSION 1.3
> 
> # CUDA\_PROFILE\_CSV 1
> 
> timestamp,method,gputime,cputime,occupancy
> 
> 44867.000,memcopy,1814.816,6556.000
> 
> When finished running I get the error:
> 
> Error -94 in reading profiler output. Minimum expected columns (method,gputime,cputime,occupancy) not found in profiler output file.
> 
> If I make a copy of the temp\_cuda\_profiler\_0.csv file while the profiler runs, and then later try to import it, I get the same error.
> 
> If I remove the lines:
> 
> # CUDA\_PROFILE\_LOG\_VERSION 1.3
> 
> # CUDA\_PROFILE\_CSV 1
> 
> it imports it correctly.
> 
> - Operating System - Fedora 9 x86\_64
> 
> - CUDA toolkit release version: cuda-linux64-rel-nightly-2.1.1635-3065709
> 
> - SDK release version - NVIDIA\_CUDA\_SDK\_2.02.0807.1535\_linux
> 
> - Compiler for CPU host code - g++ 4.3.0
> 
> - System description including:
> 
> - CPU type :IntelÂ® Coreâ„¢2 Extreme CPU X9770 @ 3.20GHz
> 
> - Installed system RAM: 4G
> 
> - System type and model: Alienware ALX
> 
> - Video cards installed in the system: 3 GTX280s

I think the problem is that you have moved to a newer version (2.1) of CUDA toolkit and driver - but you are still using the older version (1.0) of CUDA Visual Profiler. You should move to using CUDA Visual Profiler v 1.1. Let me know if this solves the problem.

---

<div class="post-metadata">

**Author:** ![icegibbon](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@icegibbon](https://forums.developer.nvidia.com/u/icegibbon)\
**Post date:** [December 10, 2008, 3:36pm UTC](https://forums.developer.nvidia.com/t/cuda-visual-profiler-generating-csv-that-itself-cannot-read/6768/3 "2008-12-10T15:36:43Z")

</div>

> [@](#):
>
> I think the problem is that you have moved to a newer version (2.1) of CUDA toolkit and driver - but you are still using the older version (1.0) of CUDA Visual Profiler. You should move to using CUDA Visual Profiler v 1.1. Let me know if this solves the problem.

Yes, that was the problem. Thank you.

How do I get the the profile output to flush to the output file? I ask this because when I run one of my programs, I get no data rows, just the headers. However another program I have calls the kernel many more times, and periodically the output is flushed. Am I missing something from the exit of the program? I tried exit(0) and cudaThreadExit().
