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.

◮ CUptiResult cuptiMetricGetNumEvents (CUpti_MetricID metric, uint32_t∗numEvents)Get number of events required to calculate a metric.◮ CUptiResult cuptiMetricGetValue (CUdevice device, CUpti_MetricID metric, size_teventIdArraySizeBytes, CUpti_EventID ∗eventIdArray, size_teventValueArraySizeBytes, uint64_t ∗eventValueArray, uint64_t timeDuration,CUpti_MetricValue ∗metricValue)Calculate the value for a metric.Typedef Documentationtypedef uint32_t CUpti_MetricIDA metric provides a measure of some aspect of the device.Enumeration Type Documentationenum CUpti_MetricAttributeMetric attributes describe properties of a metric. These attributes can be read usingcuptiMetricGetAttribute.Enumerator:<strong>CUPTI</strong>_METRIC_ATTR_NAMEc-string.<strong>CUPTI</strong>_METRIC_ATTR_SHORT_DESCRIPTIONValue is a null terminated const c-string.<strong>CUPTI</strong>_METRIC_ATTR_LONG_DESCRIPTIONValue is a null terminated const c-string.<strong>CUPTI</strong>_METRIC_ATTR_CATEGORYCUpti_MetricCategory.<strong>CUPTI</strong>_METRIC_ATTR_VALUE_KINDtype CUpti_MetricValueKind.Metric name. Value is a null terminated constShort description of metric.Long description of metric.Category of the metric. Value is of typeValue type of the metric. Value is ofCUDA Tools SDK <strong>CUPTI</strong> User’s <strong>Guide</strong> DA-05679-001_v01 | 101

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

Saved successfully!

Ooh no, something went wrong!