11.07.2015 Views

CUPTI User's Guide

CUPTI User's Guide

CUPTI User's Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

◮ enum CUpti_CallbackDomain {<strong>CUPTI</strong>_CB_DOMAIN_INVALID = 0,<strong>CUPTI</strong>_CB_DOMAIN_DRIVER_API = 1,<strong>CUPTI</strong>_CB_DOMAIN_RUNTIME_API = 2,<strong>CUPTI</strong>_CB_DOMAIN_RESOURCE = 3,<strong>CUPTI</strong>_CB_DOMAIN_SYNCHRONIZE = 4 }Callback domains.◮ enum CUpti_CallbackIdResource {<strong>CUPTI</strong>_CBID_RESOURCE_INVALID = 0,<strong>CUPTI</strong>_CBID_RESOURCE_CONTEXT_CREATED = 1,<strong>CUPTI</strong>_CBID_RESOURCE_CONTEXT_DESTROY_STARTING = 2,<strong>CUPTI</strong>_CBID_RESOURCE_STREAM_CREATED = 3,<strong>CUPTI</strong>_CBID_RESOURCE_STREAM_DESTROY_STARTING = 4 }Callback IDs for resource domain.◮ enum CUpti_CallbackIdSync {<strong>CUPTI</strong>_CBID_SYNCHRONIZE_INVALID = 0,<strong>CUPTI</strong>_CBID_SYNCHRONIZE_STREAM_SYNCHRONIZED = 1,<strong>CUPTI</strong>_CBID_SYNCHRONIZE_CONTEXT_SYNCHRONIZED = 2 }Callback IDs for synchronization domain.Functions◮ CUptiResult cuptiEnableAllDomains (uint32_t enable, CUpti_SubscriberHandlesubscriber)Enable or disable all callbacks in all domains.◮ CUptiResult cuptiEnableCallback (uint32_t enable, CUpti_SubscriberHandlesubscriber, CUpti_CallbackDomain domain, CUpti_CallbackId cbid)Enable or disabled callbacks for a specific domain and callback ID.◮ CUptiResult cuptiEnableDomain (uint32_t enable, CUpti_SubscriberHandlesubscriber, CUpti_CallbackDomain domain)CUDA Tools SDK <strong>CUPTI</strong> User’s <strong>Guide</strong> DA-05679-001_v01 | 63

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!