@@ -22,21 +22,21 @@ def cuda_profiler(output_file, output_mode=None, config=None):
22
22
`output_file` with Key-Value pair format or Comma separated values format.
23
23
The user can set the output mode by `output_mode` argument and set the
24
24
counters/options for profiling by `config` argument. The default config
25
- caontains 'gpustarttimestamp', 'gpustarttimestamp', 'gridsize3d',
26
- 'threadblocksize', 'streamid', 'enableonstart 0', 'conckerneltrace'.
25
+ is [ 'gpustarttimestamp', 'gpustarttimestamp', 'gridsize3d',
26
+ 'threadblocksize', 'streamid', 'enableonstart 0', 'conckerneltrace'] .
27
27
28
28
Args:
29
29
output_file (string) : The output file name, the result will be
30
30
written into this file.
31
31
output_mode (string) : The output mode has Key-Value pair format and
32
- Comma separated values format. It should be 'kv ' or 'csv'.
32
+ Comma separated values format. It should be 'kvp ' or 'csv'.
33
33
config (string) : The profiler options and counters can refer to
34
34
"Compute Command Line Profiler User Guide".
35
35
"""
36
36
if output_mode is None :
37
37
output_mode = 'csv'
38
- if output_mode not in ['kv ' , 'csv' ]:
39
- raise ValueError ("The output mode must be 'key-value ' or 'csv'." )
38
+ if output_mode not in ['kvp ' , 'csv' ]:
39
+ raise ValueError ("The output mode must be 'kvp ' or 'csv'." )
40
40
config = NVPROF_CONFIG if config is None else config
41
41
core .nvprof_init (output_file , output_mode , config )
42
42
# Enables profiler collection by the active CUDA profiling tool.
0 commit comments