11.07.2015 Views

CUPTI User's Guide

CUPTI User's Guide

CUPTI User's Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

specific domains and callback IDs.Note:Only a single subscriber can be registered at a time.This function does not enable any callbacks.Thread-safety: this function is thread safe.Parameters:subscriber Returns handle to initialize subscribercallback The callback functionuserdata A pointer to user data. This data will be passed to the callback function viathe userdata paramater.Return values:<strong>CUPTI</strong>_SUCCESS on success<strong>CUPTI</strong>_ERROR_NOT_INITIALIZED if unable to initialize <strong>CUPTI</strong><strong>CUPTI</strong>_ERROR_MAX_LIMIT_REACHED if there is already a <strong>CUPTI</strong> subscriber<strong>CUPTI</strong>_ERROR_INVALID_PARAMETER if subscriber is NULLCUptiResult cuptiSupportedDomains (size_t ∗ domainCount,CUpti_DomainTable ∗ domainTable)Returns in ∗domainTable an array of size ∗domainCount of all the available callbackdomains.Note:Thread-safety: this function is thread safe.Parameters:domainCount Returns number of callback domainsdomainTable Returns pointer to array of available callback domainsReturn values:<strong>CUPTI</strong>_SUCCESS on success<strong>CUPTI</strong>_ERROR_NOT_INITIALIZED if unable to initialize <strong>CUPTI</strong><strong>CUPTI</strong>_ERROR_INVALID_PARAMETER if domainCount or domainTable areNULLCUDA Tools SDK <strong>CUPTI</strong> User’s <strong>Guide</strong> DA-05679-001_v01 | 69

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

Saved successfully!

Ooh no, something went wrong!