CUresult cuProfilerStart ( void   ) 

This API starts the profiling for a context if it is not started already. Profiling must be initalized using cuProfilerInitialize() before calling this API.

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

Returns:
CUDA_SUCCESS, CUDA_ERROR_INVALID_CONTEXT, CUDA_ERROR_PROFILER_DISABLED, CUDA_ERROR_PROFILER_ALREADY_STARTED, CUDA_ERROR_PROFILER_NOT_INITIALIZED
Note:
Note that this function may also return error codes from previous, asynchronous launches.
See also:
cuProfilerInitialize, cuProfilerStop


Generated by Doxygen for NVIDIA CUDA Library  NVIDIA