Movatterモバイル変換


[0]ホーム

URL:


NVIDIACUDA Toolkit Documentation
Search In:
< Previous |Next >
CUDA Runtime API (PDF) - v13.0.2 (older) - Last updated October 9, 2025 -Send Feedback

6.35. Profiler Control

This section describes the profiler control functions of the CUDA runtime application programming interface.

Functions

__host__cudaError_t cudaProfilerStart ( void )
Enable profiling.
__host__cudaError_t cudaProfilerStop ( void )
Disable profiling.

Functions

__host__cudaError_t cudaProfilerStart ( void )
Enable profiling.
Description

Enables profile collection by the active profiling tool for the current context. If profiling is already enabled, thencudaProfilerStart() has no effect.

cudaProfilerStart and cudaProfilerStop APIs are used to programmatically control the profiling granularity by allowing profiling to be done only on selective pieces of code.

Note:

Note that this function may also return error codes from previous, asynchronous launches.

See also:

cudaProfilerStop,cuProfilerStart

__host__cudaError_t cudaProfilerStop ( void )
Disable profiling.
Description

Disables profile collection by the active profiling tool for the current context. If profiling is already disabled, thencudaProfilerStop() has no effect.

cudaProfilerStart and cudaProfilerStop APIs are used to programmatically control the profiling granularity by allowing profiling to be done only on selective pieces of code.

Note:

Note that this function may also return error codes from previous, asynchronous launches.

See also:

cudaProfilerStart,cuProfilerStop



[8]ページ先頭

©2009-2025 Movatter.jp