CUPTI User's Guide
CUPTI User's Guide
CUPTI User's Guide
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Return values:<strong>CUPTI</strong>_SUCCESS on success<strong>CUPTI</strong>_ERROR_NOT_INITIALIZED if unable to initialized <strong>CUPTI</strong><strong>CUPTI</strong>_ERROR_INVALID_PARAMETER if subscriber is invalidCUptiResult cuptiEnableCallback (uint32_t enable,CUpti_SubscriberHandle subscriber, CUpti_CallbackDomaindomain, CUpti_CallbackId cbid)Enable or disabled callbacks for a subscriber for a specific domain and callback ID.Note:Thread-safety: a subscriber must serialize access to cuptiGetCallbackState,cuptiEnableCallback, cuptiEnableDomain, and cuptiEnableAllDomains. For example,if cuptiGetCallbackState(sub, d, c) and cuptiEnableCallback(sub, d, c) are calledconcurrently, the results are undefined.Parameters:enable New enable state for the callback. Zero disables the callback, non-zero enablesthe callback.subscriber - Handle to callback subscriptiondomain The domain of the callbackcbid The ID of the callbackReturn values:<strong>CUPTI</strong>_SUCCESS on success<strong>CUPTI</strong>_ERROR_NOT_INITIALIZED if unable to initialized <strong>CUPTI</strong><strong>CUPTI</strong>_ERROR_INVALID_PARAMETER if subscriber, domain or cbid isinvalid.CUptiResult cuptiEnableDomain (uint32_t enable,CUpti_SubscriberHandle subscriber, CUpti_CallbackDomaindomain)Enable or disabled all callbacks for a specific domain.Note:Thread-safety: a subscriber must serialize access to cuptiGetCallbackState,cuptiEnableCallback, cuptiEnableDomain, and cuptiEnableAllDomains. For example,if cuptiGetCallbackEnabled(sub, d, ∗) and cuptiEnableDomain(sub, d) are calledconcurrently, the results are undefined.CUDA Tools SDK <strong>CUPTI</strong> User’s <strong>Guide</strong> DA-05679-001_v01 | 67