Benchmarking
Add benchmarking to the generated code
Description
App Configuration Pane: GPU Code
Configuration Objects: coder.gpuConfig
The Benchmarking parameter controls addition of benchmarking code to the generated CUDA® code.
After execution, the generated benchmarking code creates the
gpuTimingData
comma separated values (CSV) file in the current
working folder. The CSV file contains timing data for kernel, memory, and other events.
This table describes the format of the CSV file.
Event Type | Format |
---|---|
CUDA kernels |
|
CUDA memory copy |
|
Miscellaneous |
|
Settings
off
(default) | on
- Off
Does not generate CUDA code with benchmarking functionality.
- On
Generates CUDA code with benchmarking functionality. This option uses CUDA APIs such as
cudaEvent
to timekernel
,memcpy
, and other events.
Programmatic Use
Property:
Benchmarking |
Values: true |
false |
Default: false |
Version History
Introduced in R2018a