Documentation
¶
Overview ¶
Package cupti provides low-level Go bindings for CUPTI, the CUDA Profiling Tools Interface.
CUPTI is the library NVIDIA profilers are built on. It offers several largely independent APIs:
- Activity: asynchronous records of GPU and CPU activity, delivered into buffers the caller supplies (ActivityEnable, ActivityRegisterCallbacks, ActivityFlushAll).
- Callback: synchronous callbacks at driver, runtime, resource and synchronization events (Subscribe, Subscriber.EnableDomain).
- Event and Metric: the legacy hardware counter APIs, unsupported since CUDA 13.0 (NewEventGroup, MetricGetValue).
- Profiler: counter collection in replay passes, deprecated since CUDA 13.0 (ProfilerInitialize, ProfilerBeginPass).
- Range Profiler: the current counter collection path, which replaces the three above.
- PC Sampling, PM Sampling and SASS Metrics: instruction-level and time-series sampling.
CUPTI runs in the process being profiled and requires elevated GPU performance counter permissions for most counter APIs.
This package provides bindings generated from the cupti.h header family using github.com/ebitengine/purego for cgo-free dynamic loading of libcupti. Functions returning a C status report errors wrapping CUptiResult with descriptive messages from cuptiGetResultString.
V1 and V2 APIs ¶
CUPTI is replacing its V1 activity and callback functions, such as ActivityEnable and Subscribe, with V2 functions and activity attributes. Each V1 function's deprecation notice names its replacement, and the V1 to V2 API Migration section of the CUPTI documentation describes the changes.
Library search ¶
Load opens the path it is given. With an empty path it opens the path in CUPTI_LIB_PATH, if that is set. A path named either way is the only one tried: if it does not load, Load returns the error.
Otherwise Load, or the first call that needs the library, tries in order:
- the copy in the toolkit that CUDA_HOME names, then the one that CUDA_PATH names
- the system library names, which the dynamic loader resolves
- the copy in each installed /usr/local/cuda-N.M toolkit, newest first, then /usr/local/cuda
- the system library names in the directories pkg-config reports for cupti
Activity API ¶
- ActivityConfigurePCSampling: Set PC sampling configuration.
- ActivityConfigureUnifiedMemoryCounter: Set Unified Memory Counter configuration.
- ActivityDisable: Disable collection of a specific kind of activity record.
- ActivityDisableContext: Disable collection of a specific kind of activity record for a context.
- ActivityDisableV1: Disable collection of a specific kind of activity record.
- Subscriber.ActivityDisableV2: Disable collection of a specific kind of activity record for the subscriber.
- ActivityEnable: Enable collection of a specific kind of activity record.
- ActivityEnableAllSyncRecords: Enables collecting records for all synchronization operations.
- ActivityEnableAllocationSource: Enables tracking the source library for memory allocation requests.
- ActivityEnableAndDump: Enable collection of a specific kind of activity record.
- ActivityEnableAndDumpV1: Enable collection of a specific kind of activity record.
- Subscriber.ActivityEnableAndDumpV2: Enable collection of a specific kind of activity record.
- ActivityEnableContext: Enable collection of a specific kind of activity record for a context.
- ActivityEnableCudaEventDeviceTimestamps: Enable/Disable collecting device timestamp for ActivityKindCudaEvent record.
- ActivityEnableDeviceGraph: Controls the collection of records for device launched graphs.
- ActivityEnableDriverApi: Controls the collection of activity records for specific CUDA Driver APIs.
- ActivityEnableDriverApiV1: Controls the collection of activity records for specific CUDA Driver APIs.
- Subscriber.ActivityEnableDriverApiV2: Controls the collection of activity records for specific CUDA Driver APIs for a given subscriber.
- ActivityEnableHWTrace: Enables CUDA kernel timestamp collection via Hardware Event System (HES).
- ActivityEnableLatencyTimestamps: Controls the collection of queued and submitted timestamps for kernels.
- ActivityEnableLaunchAttributes: Controls the collection of launch attributes for kernels.
- ActivityEnableRuntimeApi: Controls the collection of activity records for specific CUDA Runtime APIs.
- ActivityEnableRuntimeApiV1: Controls the collection of activity records for specific CUDA Runtime APIs.
- Subscriber.ActivityEnableRuntimeApiV2: Controls the collection of activity records for specific CUDA Runtime APIs for a given subscriber.
- ActivityEnableV1: Enable collection of a specific kind of activity record.
- Subscriber.ActivityEnableV2: Enable collection of a specific kind of activity record for the subscriber.
- ActivityFlush: Wait for all activity records to be delivered via the completion callback.
- ActivityFlushAll: Request to deliver activity records via the buffer completion callback.
- ActivityFlushPeriod: Sets the flush period for the worker thread.
- ActivityGetAttribute: Read an activity API attribute.
- ActivityGetAttributeV1: Read an activity API attribute.
- Subscriber.ActivityGetAttributeV2: Read an activity API attribute.
- Subscriber.ActivityGetEnabledKinds: Get the enabled activity kinds for a subscriber.
- ActivityGetNextRecord: Iterate over the activity records in a buffer.
- ActivityGetNextRecordV1: Iterate over the activity records in a buffer.
- Subscriber.ActivityGetNextRecordV2: Iterate over the activity records in the supplied buffer.
- ActivityGetNumDroppedRecords: Get the number of activity records that were dropped of insufficient buffer space.
- ActivityGetNumDroppedRecordsV1: Get the number of activity records that were dropped of insufficient buffer space.
- Subscriber.ActivityGetNumDroppedRecordsV2: Get the number of dropped activity records for a specific subscriber.
- ActivityGetStructSize: Get the size of the activity struct for a given CUPTI version.
- ActivityPopExternalCorrelationId: Pop an external correlation id for the calling thread.
- ActivityPopExternalCorrelationIdV1: Pop an external correlation id for the calling thread.
- Subscriber.ActivityPopExternalCorrelationIdV2: Pop an external correlation id for a specific subscriber.
- ActivityPushExternalCorrelationId: Push an external correlation id for the calling thread.
- ActivityPushExternalCorrelationIdV1: Push an external correlation id for the calling thread.
- Subscriber.ActivityPushExternalCorrelationIdV2: Push an external correlation id for a specific subscriber.
- ActivityRegisterCallbacks: Registers callback functions with CUPTI for activity buffer handling.
- ActivityRegisterCallbacksV1: Registers callback functions with CUPTI for activity buffer handling.
- Subscriber.ActivityRegisterCallbacksV2: Registers callback functions with CUPTI for activity buffer handling for the subscriber.
- ActivityRegisterTimestampCallback: Registers callback function with CUPTI for providing timestamp.
- ActivitySetAttribute: Write an activity API attribute.
- ActivitySetAttributeV1: Write an activity API attribute.
- Subscriber.ActivitySetAttributeV2: Write an activity API attribute.
Checkpoint API ¶
- CheckpointFree: Free the backing data for a checkpoint.
- CheckpointRestore: Restore a checkpoint to the device associated with its context.
- CheckpointSave: Initialize and save a checkpoint of the device state associated with the handle context.
CUPTI Clock Control API ¶
- ClockControlGetStatus: Query the device-global GPU clock-control status.
- ClockControlLock: Lock GPU clocks to the requested frequency.
- ClockControlUnlock: Unlock GPU clocks previously locked via ClockControlLock.
CUPTI Activity API ¶
- ComputeCapabilitySupported: Check support for a compute capability.
- GetAutoBoostState: Get auto boost state.
- GetCudaEventId: Get the unique ID of a CUDA event.
- GetLastError: Returns the last error from a cupti call or callback.
- GetThreadIdType: Get the thread-id type.
- IsTracingSessionRunning: Check whether a CUPTI tracing session is still running.
- SetThreadIdType: Set the thread-id type.
Device Queries ¶
- DeviceEnumEventDomains: Get the event domains for a device.
- DeviceEnumMetrics: Get the metrics for a device.
- DeviceGetAttribute: Read a device attribute.
- DeviceGetEventDomainAttribute: Read an event domain attribute.
- DeviceGetNumEventDomains: Get the number of domains for a device.
- DeviceGetNumMetrics: Get the number of metrics for a device.
- DeviceSupported: Check support for a compute device.
- DeviceVirtualizationMode: Query the virtualization mode of the device.
CUPTI Event API ¶
- DisableKernelReplayMode: Disable kernel replay mode.
- EnumEventDomains: Get the event domains available on any device.
- GetNumEventDomains: Get the number of event domains available on any device.
- SetEventCollectionMode: Set the event collection mode.
Callback API ¶
- Subscriber.EnableAllDomains: Enable or disable all callbacks in all domains.
- Subscriber.EnableCallback: Enable or disabled callbacks for a specific domain and callback ID.
- Subscriber.EnableDomain: Enable or disabled all callbacks for a specific domain.
- EnableKernelReplayMode: Enable kernel replay mode.
- GetCallbackName: Get the name of a callback for a specific domain and callback ID.
- Subscriber.CallbackState: Get the current enabled/disabled state of a callback for a specific domain and function ID.
- Subscriber.EnabledCallbacks: Get the enabled callbacks for a subscriber.
- Subscribe: Initialize a callback subscriber with a callback function and user data.
- SubscribeV1: Initialize a callback subscriber with a callback function and user data.
- SubscribeV2: Initialize a callback subscriber with a callback function and user data.
- SupportedDomains: Get the available callback domains.
- Subscriber.Unsubscribe: Unregister a callback subscriber.
CUPTI Metric API ¶
- EnumMetrics: Get all the metrics available on any device.
- GetNumMetrics: Get the total number of metrics available on any device.
Event API ¶
- EventDomainEnumEvents: Get the events in a domain.
- EventDomainGetAttribute: Read an event domain attribute.
- EventDomainGetNumEvents: Get number of events in a domain.
- EventGetAttribute: Get an event attribute.
- EventGetIdFromName: Find an event by name.
- EventGroup.AddEvent: Add an event to an event group.
- NewEventGroup: Create a new event group for a context.
- EventGroup.Close: Destroy an event group.
- EventGroup.Disable: Disable an event group.
- EventGroup.Enable: Enable an event group.
- EventGroup.Attribute: Read an event group attribute.
- EventGroup.ReadAllEvents: Read the values for all the events in an event group.
- EventGroup.ReadEvent: Read the value for an event in an event group.
- EventGroup.RemoveAllEvents: Remove all events from an event group.
- EventGroup.RemoveEvent: Remove an event from an event group.
- EventGroup.ResetAllEvents: Zero all the event counts in an event group.
- EventGroup.SetAttribute: Write an event group attribute.
- EventGroupSetDisable: Disable an event group set.
- EventGroupSetEnable: Enable an event group set.
- EventGroupSetsCreate: For a set of events, get the grouping that indicates the number of passes and the event groups necessary to collect the events.
- EventGroupSetsDestroy: Destroy a event group sets object.
Lifecycle ¶
- Finalize: Detach CUPTI from the running process.
Identifiers ¶
- GetContextId: Get the ID of a context.
- GetDeviceId: Get the ID of a device.
- GetGraphExecId: Get the unique ID of executable graph.
- GetGraphId: Get the unique ID of graph.
- GetGraphNodeId: Get the unique ID of a graph node.
- GetStreamId: Get the ID of a stream.
- GetStreamIdEx: Get the ID of a stream.
CUPTI PC Sampling API ¶
- GetCubinCrc: Get the CRC of cubin.
- GetSassToSourceCorrelation: SASS to Source correlation.
- RegisterComputeCrcCallback: Register callback function with CUPTI to use your own algorithm to compute cubin crc.
Timestamps ¶
- GetTimestamp: Get the CUPTI timestamp.
- GetTimestampV1: Get the CUPTI timestamp.
- Subscriber.TimestampV2: Get the CUPTI timestamp.
Version Queries ¶
- GetVersion: Get the CUPTI API version.
Kernel Replay ¶
- KernelReplaySubscribeUpdate: Subscribe to kernel replay updates.
Metric API ¶
- MetricCreateEventGroupSets: For a set of metrics, get the grouping that indicates the number of passes and the event groups necessary to collect the events required for those metrics.
- MetricEnumEvents: Get the events required to calculating a metric.
- MetricEnumProperties: Get the properties required to calculating a metric.
- MetricGetAttribute: Get a metric attribute.
- MetricGetIdFromName: Find an metric by name.
- MetricGetNumEvents: Get number of events required to calculate a metric.
- MetricGetNumProperties: Get number of properties required to calculate a metric.
- MetricGetRequiredEventGroupSets: For a metric get the groups of events that must be collected in the same pass.
- MetricGetValue: Calculate the value for a metric.
- MetricGetValue2: Calculate the value for a metric.
PC Sampling API ¶
- PCSamplingDisable: Disable PC sampling.
- PCSamplingEnable: Enable PC sampling.
- PCSamplingGetConfigurationAttribute: Read PC Sampling configuration attribute.
- PCSamplingGetData: Flush GPU PC sampling data periodically.
- PCSamplingGetNumStallReasons: Get PC sampling stall reason count.
- PCSamplingGetStallReasons: Get PC sampling stall reasons.
- PCSamplingSetConfigurationAttribute: Write PC Sampling configuration attribute.
- PCSamplingStart: Start PC sampling.
- PCSamplingStop: Stop PC sampling.
PM Sampling API ¶
- PmSamplingCounterDataGetSampleInfo: Get the sample info (start and end time stamp) for the given sample index.
- PmSamplingCounterDataImageInitialize: Initialize the counter data to CUPTI record format for storing the metric data.
- PmSamplingDecodeData: Decode the metrics data stored in the hardware buffer to the counter data image.
- PmSamplingDisable: Disable PM sampling on the CUDA device and destroy the PM sampling object.
- PmSamplingEnable: Create a PM sampling object and enable PM sampling on the CUDA device.
- PmSamplingGetCounterAvailability: Query counter availibility information in a buffer which can be used to filter unavailable raw metrics on host.
- PmSamplingGetCounterDataInfo: Get the counter data info like number of samples, number of populated samples and number of completed samples in a counter data image.
- PmSamplingGetCounterDataSize: Query the size of the counter data image which will be used to store the metrics data.
- PmSamplingSetConfig: Set the configuration for PM sampling like sampling interval, HW buffer size, trigger mode and the config image which has scheduling info for metric collection.
- PmSamplingStart: Start the PM sampling.
- PmSamplingStop: Stop the PM sampling.
Profiling API ¶
- ProfilerBeginPass: Replay API: used for multipass collection.
- ProfilerBeginSession: Begin profiling session sets up the profiling on the device.
- ProfilerCounterDataImageCalculateScratchBufferSize: A temporary storage for CounterData image needed for internal operations.
- ProfilerCounterDataImageCalculateSize: A CounterData image allocates space for values for each counter for each range.
- ProfilerDeInitialize: DeInitializes the profiler interface.
- ProfilerDeviceSupported: Query device compatibility with Profiling API.
- ProfilerDisableProfiling: Disable Profiling.
- ProfilerEnableProfiling: Enables Profiling.
- ProfilerEndPass: Replay API: used for multipass collection.
- ProfilerEndSession: Ends profiling session.
- ProfilerFlushCounterData: Decode all the submitted passes.
- ProfilerGetCounterAvailability: Query counter availibility.
- ProfilerHostConfigAddMetrics: Add the metrics to the profiler host object for generating the config image.
- ProfilerHostDeinitialize: Deinitialize and destroy the profiler host object (ProfilerHost).
- ProfilerHostEvaluateToGpuValues: Evaluate the metric values for the range index stored in the counter data.
- ProfilerHostGetBaseMetrics: Get the list of supported base metrics for the chip.
- ProfilerHostGetConfigImage: Get the config image for the metrics added to the profiler host object.
- ProfilerHostGetConfigImageSize: Get the size of the config image for the metrics added to the profiler host object.
- ProfilerHostGetMaxNumHardwareMetricsPerPass: Get the maximum number of hardware metrics (metric names which doesn’t include sass keyword) that can be scheduled in a single pass for a chip.
- ProfilerHostGetMetricProperties: Get the properties of the metric.
- ProfilerHostGetMetricsInSinglePassSet: Get all the metrics defined in the single pass metric set.
- ProfilerHostGetNumOfPasses: Get the number of passes required for profiling the scheduled metrics in the config image.
- ProfilerHostGetRangeName: Get the range name for the range index stored in the counter data.
- ProfilerHostGetSinglePassSets: Get the single pass metric sets defined in the metric config file.
- ProfilerHostGetSubMetrics: Get the list of supported sub-metrics for the metric.
- ProfilerHostGetSupportedChips: Get the list of supported chips.
- ProfilerHostInitialize: Create and initialize the profiler host object (ProfilerHost).
- ProfilerHostSetDevicePartitionInfo: Set the device partition information for metric evaluation on Green Contexts.
- ProfilerInitialize: Initializes the profiler interface.
- ProfilerIsPassCollected: Asynchronous call to query if the submitted pass to GPU is collected.
- ProfilerPopRange: Range API’s : Pop user range.
- ProfilerPushRange: Range API’s : Push user range.
- ProfilerSetConfig: Set metrics configuration to be profiled.
- ProfilerUnsetConfig: Unset metrics configuration profiled.
Range Profiler API ¶
- RangeProfilerCounterDataGetRangeInfo: Get the range name for the given range index.
- RangeProfilerCounterDataImageInitialize: Initialize the counter data image with the profiling data for the ranges profiled.
- RangeProfilerDecodeData: Decode the profiling data stored in the hardware to the counter data image passed in the SetConfig API.
- RangeProfilerDisable: Disable the range profiler on the CUDA context and destroy the range profiler object.
- RangeProfilerEnable: Create a range profiler object and enable range profiling on the CUDA context.
- RangeProfilerGetCounterDataInfo: Get the number of ranges stored in the counter data image.
- RangeProfilerGetCounterDataSize: Get the size of the counter data image required to store the profiling data for the ranges profiled.
- RangeProfilerGetDevicePartitionInfo: Get the device partition information for a Green Context.
- RangeProfilerPopRange: pop the current range to the Range Profiler.
- RangeProfilerPushRange: Add a new range to the Range Profiler with a given range name.
- RangeProfilerSetConfig: Set the configuration for range profiler like maximum number of ranges per pass, number of nesting levels, range and replay mode and the config image which has scheduling info for metric collection.
- RangeProfilerStart: Start the range profiler.
- RangeProfilerStop: Stop the range profiler.
SASS Metrics API ¶
- SassMetricsDisable: SASS metric data collection disable API will mark the end of a range, any kernel launched after this API call will not be profiled for the SASS metrics.
- SassMetricsEnable: Sass metric data collection enable API will mark the start of a range, between which kernel will be profiled for SASS metrics.
- SassMetricsFlushData: Flush SASS metrics data from CUPTI internal buffer to the user buffer.
- SassMetricsGetDataProperties: SASS metric data properties API will give the data regarding number of instances of a metric value and number of SASS instruction data has been collected.
- SassMetricsGetMetrics: Get the list of all supported SASS metrics for the chip.
- SassMetricsGetNumOfMetrics: Get the number of supported SASS metrics for the chip.
- SassMetricsGetProperties: Get metric properties for the queried metric.
- SassMetricsSetConfig: Set config for the SASS metric data collection for a device.
- SassMetricsUnsetConfig: Unset config API will reset the SASS metric data collection configuration for the device.
Example ¶
Example queries the CUPTI version and enables collection of driver API activity records. It returns early when the CUPTI library is not available.
package main
import (
"fmt"
"github.com/tmc/lib/nvidia/cupti"
)
func main() {
version, err := cupti.GetVersion()
if err != nil {
fmt.Println("CUPTI unavailable:", err)
return
}
fmt.Println("CUPTI version:", version)
if err := cupti.ActivityEnable(cupti.ActivityKindDriver); err != nil {
fmt.Println("activity enable:", err)
return
}
defer cupti.ActivityDisable(cupti.ActivityKindDriver)
fmt.Println("driver activity records enabled")
}
Output:
Index ¶
- Constants
- func ActivityConfigurePCSampling(ctx driver.Context, config *ActivityPCSamplingConfig) errordeprecated
- func ActivityConfigureUnifiedMemoryCounter(config *ActivityUnifiedMemoryCounterConfig, count uint32) error
- func ActivityDisable(kind ActivityKind) error
- func ActivityDisableContext(context driver.Context, kind ActivityKind) error
- func ActivityDisableV1(kind ActivityKind) error
- func ActivityEnable(kind ActivityKind) error
- func ActivityEnableAllSyncRecords(enable uint8) error
- func ActivityEnableAllocationSource(enable uint8) error
- func ActivityEnableAndDump(kind ActivityKind) error
- func ActivityEnableAndDumpV1(kind ActivityKind) error
- func ActivityEnableContext(context driver.Context, kind ActivityKind) error
- func ActivityEnableCudaEventDeviceTimestamps(enable uint8) error
- func ActivityEnableDeviceGraph(enable uint8) error
- func ActivityEnableDriverApi(cbid uint32, enable uint8) error
- func ActivityEnableDriverApiV1(cbid uint32, enable uint8) error
- func ActivityEnableHWTrace(enable uint8) error
- func ActivityEnableLatencyTimestamps(enable uint8) error
- func ActivityEnableLaunchAttributes(enable uint8) error
- func ActivityEnableRuntimeApi(cbid uint32, enable uint8) error
- func ActivityEnableRuntimeApiV1(cbid uint32, enable uint8) error
- func ActivityEnableV1(kind ActivityKind) error
- func ActivityFlush(context driver.Context, streamId uint32, flag uint32) errordeprecated
- func ActivityFlushAll(flag uint32) error
- func ActivityFlushPeriod(time uint32) error
- func ActivityGetAttribute(attr ActivityAttribute, valueSize *uint, value unsafe.Pointer) error
- func ActivityGetAttributeV1(attr ActivityAttribute, valueSize *uint, value unsafe.Pointer) error
- func ActivityGetNextRecord(buffer *uint8, validBufferSizeBytes uint, record **Activity) error
- func ActivityGetNextRecordV1(buffer *uint8, validBufferSizeBytes uint, record **Activity) error
- func ActivityGetNumDroppedRecords(context driver.Context, streamId uint32) (uint, error)
- func ActivityGetNumDroppedRecordsV1(context driver.Context, streamId uint32) (uint, error)
- func ActivityGetStructSize(activityKind ActivityKind, version uint32) (uint, error)
- func ActivityPopExternalCorrelationId(kind ExternalCorrelationKind) (uint64, error)
- func ActivityPopExternalCorrelationIdV1(kind ExternalCorrelationKind) (uint64, error)
- func ActivityPushExternalCorrelationId(kind ExternalCorrelationKind, id uint64) error
- func ActivityPushExternalCorrelationIdV1(kind ExternalCorrelationKind, id uint64) error
- func ActivityRegisterCallbacks(funcBufferRequested uintptr, funcBufferCompleted uintptr) error
- func ActivityRegisterCallbacksV1(funcBufferRequested uintptr, funcBufferCompleted uintptr) error
- func ActivityRegisterTimestampCallback(funcTimestamp uintptr) error
- func ActivitySetAttribute(attr ActivityAttribute, valueSize *uint, value unsafe.Pointer) error
- func ActivitySetAttributeV1(attr ActivityAttribute, valueSize *uint, value unsafe.Pointer) error
- func CheckpointFree(handle *Checkpoint) error
- func CheckpointRestore(handle *Checkpoint) error
- func CheckpointSave(handle *Checkpoint) error
- func ClockControlGetStatus(ctx driver.Context, pStatus *ClockControlStatus) error
- func ClockControlLock(ctx driver.Context, mode ClockControlMode) error
- func ClockControlUnlock() error
- func Close() error
- func ComputeCapabilitySupported(major int32, minor int32) (int32, error)
- func DeviceEnumEventDomains(device Device, arraySizeBytes *uint, domainArray *uint32) errordeprecated
- func DeviceEnumMetrics(device Device, arraySizeBytes *uint, metricArray *uint32) errordeprecated
- func DeviceGetAttribute(device Device, attrib DeviceAttribute, valueSize *uint, value unsafe.Pointer) errordeprecated
- func DeviceGetChipName(pParams *DeviceGetChipNameParams) error
- func DeviceGetEventDomainAttribute(device Device, eventDomain uint32, attrib EventDomainAttribute, ...) errordeprecated
- func DeviceGetNumEventDomains(device Device) (uint32, error)deprecated
- func DeviceGetNumMetrics(device Device) (uint32, error)deprecated
- func DeviceSupported(dev Device) (int32, error)
- func DeviceVirtualizationMode(dev Device, mode *VirtualizationMode) error
- func DisableKernelReplayMode(context driver.Context) errordeprecated
- func EnableKernelReplayMode(context driver.Context) errordeprecated
- func EnumEventDomains(arraySizeBytes *uint, domainArray *uint32) error
- func EnumMetrics(arraySizeBytes *uint, metricArray *uint32) errordeprecated
- func EventDomainEnumEvents(eventDomain uint32, arraySizeBytes *uint, eventArray *uint32) errordeprecated
- func EventDomainGetAttribute(eventDomain uint32, attrib EventDomainAttribute, valueSize *uint, ...) error
- func EventDomainGetNumEvents(eventDomain uint32) (uint32, error)deprecated
- func EventGetAttribute(event uint32, attrib EventAttribute, valueSize *uint, value unsafe.Pointer) errordeprecated
- func EventGetIdFromName(device Device, eventName string) (uint32, error)deprecated
- func EventGroupSetDisable(eventGroupSet *EventGroupSet) errordeprecated
- func EventGroupSetEnable(eventGroupSet *EventGroupSet) errordeprecated
- func EventGroupSetsDestroy(eventGroupSets *EventGroupSets) errordeprecated
- func Finalize() error
- func GetAutoBoostState(context driver.Context, state *ActivityAutoBoostState) error
- func GetCallbackName(domain CallbackDomain, cbid uint32) (string, error)
- func GetContextId(context driver.Context) (uint32, error)
- func GetCubinCrc(pParams *GetCubinCrcParams) error
- func GetCudaEventId(event driver.Event) (uint32, error)
- func GetDeviceId(context driver.Context) (uint32, error)
- func GetGraphExecId(graphExec GraphExec) (uint32, error)
- func GetGraphId(graph Graph) (uint32, error)
- func GetGraphNodeId(node GraphNode) (uint64, error)
- func GetLastError() error
- func GetNumEventDomains() (uint32, error)deprecated
- func GetNumMetrics() (uint32, error)deprecated
- func GetSassToSourceCorrelation(pParams *GetSassToSourceCorrelationParams) error
- func GetStreamId(context driver.Context, stream driver.Stream) (uint32, error)deprecated
- func GetStreamIdEx(context driver.Context, stream driver.Stream, perThreadStream uint8) (uint32, error)
- func GetThreadIdType(type_ *ActivityThreadIdType) error
- func GetTimestamp() (uint64, error)
- func GetTimestampV1() (uint64, error)
- func GetVersion() (uint32, error)
- func Has(symbol string) bool
- func HasActivityConfigurePCSampling() bool
- func HasActivityConfigureUnifiedMemoryCounter() bool
- func HasActivityDisable() bool
- func HasActivityDisableContext() bool
- func HasActivityDisableV1() bool
- func HasActivityDisableV2() bool
- func HasActivityEnable() bool
- func HasActivityEnableAllSyncRecords() bool
- func HasActivityEnableAllocationSource() bool
- func HasActivityEnableAndDump() bool
- func HasActivityEnableAndDumpV1() bool
- func HasActivityEnableAndDumpV2() bool
- func HasActivityEnableContext() bool
- func HasActivityEnableCudaEventDeviceTimestamps() bool
- func HasActivityEnableDeviceGraph() bool
- func HasActivityEnableDriverApi() bool
- func HasActivityEnableDriverApiV1() bool
- func HasActivityEnableDriverApiV2() bool
- func HasActivityEnableHWTrace() bool
- func HasActivityEnableLatencyTimestamps() bool
- func HasActivityEnableLaunchAttributes() bool
- func HasActivityEnableRuntimeApi() bool
- func HasActivityEnableRuntimeApiV1() bool
- func HasActivityEnableRuntimeApiV2() bool
- func HasActivityEnableV1() bool
- func HasActivityEnableV2() bool
- func HasActivityFlush() bool
- func HasActivityFlushAll() bool
- func HasActivityFlushPeriod() bool
- func HasActivityGetAttribute() bool
- func HasActivityGetAttributeV1() bool
- func HasActivityGetAttributeV2() bool
- func HasActivityGetEnabledKinds() bool
- func HasActivityGetNextRecord() bool
- func HasActivityGetNextRecordV1() bool
- func HasActivityGetNextRecordV2() bool
- func HasActivityGetNumDroppedRecords() bool
- func HasActivityGetNumDroppedRecordsV1() bool
- func HasActivityGetNumDroppedRecordsV2() bool
- func HasActivityGetStructSize() bool
- func HasActivityPopExternalCorrelationId() bool
- func HasActivityPopExternalCorrelationIdV1() bool
- func HasActivityPopExternalCorrelationIdV2() bool
- func HasActivityPushExternalCorrelationId() bool
- func HasActivityPushExternalCorrelationIdV1() bool
- func HasActivityPushExternalCorrelationIdV2() bool
- func HasActivityRegisterCallbacks() bool
- func HasActivityRegisterCallbacksV1() bool
- func HasActivityRegisterCallbacksV2() bool
- func HasActivityRegisterTimestampCallback() bool
- func HasActivitySetAttribute() bool
- func HasActivitySetAttributeV1() bool
- func HasActivitySetAttributeV2() bool
- func HasCheckpointFree() bool
- func HasCheckpointRestore() bool
- func HasCheckpointSave() bool
- func HasClockControlGetStatus() bool
- func HasClockControlLock() bool
- func HasClockControlUnlock() bool
- func HasComputeCapabilitySupported() bool
- func HasDeviceEnumEventDomains() bool
- func HasDeviceEnumMetrics() bool
- func HasDeviceGetAttribute() bool
- func HasDeviceGetChipName() bool
- func HasDeviceGetEventDomainAttribute() bool
- func HasDeviceGetNumEventDomains() bool
- func HasDeviceGetNumMetrics() bool
- func HasDeviceSupported() bool
- func HasDeviceVirtualizationMode() bool
- func HasDisableKernelReplayMode() bool
- func HasEnableAllDomains() bool
- func HasEnableCallback() bool
- func HasEnableDomain() bool
- func HasEnableKernelReplayMode() bool
- func HasEnumEventDomains() bool
- func HasEnumMetrics() bool
- func HasEventDomainEnumEvents() bool
- func HasEventDomainGetAttribute() bool
- func HasEventDomainGetNumEvents() bool
- func HasEventGetAttribute() bool
- func HasEventGetIdFromName() bool
- func HasEventGroupAddEvent() bool
- func HasEventGroupCreate() bool
- func HasEventGroupDestroy() bool
- func HasEventGroupDisable() bool
- func HasEventGroupEnable() bool
- func HasEventGroupGetAttribute() bool
- func HasEventGroupReadAllEvents() bool
- func HasEventGroupReadEvent() bool
- func HasEventGroupRemoveAllEvents() bool
- func HasEventGroupRemoveEvent() bool
- func HasEventGroupResetAllEvents() bool
- func HasEventGroupSetAttribute() bool
- func HasEventGroupSetDisable() bool
- func HasEventGroupSetEnable() bool
- func HasEventGroupSetsCreate() bool
- func HasEventGroupSetsDestroy() bool
- func HasFinalize() bool
- func HasGetAutoBoostState() bool
- func HasGetCallbackName() bool
- func HasGetCallbackState() bool
- func HasGetContextId() bool
- func HasGetCubinCrc() bool
- func HasGetCudaEventId() bool
- func HasGetDeviceId() bool
- func HasGetEnabledCallbacks() bool
- func HasGetErrorMessage() bool
- func HasGetGraphExecId() bool
- func HasGetGraphId() bool
- func HasGetGraphNodeId() bool
- func HasGetLastError() bool
- func HasGetNumEventDomains() bool
- func HasGetNumMetrics() bool
- func HasGetResultString() bool
- func HasGetSassToSourceCorrelation() bool
- func HasGetStreamId() bool
- func HasGetStreamIdEx() bool
- func HasGetThreadIdType() bool
- func HasGetTimestamp() bool
- func HasGetTimestampV1() bool
- func HasGetTimestampV2() bool
- func HasGetVersion() bool
- func HasIsTracingSessionRunning() bool
- func HasKernelReplaySubscribeUpdate() bool
- func HasMetricCreateEventGroupSets() bool
- func HasMetricEnumEvents() bool
- func HasMetricEnumProperties() bool
- func HasMetricGetAttribute() bool
- func HasMetricGetIdFromName() bool
- func HasMetricGetNumEvents() bool
- func HasMetricGetNumProperties() bool
- func HasMetricGetRequiredEventGroupSets() bool
- func HasMetricGetValue() bool
- func HasMetricGetValue2() bool
- func HasPCSamplingDisable() bool
- func HasPCSamplingEnable() bool
- func HasPCSamplingGetConfigurationAttribute() bool
- func HasPCSamplingGetData() bool
- func HasPCSamplingGetNumStallReasons() bool
- func HasPCSamplingGetStallReasons() bool
- func HasPCSamplingSetConfigurationAttribute() bool
- func HasPCSamplingStart() bool
- func HasPCSamplingStop() bool
- func HasPmSamplingCounterDataGetSampleInfo() bool
- func HasPmSamplingCounterDataImageInitialize() bool
- func HasPmSamplingDecodeData() bool
- func HasPmSamplingDisable() bool
- func HasPmSamplingEnable() bool
- func HasPmSamplingGetCounterAvailability() bool
- func HasPmSamplingGetCounterDataInfo() bool
- func HasPmSamplingGetCounterDataSize() bool
- func HasPmSamplingSetConfig() bool
- func HasPmSamplingStart() bool
- func HasPmSamplingStop() bool
- func HasProfilerBeginPass() bool
- func HasProfilerBeginSession() bool
- func HasProfilerCounterDataImageCalculateScratchBufferSize() bool
- func HasProfilerCounterDataImageCalculateSize() bool
- func HasProfilerCounterDataImageInitialize() bool
- func HasProfilerCounterDataImageInitializeScratchBuffer() bool
- func HasProfilerDeInitialize() bool
- func HasProfilerDeviceSupported() bool
- func HasProfilerDisableProfiling() bool
- func HasProfilerEnableProfiling() bool
- func HasProfilerEndPass() bool
- func HasProfilerEndSession() bool
- func HasProfilerFlushCounterData() bool
- func HasProfilerGetCounterAvailability() bool
- func HasProfilerHostConfigAddMetrics() bool
- func HasProfilerHostDeinitialize() bool
- func HasProfilerHostEvaluateToGpuValues() bool
- func HasProfilerHostGetBaseMetrics() bool
- func HasProfilerHostGetConfigImage() bool
- func HasProfilerHostGetConfigImageSize() bool
- func HasProfilerHostGetMaxNumHardwareMetricsPerPass() bool
- func HasProfilerHostGetMetricProperties() bool
- func HasProfilerHostGetMetricsInSinglePassSet() bool
- func HasProfilerHostGetNumOfPasses() bool
- func HasProfilerHostGetRangeName() bool
- func HasProfilerHostGetSinglePassSets() bool
- func HasProfilerHostGetSubMetrics() bool
- func HasProfilerHostGetSupportedChips() bool
- func HasProfilerHostInitialize() bool
- func HasProfilerHostSetDevicePartitionInfo() bool
- func HasProfilerInitialize() bool
- func HasProfilerIsPassCollected() bool
- func HasProfilerPopRange() bool
- func HasProfilerPushRange() bool
- func HasProfilerSetConfig() bool
- func HasProfilerUnsetConfig() bool
- func HasRangeProfilerCounterDataGetRangeInfo() bool
- func HasRangeProfilerCounterDataImageInitialize() bool
- func HasRangeProfilerDecodeData() bool
- func HasRangeProfilerDisable() bool
- func HasRangeProfilerEnable() bool
- func HasRangeProfilerGetCounterDataInfo() bool
- func HasRangeProfilerGetCounterDataSize() bool
- func HasRangeProfilerGetDevicePartitionInfo() bool
- func HasRangeProfilerPopRange() bool
- func HasRangeProfilerPushRange() bool
- func HasRangeProfilerSetConfig() bool
- func HasRangeProfilerStart() bool
- func HasRangeProfilerStop() bool
- func HasRegisterComputeCrcCallback() bool
- func HasSassMetricsDisable() bool
- func HasSassMetricsEnable() bool
- func HasSassMetricsFlushData() bool
- func HasSassMetricsGetDataProperties() bool
- func HasSassMetricsGetMetrics() bool
- func HasSassMetricsGetNumOfMetrics() bool
- func HasSassMetricsGetProperties() bool
- func HasSassMetricsSetConfig() bool
- func HasSassMetricsUnsetConfig() bool
- func HasSetEventCollectionMode() bool
- func HasSetThreadIdType() bool
- func HasSubscribe() bool
- func HasSubscribeV1() bool
- func HasSubscribeV2() bool
- func HasSupportedDomains() bool
- func HasUnsubscribe() bool
- func InvalidContextId() uint32
- func InvalidStreamId() uint32
- func IsTracingSessionRunning() (uint8, error)
- func KernelReplaySubscribeUpdate(updateFunc uintptr, customData uintptr) errordeprecated
- func Load(path string) error
- func Loaded() bool
- func MetricEnumEvents(metric uint32, eventIdArraySizeBytes *uint, eventIdArray *uint32) errordeprecated
- func MetricEnumProperties(metric uint32, propIdArraySizeBytes *uint, propIdArray *MetricPropertyID) errordeprecated
- func MetricGetAttribute(metric uint32, attrib MetricAttribute, valueSize *uint, value unsafe.Pointer) errordeprecated
- func MetricGetIdFromName(device Device, metricName string) (uint32, error)deprecated
- func MetricGetNumEvents(metric uint32) (uint32, error)deprecated
- func MetricGetNumProperties(metric uint32) (uint32, error)deprecated
- func MetricGetValue(device Device, metric uint32, eventIdArray []uint32, eventValueArray []uint64, ...) ([1]uint64, error)deprecated
- func MetricGetValue2(metric uint32, eventIdArray []uint32, eventValueArray []uint64, ...) ([1]uint64, error)deprecated
- func PCSamplingDisable(pParams *PCSamplingDisableParams) error
- func PCSamplingEnable(pParams *PCSamplingEnableParams) error
- func PCSamplingGetConfigurationAttribute(pParams *PCSamplingConfigurationInfoParams) error
- func PCSamplingGetData(pParams *PCSamplingGetDataParams) error
- func PCSamplingGetNumStallReasons(pParams *PCSamplingGetNumStallReasonsParams) error
- func PCSamplingGetStallReasons(pParams *PCSamplingGetStallReasonsParams) error
- func PCSamplingSetConfigurationAttribute(pParams *PCSamplingConfigurationInfoParams) error
- func PCSamplingStart(pParams *PCSamplingStartParams) error
- func PCSamplingStop(pParams *PCSamplingStopParams) error
- func Path() string
- func PmSamplingCounterDataGetSampleInfo(pParams *PmSamplingCounterDataGetSampleInfoParams) error
- func PmSamplingCounterDataImageInitialize(pParams *PmSamplingCounterDataImageInitializeParams) error
- func PmSamplingDecodeData(pParams *PmSamplingDecodeDataParams) error
- func PmSamplingDisable(pParams *PmSamplingDisableParams) error
- func PmSamplingEnable(pParams *PmSamplingEnableParams) error
- func PmSamplingGetCounterAvailability(pParams *PmSamplingGetCounterAvailabilityParams) error
- func PmSamplingGetCounterDataInfo(pParams *PmSamplingGetCounterDataInfoParams) error
- func PmSamplingGetCounterDataSize(pParams *PmSamplingGetCounterDataSizeParams) error
- func PmSamplingSetConfig(pParams *PmSamplingSetConfigParams) error
- func PmSamplingStart(pParams *PmSamplingStartParams) error
- func PmSamplingStop(pParams *PmSamplingStopParams) error
- func ProfilerBeginPass(pParams *ProfilerBeginPassParams) errordeprecated
- func ProfilerBeginSession(pParams *ProfilerBeginSessionParams) errordeprecated
- func ProfilerCounterDataImageCalculateScratchBufferSize(pParams *ProfilerCounterDataImageCalculateScratchBufferSizeParams) errordeprecated
- func ProfilerCounterDataImageCalculateSize(pParams *ProfilerCounterDataImageCalculateSizeParams) errordeprecated
- func ProfilerCounterDataImageInitialize(pParams *ProfilerCounterDataImageInitializeParams) error
- func ProfilerCounterDataImageInitializeScratchBuffer(pParams *ProfilerCounterDataImageInitializeScratchBufferParams) error
- func ProfilerDeInitialize(pParams *ProfilerDeInitializeParams) error
- func ProfilerDeviceSupported(pParams *ProfilerDeviceSupportedParams) error
- func ProfilerDisableProfiling(pParams *ProfilerDisableProfilingParams) errordeprecated
- func ProfilerEnableProfiling(pParams *ProfilerEnableProfilingParams) errordeprecated
- func ProfilerEndPass(pParams *ProfilerEndPassParams) errordeprecated
- func ProfilerEndSession(pParams *ProfilerEndSessionParams) errordeprecated
- func ProfilerFlushCounterData(pParams *ProfilerFlushCounterDataParams) errordeprecated
- func ProfilerGetCounterAvailability(pParams *ProfilerGetCounterAvailabilityParams) error
- func ProfilerHostConfigAddMetrics(pParams *ProfilerHostConfigAddMetricsParams) error
- func ProfilerHostDeinitialize(pParams *ProfilerHostDeinitializeParams) error
- func ProfilerHostEvaluateToGpuValues(pParams *ProfilerHostEvaluateToGpuValuesParams) error
- func ProfilerHostGetBaseMetrics(pParams *ProfilerHostGetBaseMetricsParams) error
- func ProfilerHostGetConfigImage(pParams *ProfilerHostGetConfigImageParams) error
- func ProfilerHostGetConfigImageSize(pParams *ProfilerHostGetConfigImageSizeParams) error
- func ProfilerHostGetMaxNumHardwareMetricsPerPass(pParams *ProfilerHostGetMaxNumHardwareMetricsPerPassParams) error
- func ProfilerHostGetMetricProperties(pParams *ProfilerHostGetMetricPropertiesParams) error
- func ProfilerHostGetMetricPropertiesParamsSizeFor(version uint32) (uint, bool)
- func ProfilerHostGetMetricsInSinglePassSet(pParams *ProfilerHostGetMetricsInSinglePassSetParams) error
- func ProfilerHostGetNumOfPasses(pParams *ProfilerHostGetNumOfPassesParams) error
- func ProfilerHostGetRangeName(pParams *ProfilerHostGetRangeNameParams) error
- func ProfilerHostGetSinglePassSets(pParams *ProfilerHostGetSinglePassSetsParams) error
- func ProfilerHostGetSubMetrics(pParams *ProfilerHostGetSubMetricsParams) error
- func ProfilerHostGetSupportedChips(pParams *ProfilerHostGetSupportedChipsParams) error
- func ProfilerHostInitialize(pParams *ProfilerHostInitializeParams) error
- func ProfilerHostInitializeParamsSizeFor(version uint32) (uint, bool)
- func ProfilerHostSetDevicePartitionInfo(pParams *ProfilerHostSetDevicePartitionInfoParams) error
- func ProfilerInitialize(pParams *ProfilerInitializeParams) errordeprecated
- func ProfilerIsPassCollected(pParams *ProfilerIsPassCollectedParams) errordeprecated
- func ProfilerPopRange(pParams *ProfilerPopRangeParams) errordeprecated
- func ProfilerPushRange(pParams *ProfilerPushRangeParams) errordeprecated
- func ProfilerSetConfig(pParams *ProfilerSetConfigParams) errordeprecated
- func ProfilerUnsetConfig(pParams *ProfilerUnsetConfigParams) errordeprecated
- func RangeProfilerCounterDataGetRangeInfo(pParams *RangeProfilerCounterDataGetRangeInfoParams) error
- func RangeProfilerCounterDataImageInitialize(pParams *RangeProfilerCounterDataImageInitializeParams) error
- func RangeProfilerDecodeData(pParams *RangeProfilerDecodeDataParams) error
- func RangeProfilerDisable(pParams *RangeProfilerDisableParams) error
- func RangeProfilerEnable(pParams *RangeProfilerEnableParams) error
- func RangeProfilerGetCounterDataInfo(pParams *RangeProfilerGetCounterDataInfoParams) error
- func RangeProfilerGetCounterDataSize(pParams *RangeProfilerGetCounterDataSizeParams) error
- func RangeProfilerGetDevicePartitionInfo(pParams *RangeProfilerGetDevicePartitionInfoParams) error
- func RangeProfilerPopRange(pParams *RangeProfilerPopRangeParams) error
- func RangeProfilerPushRange(pParams *RangeProfilerPushRangeParams) error
- func RangeProfilerSetConfig(pParams *RangeProfilerSetConfigParams) error
- func RangeProfilerStart(pParams *RangeProfilerStartParams) error
- func RangeProfilerStop(pParams *RangeProfilerStopParams) error
- func RegisterComputeCrcCallback(funcComputeCubinCrc uintptr) error
- func SassMetricsDisable(pParams *SassMetricsDisableParams) error
- func SassMetricsEnable(pParams *SassMetricsEnableParams) error
- func SassMetricsFlushData(pParams *SassMetricsFlushDataParams) error
- func SassMetricsGetDataProperties(pParams *SassMetricsGetDataPropertiesParams) error
- func SassMetricsGetMetrics(pParams *SassMetricsGetMetricsParams) error
- func SassMetricsGetNumOfMetrics(pParams *SassMetricsGetNumOfMetricsParams) error
- func SassMetricsGetProperties(pParams *SassMetricsGetPropertiesParams) error
- func SassMetricsSetConfig(pParams *SassMetricsSetConfigParams) error
- func SassMetricsUnsetConfig(pParams *SassMetricsUnsetConfigParams) error
- func SetEventCollectionMode(context driver.Context, mode EventCollectionMode) errordeprecated
- func SetThreadIdType(type_ ActivityThreadIdType) error
- func SupportedDomains() (domainCount uint, domainTable uintptr, err error)
- type Activity
- type ActivityAPI
- type ActivityApiCbidOptions
- type ActivityApiFieldIds
- type ActivityApiOptions
- type ActivityAttribute
- type ActivityAutoBoostState
- type ActivityBranchdeprecated
- type ActivityBranch2
- type ActivityCdpKernel
- type ActivityComputeApiKind
- type ActivityComputeEngineCtxSwitch
- type ActivityComputeEngineCtxSwitchFieldIds
- type ActivityConfidentialComputeRotation
- type ActivityConfidentialComputeRotationFieldIds
- type ActivityConfig
- type ActivityContext
- type ActivityContext2
- type ActivityContext3
- type ActivityContext4
- type ActivityContextFieldIds
- type ActivityCudaEventdeprecated
- type ActivityCudaEvent2deprecated
- type ActivityCudaEvent3
- type ActivityCudaEventFieldIds
- type ActivityDevicedeprecated
- type ActivityDevice2deprecated
- type ActivityDevice3
- type ActivityDevice4
- type ActivityDevice5
- type ActivityDevice6
- type ActivityDeviceAttribute
- func (a *ActivityDeviceAttribute) Cu() int32
- func (a *ActivityDeviceAttribute) Cupti() DeviceAttribute
- func (a *ActivityDeviceAttribute) SetCu(v int32)
- func (a *ActivityDeviceAttribute) SetCupti(v DeviceAttribute)
- func (a *ActivityDeviceAttribute) SetVDouble(v float64)
- func (a *ActivityDeviceAttribute) SetVInt32(v int32)
- func (a *ActivityDeviceAttribute) SetVInt64(v int64)
- func (a *ActivityDeviceAttribute) SetVUint32(v uint32)
- func (a *ActivityDeviceAttribute) SetVUint64(v uint64)
- func (a *ActivityDeviceAttribute) VDouble() float64
- func (a *ActivityDeviceAttribute) VInt32() int32
- func (a *ActivityDeviceAttribute) VInt64() int64
- func (a *ActivityDeviceAttribute) VUint32() uint32
- func (a *ActivityDeviceAttribute) VUint64() uint64
- type ActivityDeviceFieldIds
- type ActivityDeviceGraphTrace
- type ActivityDeviceGraphTraceFieldIds
- type ActivityEnvironment
- type ActivityEnvironmentCoolingData
- type ActivityEnvironmentFieldIds
- type ActivityEnvironmentKind
- type ActivityEnvironmentPowerData
- type ActivityEnvironmentSpeedData
- type ActivityEnvironmentTemperatureData
- type ActivityEvent
- type ActivityEventInstance
- type ActivityExternalCorrelation
- type ActivityExternalCorrelationFieldIds
- type ActivityFieldLayoutEntry
- type ActivityFieldSelection
- type ActivityFlag
- type ActivityFunction
- type ActivityGlobalAccessdeprecated
- type ActivityGlobalAccess2deprecated
- type ActivityGlobalAccess3
- type ActivityGraphHostNode
- type ActivityGraphHostNodeFieldIds
- type ActivityGraphTrace
- type ActivityGraphTrace2
- type ActivityGraphTraceFieldIds
- type ActivityGreenContext
- type ActivityGreenContext2
- type ActivityGreenContext3
- type ActivityGreenContextFieldIds
- type ActivityHostLaunch
- type ActivityHostLaunchFieldIds
- type ActivityInstantaneousEvent
- type ActivityInstantaneousEventInstance
- type ActivityInstantaneousMetric
- type ActivityInstantaneousMetricInstance
- type ActivityInstructionClass
- type ActivityInstructionCorrelation
- type ActivityInstructionExecution
- type ActivityJit
- type ActivityJit2
- type ActivityJitEntryType
- type ActivityJitFieldIds
- type ActivityJitOperationType
- type ActivityKerneldeprecated
- type ActivityKernel2deprecated
- type ActivityKernel3deprecated
- type ActivityKernel4deprecated
- type ActivityKernel5deprecated
- type ActivityKernel6deprecated
- type ActivityKernel7deprecated
- type ActivityKernel8
- type ActivityKernel9
- type ActivityKernel10
- type ActivityKernel11
- type ActivityKernel12deprecated
- type ActivityKernel13
- type ActivityKernelFieldIds
- type ActivityKind
- type ActivityLaunchType
- type ActivityMarkerdeprecated
- type ActivityMarker2
- type ActivityMarkerDatadeprecated
- type ActivityMarkerData2
- type ActivityMarkerDataFieldIds
- type ActivityMarkerFieldIds
- type ActivityMemDecompress
- type ActivityMemDecompressFieldIds
- type ActivityMemcpydeprecated
- type ActivityMemcpy2
- type ActivityMemcpy2FieldIds
- type ActivityMemcpy3deprecated
- type ActivityMemcpy4deprecated
- type ActivityMemcpy5deprecated
- type ActivityMemcpy6deprecated
- type ActivityMemcpy7
- type ActivityMemcpyFieldIds
- type ActivityMemcpyKind
- type ActivityMemcpyPtoP
- type ActivityMemcpyPtoP2deprecated
- type ActivityMemcpyPtoP3deprecated
- type ActivityMemcpyPtoP4
- type ActivityMemory
- type ActivityMemory2
- type ActivityMemory3
- type ActivityMemory4
- type ActivityMemoryFieldIds
- type ActivityMemoryKind
- type ActivityMemoryOperationType
- type ActivityMemoryPool
- type ActivityMemoryPool2
- type ActivityMemoryPool3
- type ActivityMemoryPoolFieldIds
- type ActivityMemoryPoolOperationType
- type ActivityMemoryPoolType
- type ActivityMemsetdeprecated
- type ActivityMemset2deprecated
- type ActivityMemset3deprecated
- type ActivityMemset4deprecated
- type ActivityMemset5
- type ActivityMemsetFieldIds
- type ActivityMetric
- type ActivityMetricInstance
- type ActivityModule
- type ActivityName
- type ActivityNameFieldIds
- type ActivityNvLinkdeprecated
- type ActivityNvLink2deprecated
- type ActivityNvLink3
- type ActivityNvLink4deprecated
- type ActivityNvLink5
- type ActivityNvLinkFieldIds
- type ActivityNvLinkNpu
- type ActivityObjectKind
- type ActivityObjectKindId
- type ActivityObjectKindIdDcs
- type ActivityObjectKindIdPt
- type ActivityOpenAcc
- type ActivityOpenAccData
- type ActivityOpenAccDataFieldIds
- type ActivityOpenAccLaunch
- type ActivityOpenAccLaunchFieldIds
- type ActivityOpenAccOther
- type ActivityOpenAccOtherFieldIds
- type ActivityOpenMp
- type ActivityOpenMpFieldIds
- type ActivityOverheaddeprecated
- type ActivityOverhead2
- type ActivityOverhead3
- type ActivityOverheadCommandBufferFullData
- type ActivityOverheadFieldIds
- type ActivityOverheadKind
- type ActivityPCSamplingdeprecated
- type ActivityPCSampling2deprecated
- type ActivityPCSampling3
- type ActivityPCSamplingConfig
- type ActivityPCSamplingPeriod
- type ActivityPCSamplingRecordInfo
- type ActivityPCSamplingStallReason
- type ActivityPartitionedGlobalCacheConfig
- type ActivityPcie
- type ActivityPcieBridgeAttr
- type ActivityPcieFieldIds
- type ActivityPcieGpuAttr
- type ActivityPreemption
- type ActivityPreemptionKind
- type ActivityRecordLayout
- type ActivitySharedAccess
- type ActivitySourceLocator
- type ActivityStream
- type ActivityStreamFieldIds
- type ActivityStreamFlag
- type ActivitySynchronizationdeprecated
- type ActivitySynchronization2
- type ActivitySynchronizationFieldIds
- type ActivitySynchronizationType
- type ActivityThreadIdType
- type ActivityUnifiedMemoryAccessType
- type ActivityUnifiedMemoryCounterdeprecated
- type ActivityUnifiedMemoryCounter2deprecated
- type ActivityUnifiedMemoryCounter3
- type ActivityUnifiedMemoryCounterConfig
- type ActivityUnifiedMemoryCounterKind
- type ActivityUnifiedMemoryCounterScopedeprecated
- type ActivityUnifiedMemoryMigrationCause
- type ActivityUnifiedMemoryRemoteMapCause
- type ActivityUvmCounterFieldIds
- type ApiCallbackSite
- type BindFailure
- type BufferCallbackCompleteInfo
- type BufferCallbackRequestInfo
- type BuffersCallbackCompleteFunc
- type BuffersCallbackCompleteFuncV2
- type BuffersCallbackRequestFunc
- type BuffersCallbackRequestFuncV2
- type CacheControlMode
- type CallError
- type CallbackData
- type CallbackDomain
- type CallbackFunc
- type CallbackIdResource
- type CallbackIdState
- type CallbackIdSync
- type ChannelType
- type Checkpoint
- type CheckpointOptimizations
- type ClockControlMode
- type ClockControlStatus
- type ComputeCrcCallbackFunc
- type ComputeEngineCtxSwitchOperationType
- type ConfidentialComputeRotationEventType
- type ContextCigMode
- type DevType
- type Device
- type DeviceAttribute
- type DeviceAttributeDeviceClass
- type DeviceGetChipNameParams
- type DeviceGraphLaunchMode
- type Dim3
- type DriverTraceCBID
- type EnvironmentClocksThrottleReason
- type EventAttribute
- type EventCategory
- type EventCollectionMethod
- type EventCollectionMode
- type EventDomainAttribute
- type EventGroup
- func (e EventGroup) AddEvent(event uint32) errordeprecated
- func (e EventGroup) Attribute(attrib EventGroupAttribute, valueSize *uint, value unsafe.Pointer) errordeprecated
- func (e *EventGroup) Close() errordeprecated
- func (e EventGroup) Destroy() errordeprecated
- func (e EventGroup) Disable() errordeprecated
- func (e EventGroup) Enable() errordeprecated
- func (e EventGroup) ReadAllEvents(flags ReadEventFlags, eventValueBuffer []uint64, eventIdArray []uint32) (int, error)deprecated
- func (e EventGroup) ReadEvent(flags ReadEventFlags, event uint32, eventValueBufferSizeBytes *uint, ...) errordeprecated
- func (e EventGroup) RemoveAllEvents() errordeprecated
- func (e EventGroup) RemoveEvent(event uint32) errordeprecated
- func (e EventGroup) ResetAllEvents() errordeprecated
- func (e EventGroup) SetAttribute(attrib EventGroupAttribute, valueSize uint, value unsafe.Pointer) errordeprecated
- type EventGroupAttribute
- type EventGroupSet
- type EventGroupSets
- func EventGroupSetsCreate(context driver.Context, eventIdArraySizeBytes uint, eventIdArray *uint32) (eventGroupPasses *EventGroupSets, err error)deprecated
- func MetricCreateEventGroupSets(context driver.Context, metricIdArraySizeBytes uint, metricIdArray *uint32) (eventGroupPasses *EventGroupSets, err error)deprecated
- func MetricGetRequiredEventGroupSets(context driver.Context, metric uint32) (eventGroupSets *EventGroupSets, err error)deprecated
- type EventProfilingScope
- type ExternalCorrelationKind
- type FuncExecutionModel
- type FuncShmemLimitConfig
- type GetCubinCrcParams
- type GetSassToSourceCorrelationParams
- type Graph
- type GraphData
- type GraphExec
- type GraphNode
- type KernelReplayUpdateFunc
- type LibraryAttempt
- type LibraryConflictError
- type LibraryError
- type LinkFlag
- type LogicalEndpointResourceData
- type LogicalEndpointType
- type MetricAttribute
- type MetricCategory
- type MetricCollectionScope
- type MetricEvaluationMode
- type MetricPropertyDeviceClass
- type MetricPropertyID
- type MetricType
- type MetricValue
- func (m *MetricValue) MetricValueDouble() *float64
- func (m *MetricValue) MetricValueInt64() *int64
- func (m *MetricValue) MetricValueNvtxExtendedPayload() *uint64
- func (m *MetricValue) MetricValuePercent() *float64
- func (m *MetricValue) MetricValueThroughput() *uint64
- func (m *MetricValue) MetricValueUint64() *uint64
- func (m *MetricValue) MetricValueUtilizationLevel() *MetricValueUtilizationLevel
- type MetricValueKind
- type MetricValueUtilizationLevel
- type ModuleResourceData
- type NvtxData
- type NvtxExtPayloadAttr
- type NvtxExtPayloadType
- type NvtxTraceCBID
- type OpenAccConstructKind
- type OpenAccEventKind
- type OpenMpEventKind
- type PCSamplingCollectionMode
- type PCSamplingConfigurationAttributeType
- type PCSamplingConfigurationInfo
- type PCSamplingConfigurationInfoParams
- type PCSamplingData
- type PCSamplingDisableParams
- type PCSamplingEnableParams
- type PCSamplingGetDataParams
- type PCSamplingGetNumStallReasonsParams
- type PCSamplingGetStallReasonsParams
- type PCSamplingOutputDataFormat
- type PCSamplingPCData
- type PCSamplingReasonInventory
- type PCSamplingReasonLayout
- type PCSamplingStallReason
- type PCSamplingStallReasonInfo
- type PCSamplingStartParams
- type PCSamplingStopParams
- type PcieDeviceType
- type PcieGen
- type PmSampling
- type PmSamplingCounterDataGetSampleInfoParams
- type PmSamplingCounterDataImageInitializeParams
- type PmSamplingDecodeDataParams
- type PmSamplingDecodeStopReason
- type PmSamplingDisableParams
- type PmSamplingEnableParams
- type PmSamplingGetCounterAvailabilityParams
- type PmSamplingGetCounterDataInfoParams
- type PmSamplingGetCounterDataSizeParams
- type PmSamplingHardwareBufferAppendMode
- type PmSamplingSetConfigParams
- type PmSamplingStartParams
- type PmSamplingStopParams
- type PmSamplingTriggerMode
- type ProfilerApi
- type ProfilerBeginPassParams
- type ProfilerBeginSessionParams
- type ProfilerCounterDataImageCalculateScratchBufferSizeParams
- type ProfilerCounterDataImageCalculateSizeParams
- type ProfilerCounterDataImageInitializeParams
- type ProfilerCounterDataImageInitializeScratchBufferParams
- type ProfilerCounterDataImageOptions
- type ProfilerDeInitializeParams
- type ProfilerDeviceSupportedParams
- type ProfilerDisableProfilingParams
- type ProfilerEnableProfilingParams
- type ProfilerEndPassParams
- type ProfilerEndSessionParams
- type ProfilerFlushCounterDataParams
- type ProfilerGetCounterAvailabilityParams
- type ProfilerHost
- type ProfilerHostConfigAddMetricsParams
- type ProfilerHostDeinitializeParams
- type ProfilerHostEvaluateToGpuValuesParams
- type ProfilerHostGetBaseMetricsParams
- type ProfilerHostGetConfigImageParams
- type ProfilerHostGetConfigImageSizeParams
- type ProfilerHostGetMaxNumHardwareMetricsPerPassParams
- type ProfilerHostGetMetricPropertiesParams
- type ProfilerHostGetMetricsInSinglePassSetParams
- type ProfilerHostGetNumOfPassesParams
- type ProfilerHostGetRangeNameParams
- type ProfilerHostGetSinglePassSetsParams
- type ProfilerHostGetSubMetricsParams
- type ProfilerHostGetSupportedChipsParams
- type ProfilerHostInitializeParams
- type ProfilerHostSetDevicePartitionInfoParams
- type ProfilerInitializeParams
- type ProfilerIsPassCollectedParams
- type ProfilerPopRangeParams
- type ProfilerPushRangeParams
- type ProfilerRange
- type ProfilerReplayMode
- type ProfilerSetConfigParams
- type ProfilerSupportLevel
- type ProfilerType
- type ProfilerUnsetConfigParams
- type RangeProfiler
- type RangeProfilerCounterDataGetRangeInfoParams
- type RangeProfilerCounterDataImageInitializeParams
- type RangeProfilerDecodeDataParams
- type RangeProfilerDisableParams
- type RangeProfilerEnableParams
- type RangeProfilerGetCounterDataInfoParams
- type RangeProfilerGetCounterDataSizeParams
- type RangeProfilerGetDevicePartitionInfoParams
- type RangeProfilerPopRangeParams
- type RangeProfilerPushRangeParams
- type RangeProfilerSetConfigParams
- type RangeProfilerStartParams
- type RangeProfilerStopParams
- type ReadEventFlags
- type ResourceData
- type Result
- type RuntimeTraceCBID
- type SassMetricsConfig
- type SassMetricsData
- type SassMetricsDisableParams
- type SassMetricsEnableParams
- type SassMetricsFlushDataParams
- type SassMetricsGetDataPropertiesParams
- type SassMetricsGetMetricsParams
- type SassMetricsGetNumOfMetricsParams
- type SassMetricsGetPropertiesParams
- type SassMetricsInstanceValue
- type SassMetricsMetricDetails
- type SassMetricsOutputGranularity
- type SassMetricsSetConfigParams
- type SassMetricsUnsetConfigParams
- type StateData
- type StreamAttrData
- type Subscriber
- func (s Subscriber) ActivityDisableV2(kind ActivityKind, pActivityConfig *ActivityConfig) error
- func (s Subscriber) ActivityEnableAndDumpV2(kind ActivityKind, activityConfig *ActivityConfig) error
- func (s Subscriber) ActivityEnableDriverApiV2(cbid uint32, enable uint8) error
- func (s Subscriber) ActivityEnableRuntimeApiV2(cbid uint32, enable uint8) error
- func (s Subscriber) ActivityEnableV2(kind ActivityKind, pActivityConfig *ActivityConfig) error
- func (s Subscriber) ActivityGetAttributeV2(attr ActivityAttribute, valueSize *uint, value unsafe.Pointer) error
- func (s Subscriber) ActivityGetEnabledKinds(buffer *ActivityKind, bufferSize *uint32) (uint32, error)
- func (s Subscriber) ActivityGetNextRecordV2(buffer *uint8, validBufferSizeBytes uint, record **Activity) error
- func (s Subscriber) ActivityGetNumDroppedRecordsV2(context driver.Context, streamId uint32) (uint, error)
- func (s Subscriber) ActivityPopExternalCorrelationIdV2(kind ExternalCorrelationKind) (uint64, error)
- func (s Subscriber) ActivityPushExternalCorrelationIdV2(kind ExternalCorrelationKind, id uint64) error
- func (s Subscriber) ActivityRegisterCallbacksV2(funcBufferRequested uintptr, funcBufferCompleted uintptr) error
- func (s Subscriber) ActivitySetAttributeV2(attr ActivityAttribute, valueSize *uint, value unsafe.Pointer) error
- func (s Subscriber) CallbackState(domain CallbackDomain, cbid uint32) (uint32, error)
- func (s Subscriber) EnableAllDomains(enable uint32) error
- func (s Subscriber) EnableCallback(enable uint32, domain CallbackDomain, cbid uint32) error
- func (s Subscriber) EnableDomain(enable uint32, domain CallbackDomain) error
- func (s Subscriber) EnabledCallbacks(domain CallbackDomain, buffer *uint32, bufferSize *uint32) (uint32, error)
- func (s Subscriber) TimestampV2() (uint64, error)
- func (s Subscriber) Unsubscribe() error
- type SubscriberParams
- type SymbolError
- type SynchronizeData
- type TimestampCallbackFunc
- type VersionMismatchError
- type VirtualizationMode
Examples ¶
Constants ¶
const ( ActivityKernel10Size = 216 // CUDA 13.0–13.4 ActivityKernel11Size = 224 // CUDA 13.1–13.4 ActivityKernel12Size = 232 // CUDA 13.4 ActivityKernel13Size = 248 // CUDA 13.4 )
Layout size constants for CUPTI ActivityKernel record versions measured across CUDA 13.0–13.4 toolkits.
const ( ActivityMemcpy6Size = 96 // CUDA 13.0–13.3 ActivityMemcpy7Size = 112 // CUDA 13.4 )
Layout size constants for CUPTI ActivityMemcpy record versions, measured with the compiler against the toolkit headers on an sbsa-linux host:
gcc -I/usr/local/cuda-13.X/targets/sbsa-linux/include, sizeof(CUpti_ActivityMemcpy{6,7})
const ( ActivityMemset4Size = 88 // CUDA 13.0–13.3 ActivityMemset5Size = 104 // CUDA 13.4 )
Layout size constants for CUPTI ActivityMemset record versions, measured with the compiler against the toolkit headers on an sbsa-linux host:
gcc -I/usr/local/cuda-13.X/targets/sbsa-linux/include, sizeof(CUpti_ActivityMemset{4,5})
const ( ApiVersion = 130500 AutoBoostInvalidClientPid = 0 CorrelationIdUnknown = 0 DecompressedBytesUnknown = 0 EventInvalid = 0xFFFFFFFFFFFFFFFE EventOverflow = 0xFFFFFFFFFFFFFFFF FunctionIndexIdInvalid = 0 GridIdUnknown = 0 InvalidChannelId = 0xFFFFFFFF InvalidDeviceId = 0xFFFFFFFF MaxGpus = 32 MaxNvlinkPorts = 256 NvlinkInvalidPort = 0xFFFFFFFF OldSubscriberNameMinLen = 64 SourceLocatorIdUnknown = 0 StallReasonStringSize = 128 SubscriberNameMaxLen = 53 SynchronizationInvalidValue = 0xFFFFFFFF TimestampUnknown = 0 UnifiedMemoryCpuDeviceId = 0xFFFFFFFF )
Sentinel values and limits from the CUPTI headers.
Variables ¶
This section is empty.
Functions ¶
func ActivityConfigurePCSampling
deprecated
func ActivityConfigurePCSampling(ctx driver.Context, config *ActivityPCSamplingConfig) error
ActivityConfigurePCSampling sets PC sampling configuration.
For Pascal and older GPU architectures this API must be called before enabling activity kind ActivityKindPcSampling. There is no such requirement for Volta and newer GPU architectures.
For Volta and newer GPU architectures if this API is called in the middle of execution, PC sampling configuration will be updated for subsequent kernel launches.
- ctx: The context
- config: A pointer to ActivityPCSamplingConfig structure containing PC sampling configuration
Errors:
- ErrInvalidOperation: if this api is called while some valid event collection method is set.
- ErrInvalidParameter: if config is NULL or any parameter in the config structures is not a valid value
- ErrNotSupported: Indicates that the system/device does not support the unified memory counters
Wraps cuptiActivityConfigurePCSampling.
Deprecated: Deprecated by NVIDIA. Unsupported since CUDA 13.0, where it always returns ErrLegacyProfilerNotSupported; use the PC Sampling API, starting with PCSamplingEnable.
func ActivityConfigureUnifiedMemoryCounter ¶
func ActivityConfigureUnifiedMemoryCounter(config *ActivityUnifiedMemoryCounterConfig, count uint32) error
ActivityConfigureUnifiedMemoryCounter sets Unified Memory Counter configuration.
Set the configuration before enabling the corresponding activity kind ActivityKindUnifiedMemoryCounter. The API should be called after CUDA driver initialization.
- config: A pointer to ActivityUnifiedMemoryCounterConfig structures containing Unified Memory counter configuration
- count: Number of Unified Memory counter configuration structures
Errors:
- ErrInvalidParameter: if config is NULL or any parameter in the config structures is not a valid value
- ErrNotInitialized
- ErrUmProfilingNotSupported: One potential reason is that platform (OS/arch) does not support the unified memory counters
- ErrUmProfilingNotSupportedOnDevice: Indicates that the device does not support the unified memory counters
- ErrUmProfilingNotSupportedOnNonP2PDevices: Indicates that multi-GPU configuration without P2P support between any pair of devices does not support the unified memory counters
Wraps cuptiActivityConfigureUnifiedMemoryCounter.
func ActivityDisable ¶
func ActivityDisable(kind ActivityKind) error
ActivityDisable disables collection of a specific kind of activity record.
Multiple kinds can be disabled by calling this function multiple times. By default all activity kinds are disabled for collection.
- kind: The kind of activity record to stop collecting
Errors:
- ErrInvalidKind: if the activity kind is not supported
- ErrNotInitialized
Wraps cuptiActivityDisable.
Note: NVIDIA plans to deprecate this function in a future release. Use Subscriber.ActivityDisableV2 instead.
func ActivityDisableContext ¶
func ActivityDisableContext(context driver.Context, kind ActivityKind) error
ActivityDisableContext disables collection of a specific kind of activity record for a context.
This setting done by this API will supersede the global settings for activity records. Multiple kinds can be enabled by calling this function multiple times.
- context: The context for which activity is to be disabled
- kind: The kind of activity record to stop collecting
Errors:
- ErrInvalidKind: if the activity kind is not supported
- ErrNotInitialized
Wraps cuptiActivityDisableContext.
func ActivityDisableV1 ¶
func ActivityDisableV1(kind ActivityKind) error
ActivityDisableV1 disables collection of a specific kind of activity record.
Multiple kinds can be disabled by calling this function multiple times. By default all activity kinds are disabled for collection.
- kind: The kind of activity record to stop collecting
Errors:
- ErrInvalidKind: if the activity kind is not supported
- ErrNotInitialized
Wraps cuptiActivityDisable.
Note: NVIDIA plans to deprecate this function in a future release. Use Subscriber.ActivityDisableV2 instead.
func ActivityEnable ¶
func ActivityEnable(kind ActivityKind) error
ActivityEnable enables collection of a specific kind of activity record.
Multiple kinds can be enabled by calling this function multiple times. By default all activity kinds are disabled for collection.
- kind: The kind of activity record to collect
Errors:
- ErrInvalidKind: if the activity kind is not supported
- ErrNotCompatible: if the activity kind cannot be enabled
- ErrNotInitialized
Wraps cuptiActivityEnable.
Note: NVIDIA plans to deprecate this function in a future release. Use Subscriber.ActivityEnableV2 instead.
func ActivityEnableAllSyncRecords ¶
ActivityEnableAllSyncRecords enables collecting records for all synchronization operations.
CUPTI provides CUDA event query and stream query records via ActivityKindSynchronization. Using this API, CUPTI client can disable to record CUDA event query and stream query records for queries for which the operations have not yet been completed on the CUDA event/stream. By default, the record is generated for all CUDA events and stream irrespective of whether the operations have been completed on the CUDA event/stream.
Requires CUDA 12.8 or later.
- enable: is a boolean, denoting whether to enable or disable the collection of all CUDA event query and stream query records
Errors:
Wraps cuptiActivityEnableAllSyncRecords.
Note: NVIDIA plans to deprecate this function in a future release. The corresponding V2 activity attribute is ActivityAttrEnableAllSyncRecords, which can be queried or modified via Subscriber.ActivityGetAttributeV2 and Subscriber.ActivitySetAttributeV2.
func ActivityEnableAllocationSource ¶
ActivityEnableAllocationSource enables tracking the source library for memory allocation requests.
This API is used to control whether or not we track the source library of memory allocation requests. Default value is 0, i.e. it is not tracked. The activity kind ActivityKindMemory2 needs to be enabled, and if this flag is set, we get the full path of the shared object responsible for the GPU memory allocation request in the member source in the ActivityMemory4 records. Also note that this feature adds runtime overhead.
Requires CUDA 12.6 or later.
- enable: is a boolean, denoting whether the source library of the memory allocation request needs to be tracked
Errors:
Wraps cuptiActivityEnableAllocationSource.
Note: NVIDIA plans to deprecate this function in a future release. The corresponding V2 activity attribute is ActivityAttrEnableAllocationSourceTracking, which can be queried or modified via Subscriber.ActivityGetAttributeV2 and Subscriber.ActivitySetAttributeV2.
func ActivityEnableAndDump ¶
func ActivityEnableAndDump(kind ActivityKind) error
ActivityEnableAndDump enables collection of a specific kind of activity record.
For certain activity kinds it dumps existing records. In general, the behavior of this API is similar to the API ActivityEnable i.e. it enables the collection of a specific kind of activity record. Additionally, this API can help in dumping the records for activities which happened in the past before enabling the corresponding activity kind. The API allows to get records for the current resource allocations done in CUDA For ActivityKindDevice, existing device records are dumped For ActivityKindContext, existing context records are dumped For ActivityKindStream, existing stream records are dumped For ActivityKind NVLINK, existing NVLINK records are dumped For ActivityKindPcie, existing PCIE records are dumped For other activities, the behavior is similar to the API ActivityEnable Device records are emitted in CUPTI on CUDA driver initialization. Those records can only be retrieved by the user if CUPTI is attached before CUDA initialization. Context and stream records are emitted on context and stream creation. The use case of the API is to provide the records for CUDA resources (contexts/streams/devices) that are currently active if user late attaches CUPTI. Before calling this function, the user must register buffer callbacks to get the activity records by calling ActivityRegisterCallbacks. If the user does not register the buffers and calls API ActivityEnableAndDump, then CUPTI will enable the activity kind but not provide any records for that activity kind.
- kind: The kind of activity record to collect
Errors:
- ErrInvalidKind: if the activity kind is not supported
- ErrNotCompatible: if the activity kind cannot be enabled
- ErrNotInitialized
- ErrUnknown: if buffer is not initialized.
Wraps cuptiActivityEnableAndDump.
Note: NVIDIA plans to deprecate this function in a future release. Use Subscriber.ActivityEnableAndDumpV2 instead.
func ActivityEnableAndDumpV1 ¶
func ActivityEnableAndDumpV1(kind ActivityKind) error
ActivityEnableAndDumpV1 enables collection of a specific kind of activity record.
For certain activity kinds it dumps existing records. In general, the behavior of this API is similar to the API ActivityEnable i.e. it enables the collection of a specific kind of activity record. Additionally, this API can help in dumping the records for activities which happened in the past before enabling the corresponding activity kind. The API allows to get records for the current resource allocations done in CUDA For ActivityKindDevice, existing device records are dumped For ActivityKindContext, existing context records are dumped For ActivityKindStream, existing stream records are dumped For ActivityKind NVLINK, existing NVLINK records are dumped For ActivityKindPcie, existing PCIE records are dumped For other activities, the behavior is similar to the API ActivityEnable Device records are emitted in CUPTI on CUDA driver initialization. Those records can only be retrieved by the user if CUPTI is attached before CUDA initialization. Context and stream records are emitted on context and stream creation. The use case of the API is to provide the records for CUDA resources (contexts/streams/devices) that are currently active if user late attaches CUPTI. Before calling this function, the user must register buffer callbacks to get the activity records by calling ActivityRegisterCallbacks. If the user does not register the buffers and calls API ActivityEnableAndDump, then CUPTI will enable the activity kind but not provide any records for that activity kind.
- kind: The kind of activity record to collect
Errors:
- ErrInvalidKind: if the activity kind is not supported
- ErrNotCompatible: if the activity kind cannot be enabled
- ErrNotInitialized
- ErrUnknown: if buffer is not initialized.
Wraps cuptiActivityEnableAndDump.
Note: NVIDIA plans to deprecate this function in a future release. Use Subscriber.ActivityEnableAndDumpV2 instead.
func ActivityEnableContext ¶
func ActivityEnableContext(context driver.Context, kind ActivityKind) error
ActivityEnableContext enables collection of a specific kind of activity record for a context.
Enable collection of a specific kind of activity record for a context. This setting done by this API will supersede the global settings for activity records enabled by ActivityEnable. Multiple kinds can be enabled by calling this function multiple times.
- context: The context for which activity is to be enabled
- kind: The kind of activity record to collect
Errors:
- ErrInvalidKind: if the activity kind is not supported
- ErrNotCompatible: if the activity kind cannot be enabled
- ErrNotInitialized
Wraps cuptiActivityEnableContext.
func ActivityEnableCudaEventDeviceTimestamps ¶
ActivityEnableCudaEventDeviceTimestamps enables/disables collecting device timestamp for ActivityKindCudaEvent record.
CUPTI provides device timestamps via ‘deviceTimestamp’ field in ActivityKindCudaEvent records. Using this API, CUPTI client can enable or disable the collection of CUDA event device timestamps. By default, the collection of CUDA event device timestamps is disabled.
Requires CUDA 13.0 or later.
- enable: is a boolean, denoting whether to enable or disable the collection of CUDA event device timestamps
Errors:
Wraps cuptiActivityEnableCudaEventDeviceTimestamps.
Note: NVIDIA plans to deprecate this function in a future release. The corresponding V2 activity attribute is ActivityAttrEnableCudaEventDeviceTimestamps, which can be queried or modified via Subscriber.ActivityGetAttributeV2 and Subscriber.ActivitySetAttributeV2.
func ActivityEnableDeviceGraph ¶
ActivityEnableDeviceGraph controls the collection of records for device launched graphs.
This API is used to control the collection of records for device launched graphs. Default value is 0, i.e. these records are not collected. If the kind ActivityKindGraphTrace is selected, then ActivityKindDeviceGraphTrace records will also be emitted for device graphs. This applies for both Hardware Event System (HES) and SW instrumentation method. Otherwise records for device graphs will be collected at node granularity and the field ‘isDeviceLaunched’ for memcpy, memset and kernel records will be set for device graph nodes. This collection is done only if Hardware Event System (HES) is enabled. This API needs to be called before initialization of CUDA and this setting should not be changed during the profiling session.
Requires CUDA 12.3 or later.
- enable: is a boolean, denoting whether these records should be collected
Errors:
Wraps cuptiActivityEnableDeviceGraph.
Note: NVIDIA plans to deprecate this function in a future release. The corresponding V2 activity attribute is ActivityAttrEnableDeviceGraphTrace, which can be queried or modified via Subscriber.ActivityGetAttributeV2 and Subscriber.ActivitySetAttributeV2.
func ActivityEnableDriverApi ¶
ActivityEnableDriverApi controls the collection of activity records for specific CUDA Driver APIs.
Activity kind ActivityKindDriver controls the collection of either all CUDA Driver APIs or none. API ActivityEnableDriverApi can be used for fine-grained control, it allows enabling/disabling tracing of a specific set of CUDA Driver APIs. To disable collection of a small set of CUDA Driver APIs, user can first enable the collection of all Driver APIs using the activity kind ActivityKindDriver and call this API to disable specific Driver APIs. And to enable the collection of a small set of CUDA Driver APIs, user can call this API without using the activity kind ActivityKindDriver.
Note: Activity kind ActivityKindDriver overrides the settings done by this API if it is called after the API.
Requires CUDA 12.5 or later.
- cbid: callback id of the CUDA Driver API. This can be found in the header cupti_driver_cbid.h
- enable: is a boolean, denoting whether to enable or disable the collection
Errors:
Wraps cuptiActivityEnableDriverApi.
Note: NVIDIA plans to deprecate this function in a future release. Use Subscriber.ActivityEnableDriverApiV2 instead.
func ActivityEnableDriverApiV1 ¶
ActivityEnableDriverApiV1 controls the collection of activity records for specific CUDA Driver APIs.
Activity kind ActivityKindDriver controls the collection of either all CUDA Driver APIs or none. API ActivityEnableDriverApi can be used for fine-grained control, it allows enabling/disabling tracing of a specific set of CUDA Driver APIs. To disable collection of a small set of CUDA Driver APIs, user can first enable the collection of all Driver APIs using the activity kind ActivityKindDriver and call this API to disable specific Driver APIs. And to enable the collection of a small set of CUDA Driver APIs, user can call this API without using the activity kind ActivityKindDriver.
Note: Activity kind ActivityKindDriver overrides the settings done by this API if it is called after the API.
Requires CUDA 12.5 or later.
- cbid: callback id of the CUDA Driver API. This can be found in the header cupti_driver_cbid.h
- enable: is a boolean, denoting whether to enable or disable the collection
Errors:
Wraps cuptiActivityEnableDriverApi.
Note: NVIDIA plans to deprecate this function in a future release. Use Subscriber.ActivityEnableDriverApiV2 instead.
func ActivityEnableHWTrace ¶
ActivityEnableHWTrace enables CUDA kernel timestamp collection via Hardware Event System (HES).
This API enables hardware-based collection of CUDA kernel timestamps as an alternative to the traditional software instrumentation and semaphore-based approach. HES-based collection provides lower overhead and more accurate timing measurements. This API must be called after CUDA driver initialization but before creating the CUDA context. As a generic solution, this API can be called from the CbidResourceCuInitFinished callback. Once enabled, HES-based tracing persists for the entire profiling session and cannot be disabled. This API can also be called before CUDA driver initialization. After driver initialization, CUPTI may switch to traditional semaphore-based tracing and return error through callback with domain CbDomainState if HES-based tracing cannot be supported.
Note: This feature is only available on NVIDIA Blackwell architecture and later.
Requires CUDA 12.8 or later.
- enable: is a boolean flag to enable (true) HES-based timestamp collection
Errors:
- ErrCmpDeviceNotSupported
- ErrConfidentialComputingNotSupported
- ErrHesTraceNotSupportedOnMps
- ErrMigDeviceNotSupported
- ErrNotSupported: if HW trace cannot be enabled on the current platform
- ErrSliDeviceNotSupported
- ErrVirtualizedDeviceNotSupported
- ErrWslDeviceNotSupported
Wraps cuptiActivityEnableHWTrace.
Note: NVIDIA plans to deprecate this function in a future release. The corresponding V2 activity attribute is ActivityAttrEnableHes, which can be queried or modified via Subscriber.ActivityGetAttributeV2 and Subscriber.ActivitySetAttributeV2.
func ActivityEnableLatencyTimestamps ¶
ActivityEnableLatencyTimestamps controls the collection of queued and submitted timestamps for kernels.
This API is used to control the collection of queued and submitted timestamps for kernels whose records are provided through the struct ActivityKernel13. Default value is 0, i.e. these timestamps are not collected. This API needs to be called before initialization of CUDA and this setting should not be changed during the profiling session. This API is not supported if the HW trace is enabled through the API ActivityEnableHWTrace.
- enable: is a boolean, denoting whether these timestamps should be collected
Errors:
Wraps cuptiActivityEnableLatencyTimestamps.
Note: NVIDIA plans to deprecate this function in a future release. The corresponding V2 activity attribute is ActivityAttrEnableKernelLatencyTimestamps, which can be queried or modified via Subscriber.ActivityGetAttributeV2 and Subscriber.ActivitySetAttributeV2.
func ActivityEnableLaunchAttributes ¶
ActivityEnableLaunchAttributes controls the collection of launch attributes for kernels.
This API is used to control the collection of launch attributes for kernels whose records are provided through the struct ActivityKernel13. Default value is 0, i.e. these attributes are not collected.
- enable: is a boolean denoting whether these launch attributes should be collected
Wraps cuptiActivityEnableLaunchAttributes.
Note: NVIDIA plans to deprecate this function in a future release. The corresponding V2 activity attribute is ActivityAttrEnableKernelLaunchAttributes, which can be queried or modified via Subscriber.ActivityGetAttributeV2 and Subscriber.ActivitySetAttributeV2.
func ActivityEnableRuntimeApi ¶
ActivityEnableRuntimeApi controls the collection of activity records for specific CUDA Runtime APIs.
Activity kind ActivityKindRuntime controls the collection of either all CUDA Runtime APIs or none. API ActivityEnableRuntimeApi can be used for fine-grained control, it allows enabling/disabling tracing of a specific set of CUDA Runtime APIs. To disable collection of a small set of CUDA Runtime APIs, user can first enable the collection of all Runtime APIs using the activity kind ActivityKindRuntime and call this API to disable specific Runtime APIs. And to enable the collection of a small set of CUDA Runtime APIs, user can call this API without using the activity kind ActivityKindRuntime.
Note: Activity kind ActivityKindRuntime overrides the settings done by this API if it is called after the API.
Requires CUDA 12.5 or later.
- cbid: callback id of the CUDA Runtime API. This can be found in the header cupti_runtime_cbid.h
- enable: is a boolean, denoting whether to enable or disable the collection
Errors:
Wraps cuptiActivityEnableRuntimeApi.
Note: NVIDIA plans to deprecate this function in a future release. Use Subscriber.ActivityEnableRuntimeApiV2 instead.
func ActivityEnableRuntimeApiV1 ¶
ActivityEnableRuntimeApiV1 controls the collection of activity records for specific CUDA Runtime APIs.
Activity kind ActivityKindRuntime controls the collection of either all CUDA Runtime APIs or none. API ActivityEnableRuntimeApi can be used for fine-grained control, it allows enabling/disabling tracing of a specific set of CUDA Runtime APIs. To disable collection of a small set of CUDA Runtime APIs, user can first enable the collection of all Runtime APIs using the activity kind ActivityKindRuntime and call this API to disable specific Runtime APIs. And to enable the collection of a small set of CUDA Runtime APIs, user can call this API without using the activity kind ActivityKindRuntime.
Note: Activity kind ActivityKindRuntime overrides the settings done by this API if it is called after the API.
Requires CUDA 12.5 or later.
- cbid: callback id of the CUDA Runtime API. This can be found in the header cupti_runtime_cbid.h
- enable: is a boolean, denoting whether to enable or disable the collection
Errors:
Wraps cuptiActivityEnableRuntimeApi.
Note: NVIDIA plans to deprecate this function in a future release. Use Subscriber.ActivityEnableRuntimeApiV2 instead.
func ActivityEnableV1 ¶
func ActivityEnableV1(kind ActivityKind) error
ActivityEnableV1 enables collection of a specific kind of activity record.
Multiple kinds can be enabled by calling this function multiple times. By default all activity kinds are disabled for collection.
- kind: The kind of activity record to collect
Errors:
- ErrInvalidKind: if the activity kind is not supported
- ErrNotCompatible: if the activity kind cannot be enabled
- ErrNotInitialized
Wraps cuptiActivityEnable.
Note: NVIDIA plans to deprecate this function in a future release. Use Subscriber.ActivityEnableV2 instead.
func ActivityFlush
deprecated
ActivityFlush waits for all activity records to be delivered via the completion callback.
This function does not return until all activity records associated with the specified context/stream are returned to the CUPTI client using the callback registered in ActivityRegisterCallbacks. To ensure that all activity records are complete, the requested stream(s), if any, are synchronized. If context is NULL, the global activity records (i.e. those not associated with a particular stream) are flushed (in this case no streams are synchronized). If context is a valid driver.Context and streamId is 0, the buffers of all streams of this context are flushed. Otherwise, the buffers of the specified stream in this context is flushed. Before calling this function, the buffer handling callback api must be activated by calling ActivityRegisterCallbacks.
- context: A valid driver.Context or NULL
- streamId: The stream ID
- flag: The flag can be set to indicate a forced flush. See ActivityFlag
Errors:
- CUPTI_ERROR_CUPTI_ERROR_INVALID_OPERATION: if not preceded by a successful call to ActivityRegisterCallbacks
- ErrNotInitialized
- ErrUnknown: an internal error occurred
Wraps cuptiActivityFlush.
Deprecated: Use ActivityFlushAll instead. This method is deprecated CONTEXT and STREAMID will be ignored. Use ActivityFlushAll to flush all data. Calling restrictions are the same as for ActivityFlushAll.
func ActivityFlushAll ¶
ActivityFlushAll requests to deliver activity records via the buffer completion callback.
This function returns the activity records associated with all contexts/streams (and the global buffers not associated with any stream) to the CUPTI client using the callback registered in ActivityRegisterCallbacks. This is a blocking call but it doesn’t issue any CUDA synchronization calls implicitly thus it’s not guaranteed that all activities are completed on the underlying devices. Activity record is considered as completed if it has all the information filled up including the timestamps if any. It is the client’s responsibility to issue necessary CUDA synchronization calls before calling this function if all activity records with complete information are expected to be delivered. Behavior of the function based on the input flag: (-) For default flush i.e. when flag is set as 0, it returns all the activity buffers which have all the activity records completed, buffers need not to be full though. It doesn’t return buffers which have one or more incomplete records. Default flush can be done at a regular interval in a separate thread. (-) For forced flush i.e. when flag ActivityFlagFlushForced is passed to the function, it returns all the activity buffers including the ones which have one or more incomplete activity records. It’s suggested for clients to do the force flush before the termination of the profiling session to allow remaining buffers to be delivered. In general, it can be done in the at-exit handler. Before calling this function, the buffer handling callback api must be activated by calling ActivityRegisterCallbacks. This function can be called from application or control threads outside a CUPTI callback. If called from a CUPTI callback, it must be called only from API trace callbacks in CbDomainRuntimeApi or CbDomainDriverApi callback domains. Do not call this function from activity buffer callbacks or any other non-API-trace callbacks, including callbacks related to state, resource, synchronization, launch, memory operations, or graph activity. When multiple subscribers are allowed, the buffers of all subscribers are flushed with the same flag. It is not possible to flush the buffers of only a specific subscriber.
See also: ActivityFlushPeriod
- flag: The flag can be set to indicate a forced flush. See ActivityFlag
Errors:
- ErrInvalidOperation: if not preceded by a successful call to ActivityRegisterCallbacks
- ErrNotInitialized
- ErrUnknown: an internal error occurred
Wraps cuptiActivityFlushAll.
func ActivityFlushPeriod ¶
ActivityFlushPeriod sets the flush period for the worker thread.
CUPTI creates a worker thread to minimize the perturbance for the application created threads. CUPTI offloads certain operations from the application threads to the worker thread, this includes synchronization of profiling resources between host and device, delivery of the activity buffers to the client using the callback registered in ActivityRegisterCallbacks. For performance reasons, CUPTI wakes up the worker thread based on certain heuristics. This API is used to control the flush period of the worker thread. This setting will override the CUPTI heuristics. Setting time to zero disables the periodic flush and restores the default behavior. Periodic flush can return only those activity buffers which are full and have all the activity records completed. It’s allowed to use the API ActivityFlushAll to flush the data on-demand, even when client sets the periodic flush.
See also: ActivityFlushAll
- time: flush period in milliseconds (ms)
Errors:
Wraps cuptiActivityFlushPeriod.
func ActivityGetAttribute ¶
func ActivityGetAttribute(attr ActivityAttribute, valueSize *uint, value unsafe.Pointer) error
ActivityGetAttribute reads an activity API attribute.
Read an activity API attribute and return it in *value. In case of multiple subscribers, use Subscriber.ActivityGetAttributeV2 to read the attribute for the subscriber.
- attr: The attribute to read
- valueSize: Size of buffer pointed by the value, and returns the number of bytes written to value
- value: Returns the value of the attribute
Errors:
- ErrInvalidParameter: if valueSize or value is NULL, or if attr is not an activity attribute
- ErrNotInitialized
- ErrParameterSizeNotSufficient: Indicates that the value buffer is too small to hold the attribute value.
Wraps cuptiActivityGetAttribute.
Note: NVIDIA plans to deprecate this function in a future release. Use Subscriber.ActivityGetAttributeV2 instead.
func ActivityGetAttributeV1 ¶
func ActivityGetAttributeV1(attr ActivityAttribute, valueSize *uint, value unsafe.Pointer) error
ActivityGetAttributeV1 reads an activity API attribute.
Read an activity API attribute and return it in *value. In case of multiple subscribers, use Subscriber.ActivityGetAttributeV2 to read the attribute for the subscriber.
- attr: The attribute to read
- valueSize: Size of buffer pointed by the value, and returns the number of bytes written to value
- value: Returns the value of the attribute
Errors:
- ErrInvalidParameter: if valueSize or value is NULL, or if attr is not an activity attribute
- ErrNotInitialized
- ErrParameterSizeNotSufficient: Indicates that the value buffer is too small to hold the attribute value.
Wraps cuptiActivityGetAttribute.
Note: NVIDIA plans to deprecate this function in a future release. Use Subscriber.ActivityGetAttributeV2 instead.
func ActivityGetNextRecord ¶
ActivityGetNextRecord iterates over the activity records in a buffer.
This is a helper function to iterate over the activity records in a buffer. A buffer of activity records is typically obtained by receiving a BuffersCallbackCompleteFunc callback. Stop iterating the buffer when an error occurs.
- buffer: The buffer containing activity records
- validBufferSizeBytes: The number of valid bytes in the buffer
- record: Inputs the previous record returned by ActivityGetNextRecord and returns the next activity record from the buffer. If input value is NULL, returns the first activity record in the buffer. Records of certain kinds like ActivityKindConcurrentKernel may contain invalid (0) timestamps, indicating that no timing information could be collected for lack of device memory
Errors:
- ErrInvalidKind: if activity record is either incomplete or invalid
- ErrInvalidParameter: if buffer is NULL.
- ErrMaxLimitReached: if no more records in the buffer
- ErrNotInitialized
Wraps cuptiActivityGetNextRecord.
Note: NVIDIA plans to deprecate this function in a future release. Use Subscriber.ActivityGetNextRecordV2 instead.
func ActivityGetNextRecordV1 ¶
ActivityGetNextRecordV1 iterates over the activity records in a buffer.
This is a helper function to iterate over the activity records in a buffer. A buffer of activity records is typically obtained by receiving a BuffersCallbackCompleteFunc callback. Stop iterating the buffer when an error occurs.
- buffer: The buffer containing activity records
- validBufferSizeBytes: The number of valid bytes in the buffer
- record: Inputs the previous record returned by ActivityGetNextRecord and returns the next activity record from the buffer. If input value is NULL, returns the first activity record in the buffer. Records of certain kinds like ActivityKindConcurrentKernel may contain invalid (0) timestamps, indicating that no timing information could be collected for lack of device memory
Errors:
- ErrInvalidKind: if activity record is either incomplete or invalid
- ErrInvalidParameter: if buffer is NULL.
- ErrMaxLimitReached: if no more records in the buffer
- ErrNotInitialized
Wraps cuptiActivityGetNextRecord.
Note: NVIDIA plans to deprecate this function in a future release. Use Subscriber.ActivityGetNextRecordV2 instead.
func ActivityGetNumDroppedRecords ¶
ActivityGetNumDroppedRecords gets the number of activity records that were dropped of insufficient buffer space.
Get the number of records that were dropped because of insufficient buffer space. The dropped count includes records that could not be recorded because CUPTI did not have activity buffer space available for the record (because the BuffersCallbackRequestFunc callback did not return an empty buffer of sufficient size) and also CDP records that could not be record because the device-size buffer was full (size is controlled by the ActivityAttrDeviceBufferSizeCdp attribute). The dropped count maintained for the queue is reset to zero when this function is called.
- context: The context, or NULL to get dropped count from global queue
- streamId: The stream ID
- dropped: The number of records that were dropped since the last call to this function
Errors:
- ErrInvalidParameter: if dropped is NULL
- ErrNotInitialized
Wraps cuptiActivityGetNumDroppedRecords.
Note: NVIDIA plans to deprecate this function in a future release. Use Subscriber.ActivityGetNumDroppedRecordsV2 instead.
func ActivityGetNumDroppedRecordsV1 ¶
ActivityGetNumDroppedRecordsV1 gets the number of activity records that were dropped of insufficient buffer space.
Get the number of records that were dropped because of insufficient buffer space. The dropped count includes records that could not be recorded because CUPTI did not have activity buffer space available for the record (because the BuffersCallbackRequestFunc callback did not return an empty buffer of sufficient size) and also CDP records that could not be record because the device-size buffer was full (size is controlled by the ActivityAttrDeviceBufferSizeCdp attribute). The dropped count maintained for the queue is reset to zero when this function is called.
- context: The context, or NULL to get dropped count from global queue
- streamId: The stream ID
- dropped: The number of records that were dropped since the last call to this function
Errors:
- ErrInvalidParameter: if dropped is NULL
- ErrNotInitialized
Wraps cuptiActivityGetNumDroppedRecords.
Note: NVIDIA plans to deprecate this function in a future release. Use Subscriber.ActivityGetNumDroppedRecordsV2 instead.
func ActivityGetStructSize ¶
func ActivityGetStructSize(activityKind ActivityKind, version uint32) (uint, error)
ActivityGetStructSize gets the size of the activity struct for a given CUPTI version.
This API is applicable only for predefined activity structs.
Requires CUDA 13.2 or later.
- activityKind: The activity kind to get the size for
- version: The version of the CUPTI API. If 0, returns size for current version. If non-zero, returns size for the specified version. The version format is xxyyzz, e.g., 130000 for CUPTI 13.0, 130100 for CUPTI 13.1. The version of CUPTI can be queried using GetVersion API. Only versions >= 130000 are supported
- activityStructSize: The size of the activity struct
Errors:
- ErrInvalidKind: if activityKind is invalid.
- ErrInvalidParameter: if activityStructSize is NULL
- ErrNotSupported: if version is non-zero and is less than 130000.
Wraps cuptiActivityGetStructSize.
func ActivityPopExternalCorrelationId ¶
func ActivityPopExternalCorrelationId(kind ExternalCorrelationKind) (uint64, error)
ActivityPopExternalCorrelationId pops an external correlation id for the calling thread.
This function notifies CUPTI that the calling thread is leaving an external API region.
- kind: The kind of external API activities should be correlated with
- lastId: If the function returns successful, contains the last external correlation id for this kind, can be NULL
Errors:
- ErrInvalidParameter: The external API kind is invalid.
- ErrQueueEmpty: No external id is currently associated with kind.
Wraps cuptiActivityPopExternalCorrelationId.
Note: NVIDIA plans to deprecate this function in a future release. Use Subscriber.ActivityPopExternalCorrelationIdV2 instead.
func ActivityPopExternalCorrelationIdV1 ¶
func ActivityPopExternalCorrelationIdV1(kind ExternalCorrelationKind) (uint64, error)
ActivityPopExternalCorrelationIdV1 pops an external correlation id for the calling thread.
This function notifies CUPTI that the calling thread is leaving an external API region.
- kind: The kind of external API activities should be correlated with
- lastId: If the function returns successful, contains the last external correlation id for this kind, can be NULL
Errors:
- ErrInvalidParameter: The external API kind is invalid.
- ErrQueueEmpty: No external id is currently associated with kind.
Wraps cuptiActivityPopExternalCorrelationId.
Note: NVIDIA plans to deprecate this function in a future release. Use Subscriber.ActivityPopExternalCorrelationIdV2 instead.
func ActivityPushExternalCorrelationId ¶
func ActivityPushExternalCorrelationId(kind ExternalCorrelationKind, id uint64) error
ActivityPushExternalCorrelationId pushes an external correlation id for the calling thread.
This function notifies CUPTI that the calling thread is entering an external API region. When a CUPTI activity API record is created while within an external API region and ActivityKindExternalCorrelation is enabled, the activity API record will be preceded by a ActivityExternalCorrelation record for each ExternalCorrelationKind.
- kind: The kind of external API activities should be correlated with
- id: External correlation id
Errors:
- ErrInvalidParameter: The external API kind is invalid
Wraps cuptiActivityPushExternalCorrelationId.
Note: NVIDIA plans to deprecate this function in a future release. Use Subscriber.ActivityPushExternalCorrelationIdV2 instead.
func ActivityPushExternalCorrelationIdV1 ¶
func ActivityPushExternalCorrelationIdV1(kind ExternalCorrelationKind, id uint64) error
ActivityPushExternalCorrelationIdV1 pushes an external correlation id for the calling thread.
This function notifies CUPTI that the calling thread is entering an external API region. When a CUPTI activity API record is created while within an external API region and ActivityKindExternalCorrelation is enabled, the activity API record will be preceded by a ActivityExternalCorrelation record for each ExternalCorrelationKind.
- kind: The kind of external API activities should be correlated with
- id: External correlation id
Errors:
- ErrInvalidParameter: The external API kind is invalid
Wraps cuptiActivityPushExternalCorrelationId.
Note: NVIDIA plans to deprecate this function in a future release. Use Subscriber.ActivityPushExternalCorrelationIdV2 instead.
func ActivityRegisterCallbacks ¶
ActivityRegisterCallbacks registers callback functions with CUPTI for activity buffer handling.
This function registers two callback functions to be used in asynchronous buffer handling. If registered, activity record buffers are handled using asynchronous requested/completed callbacks from CUPTI. Registering these callbacks prevents the client from using CUPTI’s blocking enqueue/dequeue functions.
- funcBufferRequested: callback which is invoked when an empty buffer is requested by CUPTI (see BuffersCallbackRequestFunc)
- funcBufferCompleted: callback which is invoked when a buffer containing activity records is available from CUPTI (see BuffersCallbackCompleteFunc)
Errors:
- ErrInvalidParameter: if either funcBufferRequested or funcBufferCompleted is NULL
Wraps cuptiActivityRegisterCallbacks.
Note: NVIDIA plans to deprecate this function in a future release. Use Subscriber.ActivityRegisterCallbacksV2 instead.
func ActivityRegisterCallbacksV1 ¶
ActivityRegisterCallbacksV1 registers callback functions with CUPTI for activity buffer handling.
This function registers two callback functions to be used in asynchronous buffer handling. If registered, activity record buffers are handled using asynchronous requested/completed callbacks from CUPTI. Registering these callbacks prevents the client from using CUPTI’s blocking enqueue/dequeue functions.
- funcBufferRequested: callback which is invoked when an empty buffer is requested by CUPTI (see BuffersCallbackRequestFunc)
- funcBufferCompleted: callback which is invoked when a buffer containing activity records is available from CUPTI (see BuffersCallbackCompleteFunc)
Errors:
- ErrInvalidParameter: if either funcBufferRequested or funcBufferCompleted is NULL
Wraps cuptiActivityRegisterCallbacks.
Note: NVIDIA plans to deprecate this function in a future release. Use Subscriber.ActivityRegisterCallbacksV2 instead.
func ActivityRegisterTimestampCallback ¶
ActivityRegisterTimestampCallback registers callback function with CUPTI for providing timestamp.
This function registers a callback function to obtain timestamp of user’s choice instead of using CUPTI provided timestamp. By default CUPTI uses different methods, based on the underlying platform, to retrieve the timestamp Linux (x86_64, aarch64 sbsa, aarch64) uses clock_gettime(CLOCK_REALTIME) Windows uses QueryPerformanceCounter() WSL (Windows Subsystem for Linux) uses clock_gettime(CLOCK_MONOTONIC_RAW) as CLOCK_REALTIME can cause backward jumps. QNX uses ClockCycles() Timestamps retrieved using these methods are converted to nanosecond if needed before usage. Timestamps for GPU activities such as kernels, memory copies and memset operations are recorded directly on the GPU. To provide a unified and normalized view of these timestamps in relation to CPU time, CUPTI performs a linear interpolation to convert GPU timestamps into CPU timestamps during post-processing. For activities where timestamps are captured on the GPU, the timestamp callback is invoked during the post-processing phase, while converting GPU timestamps into CPU timestamps. For activities for which timestamps are captured directly on the CPU, the timestamp callback is invoked immediately at the time of the activity. The registration of timestamp callback should be done before any of the CUPTI activity kinds are enabled to make sure that all the records report the timestamp using the callback function registered through ActivityRegisterTimestampCallback API. Changing the timestamp callback function in CUPTI through ActivityRegisterTimestampCallback API in the middle of the profiling session can cause records generated prior to the change to report timestamps through previous timestamp method.
- funcTimestamp: callback which is invoked when a timestamp is needed by CUPTI (see TimestampCallbackFunc)
Errors:
- ErrInvalidParameter: if funcTimestamp is NULL
- ErrNotInitialized
Wraps cuptiActivityRegisterTimestampCallback.
Note: NVIDIA plans to deprecate this function in a future release. In CUDA 13.4 and later, the corresponding V2 activity attribute is ActivityAttrTimestampCallback, which can be queried or modified via Subscriber.ActivityGetAttributeV2 and Subscriber.ActivitySetAttributeV2.
func ActivitySetAttribute ¶
func ActivitySetAttribute(attr ActivityAttribute, valueSize *uint, value unsafe.Pointer) error
ActivitySetAttribute writes an activity API attribute.
In case of multiple subscribers, use Subscriber.ActivitySetAttributeV2 to write the attribute for the subscriber.
- attr: The attribute to write
- valueSize: The size, in bytes, of the value
- value: The attribute value to write
Errors:
- ErrInvalidParameter: if valueSize or value is NULL, or if attr is not an activity attribute
- ErrNotInitialized
- ErrNotSupported: if multiple subscribers are not allowed.
- ErrParameterSizeNotSufficient: Indicates that the value buffer is too small to hold the attribute value.
Wraps cuptiActivitySetAttribute.
Note: NVIDIA plans to deprecate this function in a future release. Use Subscriber.ActivitySetAttributeV2 instead.
func ActivitySetAttributeV1 ¶
func ActivitySetAttributeV1(attr ActivityAttribute, valueSize *uint, value unsafe.Pointer) error
ActivitySetAttributeV1 writes an activity API attribute.
In case of multiple subscribers, use Subscriber.ActivitySetAttributeV2 to write the attribute for the subscriber.
- attr: The attribute to write
- valueSize: The size, in bytes, of the value
- value: The attribute value to write
Errors:
- ErrInvalidParameter: if valueSize or value is NULL, or if attr is not an activity attribute
- ErrNotInitialized
- ErrNotSupported: if multiple subscribers are not allowed.
- ErrParameterSizeNotSufficient: Indicates that the value buffer is too small to hold the attribute value.
Wraps cuptiActivitySetAttribute.
Note: NVIDIA plans to deprecate this function in a future release. Use Subscriber.ActivitySetAttributeV2 instead.
func CheckpointFree ¶
func CheckpointFree(handle *Checkpoint) error
CheckpointFree frees the backing data for a checkpoint.
Frees all associated device, host memory and filesystem storage used for this context. After freeing a handle, it may be re-used as if it was new - options may be re-configured and will take effect on the next call to CheckpointSave.
- handle: A pointer to a previously saved Checkpoint object
A nil error means the handle was successfully freed.
Errors:
- ErrInvalidContext: if the context is no longer valid
- ErrInvalidParameter: if the handle was already freed or appears invalid
Wraps cuptiCheckpointFree.
func CheckpointRestore ¶
func CheckpointRestore(handle *Checkpoint) error
CheckpointRestore restores a checkpoint to the device associated with its context.
Restores device, pinned, and allocated memory to the state when the checkpoint was saved
- handle: A pointer to a previously saved Checkpoint object
Errors:
- ErrInvalidContext
- ErrInvalidParameter: if the handle appears invalid
- ErrNotInitialized: if the checkpoint was not previously initialized
- ErrUnknown: if the restore or optimization operation fails
- CUTPI_SUCCESS: if the checkpoint was successfully restored
Wraps cuptiCheckpointRestore.
func CheckpointSave ¶
func CheckpointSave(handle *Checkpoint) error
CheckpointSave initializes and save a checkpoint of the device state associated with the handle context.
Uses the handle options to configure and save a checkpoint of the device state associated with the specified context.
- handle: A pointer to a Checkpoint object
A nil error means a checkpoint was successfully initialized and saved.
Errors:
- ErrInvalidContext
- ErrInvalidDevice: if device associated with context is not compatible with checkpoint API
- ErrInvalidOperation: if Save is requested over an existing checkpoint, but allowOverwrite was not originally specified
- ErrInvalidParameter: if handle does not appear to refer to a valid Checkpoint
- ErrOutOfMemory: if as configured, not enough backing storage space to save the checkpoint previous6.2. CUPTI Callback API next6.4. CUPTI Clock Control API
Wraps cuptiCheckpointSave.
func ClockControlGetStatus ¶
func ClockControlGetStatus(ctx driver.Context, pStatus *ClockControlStatus) error
ClockControlGetStatus queries the device-global GPU clock-control status.
Queries the driver for the current clock-control state of the GPU associated with ctx and stores the result in pStatus. The returned status is device-global: it applies to the GPU, not just to ctx, and it can reflect locks created outside CUPTI.
This API does not create, take ownership of, release, or otherwise modify any clock lock. It only reports the current driver-visible state. In particular, receiving ClockControlStatusLocked does not imply that a later ClockControlUnlock call will release the lock; unlock only releases locks that were created by ClockControlLock in this process.
If the query fails, pStatus is not modified. Failures can happen on devices or platforms where clock-control state is unavailable or access is restricted.
Requires CUDA 13.4 or later.
- ctx: A valid CUDA context on the device whose clock status should be queried
- pStatus: Returns the device clock-control status
Errors:
- ErrInvalidParameter: ctx is NULL or pStatus is NULL
- ErrNotSupported: Device or platform does not support clock control
- ErrUnknown: An unspecified error occurred, preventing the query. \since CUDA 13.4
Wraps cuptiClockControlGetStatus.
func ClockControlLock ¶
func ClockControlLock(ctx driver.Context, mode ClockControlMode) error
ClockControlLock locks GPU clocks to the requested frequency.
Lock GPU clocks to a fixed level (base/rated-TDP or boost) so profiling sessions collect deterministic metrics. Clocks remain locked until ClockControlUnlock is called. If the process exits beforehand, clocks are not automatically unlocked.
Intended to be called BEFORE the profiling session is enabled (e.g., before RangeProfilerEnable), and matched with a call to ClockControlUnlock AFTER the session is disabled.
Only one lock can be active at a time per process; calling this API again while a lock is active is a no-op that returns Success. Before attempting a new lock, CUPTI queries the device status. If clocks are already locked before this API is called, CUPTI leaves the existing lock untouched and returns Success without taking ownership of that lock. This external-lock check is performed before CUPTI rejects platforms where it cannot create a new lock, such as MIG-partitioned devices.
To skip clock locking entirely, do not call this API -- passing an uninitialized or zero-valued mode returns ErrInvalidParameter.
Requires CUDA 13.4 or later.
- ctx: A valid CUDA context on the device whose clocks should be locked
- mode: Clock control mode (see ClockControlMode)
Errors:
- ErrInvalidParameter: ctx is NULL or mode is not a valid enum value
- ErrNotSupported: Device or platform does not support clock control
- ErrInsufficientPrivileges: BOOST mode failed -- typically requires elevated privileges
- ErrUnknown: An unspecified error occurred, preventing the lock. \since CUDA 13.4
Wraps cuptiClockControlLock.
func ClockControlUnlock ¶
func ClockControlUnlock() error
ClockControlUnlock unlocks GPU clocks previously locked via ClockControlLock.
Releases any clock lock created by CUPTI in this process. No-op if no lock is currently held. Safe to call even without a matching lock (e.g., as a defensive cleanup). This API does not release a pre-existing external lock that was observed by ClockControlLock.
Intended to be called AFTER the profiling session is disabled (e.g., after RangeProfilerDisable).
Requires CUDA 13.4 or later.
Errors:
- ErrNotSupported: Clock control is not supported on this platform
- ErrUnknown: An unspecified error occurred, preventing the unlock. \since CUDA 13.4
Wraps cuptiClockControlUnlock.
func Close ¶
func Close() error
Close unloads the library and clears all bound function pointers.
The function pointers are package-level state, so Close must not be called concurrently with any other call into this package: doing so is a use-after-free. It is intended for test teardown, not for reclaiming a live library.
func ComputeCapabilitySupported ¶
ComputeCapabilitySupported checks support for a compute capability.
This function is used to check the support for a device based on it’s compute capability. It sets the support when the compute capability is supported by the current version of CUPTI, and clears it otherwise. This version of CUPTI might not support all GPUs sharing the same compute capability. It is suggested to use API DeviceSupported which provides correct information.
See also: DeviceSupported
- major: The major revision number of the compute capability
- minor: The minor revision number of the compute capability
- support: Pointer to an integer to return the support status
Errors:
- ErrInvalidParameter: if support is NULL
Wraps cuptiComputeCapabilitySupported.
func DeviceEnumEventDomains
deprecated
DeviceEnumEventDomains gets the event domains for a device.
Returns the event domains IDs in domainArray for a device. The size of the domainArray buffer is given by *arraySizeBytes. The size of the domainArray buffer must be at least numdomains * sizeof(CUpti_EventDomainID) or else all domains will not be returned. The value returned in *arraySizeBytes contains the number of bytes returned in domainArray.
- device: CUDA device
- arraySizeBytes: The size of domainArray in bytes, and returns the number of bytes written to domainArray
- domainArray: Returns the IDs of the event domains for the device
Errors:
- ErrNotInitialized
- ErrInvalidDevice
- ErrInvalidParameter: if arraySizeBytes or domainArray are NULL
Wraps cuptiDeviceEnumEventDomains.
Deprecated: Deprecated by NVIDIA. Unsupported since CUDA 13.0, where it always returns ErrLegacyProfilerNotSupported; use the range profiler API, starting with RangeProfilerEnable.
func DeviceEnumMetrics
deprecated
DeviceEnumMetrics gets the metrics for a device.
Returns the metric IDs in metricArray for a device. The size of the metricArray buffer is given by *arraySizeBytes. The size of the metricArray buffer must be at least numMetrics * sizeof(CUpti_MetricID) or else all metric IDs will not be returned. The value returned in *arraySizeBytes contains the number of bytes returned in metricArray.
- device: The CUDA device
- arraySizeBytes: The size of metricArray in bytes, and returns the number of bytes written to metricArray
- metricArray: Returns the IDs of the metrics for the device
Errors:
- ErrNotInitialized
- ErrInvalidDevice
- ErrInvalidParameter: if arraySizeBytes or metricArray are NULL
Wraps cuptiDeviceEnumMetrics.
Deprecated: Deprecated by NVIDIA. Unsupported since CUDA 13.0, where it always returns ErrLegacyProfilerNotSupported; use the range profiler API, starting with RangeProfilerEnable.
func DeviceGetAttribute
deprecated
func DeviceGetAttribute(device Device, attrib DeviceAttribute, valueSize *uint, value unsafe.Pointer) error
DeviceGetAttribute reads a device attribute.
Read a device attribute and return it in *value.
- device: CUDA device
- attrib: The attribute to read
- valueSize: Size of buffer pointed by the value, and returns the number of bytes written to value
- value: Returns the value of the attribute
Errors:
- ErrNotInitialized
- ErrInvalidDevice
- ErrInvalidParameter: if valueSize or value is NULL, or if attrib is not a device attribute
- ErrParameterSizeNotSufficient: For non-c-string attribute values, indicates that the value buffer is too small to hold the attribute value.
Wraps cuptiDeviceGetAttribute.
Deprecated: Deprecated by NVIDIA. Unsupported since CUDA 13.0, where it always returns ErrLegacyProfilerNotSupported; use the range profiler API, starting with RangeProfilerEnable.
func DeviceGetChipName ¶
func DeviceGetChipName(pParams *DeviceGetChipNameParams) error
DeviceGetChipName wraps cuptiDeviceGetChipName.
func DeviceGetEventDomainAttribute
deprecated
func DeviceGetEventDomainAttribute(device Device, eventDomain uint32, attrib EventDomainAttribute, valueSize *uint, value unsafe.Pointer) error
DeviceGetEventDomainAttribute reads an event domain attribute.
Returns an event domain attribute in *value. The size of the value buffer is given by *valueSize. The value returned in *valueSize contains the number of bytes returned in value.
If the attribute value is a c-string that is longer than *valueSize, then only the first *valueSize characters will be returned and there will be no terminating null byte.
- device: CUDA device
- eventDomain: ID of the event domain
- attrib: The event domain attribute to read
- valueSize: The size of the value buffer in bytes, and returns the number of bytes written to value
- value: Returns the attribute's value
Errors:
- ErrNotInitialized
- ErrInvalidDevice
- ErrInvalidEventDomainId
- ErrInvalidParameter: if valueSize or value is NULL, or if attrib is not an event domain attribute
- ErrParameterSizeNotSufficient: For non-c-string attribute values, indicates that the value buffer is too small to hold the attribute value.
Wraps cuptiDeviceGetEventDomainAttribute.
Deprecated: Deprecated by NVIDIA. Unsupported since CUDA 13.0, where it always returns ErrLegacyProfilerNotSupported; use the range profiler API, starting with RangeProfilerEnable.
func DeviceGetNumEventDomains
deprecated
DeviceGetNumEventDomains gets the number of domains for a device.
Returns the number of domains for a device.
- device: CUDA device
- numDomains: Returns the number of domains
Errors:
- ErrNotInitialized
- ErrInvalidDevice
- ErrInvalidParameter: if numDomains is NULL
Wraps cuptiDeviceGetNumEventDomains.
Deprecated: Deprecated by NVIDIA. Unsupported since CUDA 13.0, where it always returns ErrLegacyProfilerNotSupported; use the range profiler API, starting with RangeProfilerEnable.
func DeviceGetNumMetrics
deprecated
DeviceGetNumMetrics gets the number of metrics for a device.
Returns the number of metrics available for a device.
- device: The CUDA device
- numMetrics: Returns the number of metrics available for the device
Errors:
- ErrNotInitialized
- ErrInvalidDevice
- ErrInvalidParameter: if numMetrics is NULL
Wraps cuptiDeviceGetNumMetrics.
Deprecated: Deprecated by NVIDIA. Unsupported since CUDA 13.0, where it always returns ErrLegacyProfilerNotSupported; use the range profiler API, starting with RangeProfilerEnable.
func DeviceSupported ¶
DeviceSupported checks support for a compute device.
This function is used to check the support for a compute device. It sets the support when the device is supported by the current version of CUPTI, and clears it otherwise.
See also: ComputeCapabilitySupported
- dev: The device handle returned by CUDA Driver API cuDeviceGet
- support: Pointer to an integer to return the support status
Errors:
- ErrInvalidDevice: if dev is not a valid device
- ErrInvalidParameter: if support is NULL
Wraps cuptiDeviceSupported.
func DeviceVirtualizationMode ¶
func DeviceVirtualizationMode(dev Device, mode *VirtualizationMode) error
DeviceVirtualizationMode queries the virtualization mode of the device.
This function is used to query the virtualization mode of the CUDA device.
- dev: The device handle returned by CUDA Driver API cuDeviceGet
- mode: Pointer to an VirtualizationMode to return the virtualization mode
Errors:
- ErrInvalidDevice: if dev is not a valid device
- ErrInvalidParameter: if mode is NULL
Wraps cuptiDeviceVirtualizationMode.
func DisableKernelReplayMode
deprecated
DisableKernelReplayMode disables kernel replay mode.
Set profiling mode for the context to non-replay (default) mode. Event collection mode will be set to EventCollectionModeKernel. All previously enabled event groups and event group sets will be disabled.
- context: The context
Wraps cuptiDisableKernelReplayMode.
Deprecated: Deprecated by NVIDIA. Unsupported since CUDA 13.0, where it always returns ErrLegacyProfilerNotSupported; use the range profiler API, starting with RangeProfilerEnable.
func EnableKernelReplayMode
deprecated
EnableKernelReplayMode enables kernel replay mode.
Set profiling mode for the context to replay mode. In this mode, any number of events can be collected in one run of the kernel. The event collection mode will automatically switch to EventCollectionModeKernel. In this mode, SetEventCollectionMode will return ErrInvalidOperation.
- context: The context
Wraps cuptiEnableKernelReplayMode.
Deprecated: Deprecated by NVIDIA. Unsupported since CUDA 13.0, where it always returns ErrLegacyProfilerNotSupported; use the range profiler API, starting with RangeProfilerEnable.
func EnumEventDomains ¶
EnumEventDomains gets the event domains available on any device.
Returns all the event domains available on any CUDA-capable device. Event domain IDs are returned in domainArray. The size of the domainArray buffer is given by *arraySizeBytes. The size of the domainArray buffer must be at least numDomains * sizeof(CUpti_EventDomainID) or all domains will not be returned. The value returned in *arraySizeBytes contains the number of bytes returned in domainArray.
- arraySizeBytes: The size of domainArray in bytes, and returns the number of bytes written to domainArray
- domainArray: Returns all the event domains Starting with CUDA 13.0, this function is unsupported and should not be used. It always returns the error code ErrLegacyProfilerNotSupported
Errors:
- ErrInvalidParameter: if arraySizeBytes or domainArray are NULL
Wraps cuptiEnumEventDomains.
func EnumMetrics
deprecated
EnumMetrics gets all the metrics available on any device.
Returns the metric IDs in metricArray for all CUDA-capable devices. The size of the metricArray buffer is given by *arraySizeBytes. The size of the metricArray buffer must be at least numMetrics * sizeof(CUpti_MetricID) or all metric IDs will not be returned. The value returned in *arraySizeBytes contains the number of bytes returned in metricArray.
- arraySizeBytes: The size of metricArray in bytes, and returns the number of bytes written to metricArray
- metricArray: Returns the IDs of the metrics
Errors:
- ErrInvalidParameter: if arraySizeBytes or metricArray are NULL
Wraps cuptiEnumMetrics.
Deprecated: Deprecated by NVIDIA. Unsupported since CUDA 13.0, where it always returns ErrLegacyProfilerNotSupported; use the range profiler API, starting with RangeProfilerEnable.
func EventDomainEnumEvents
deprecated
EventDomainEnumEvents gets the events in a domain.
Returns the event IDs in eventArray for a domain. The size of the eventArray buffer is given by *arraySizeBytes. The size of the eventArray buffer must be at least numdomainevents * sizeof(CUpti_EventID) or else all events will not be returned. The value returned in *arraySizeBytes contains the number of bytes returned in eventArray.
- eventDomain: ID of the event domain
- arraySizeBytes: The size of eventArray in bytes, and returns the number of bytes written to eventArray
- eventArray: Returns the IDs of the events in the domain
Errors:
- ErrNotInitialized
- ErrInvalidEventDomainId
- ErrInvalidParameter: if arraySizeBytes or eventArray are NULL
Wraps cuptiEventDomainEnumEvents.
Deprecated: Deprecated by NVIDIA. Unsupported since CUDA 13.0, where it always returns ErrLegacyProfilerNotSupported; use the range profiler API, starting with RangeProfilerEnable.
func EventDomainGetAttribute ¶
func EventDomainGetAttribute(eventDomain uint32, attrib EventDomainAttribute, valueSize *uint, value unsafe.Pointer) error
EventDomainGetAttribute reads an event domain attribute.
Returns an event domain attribute in *value. The size of the value buffer is given by *valueSize. The value returned in *valueSize contains the number of bytes returned in value.
If the attribute value is a c-string that is longer than *valueSize, then only the first *valueSize characters will be returned and there will be no terminating null byte.
- eventDomain: ID of the event domain
- attrib: The event domain attribute to read
- valueSize: The size of the value buffer in bytes, and returns the number of bytes written to value
- value: Returns the attribute's value Starting with CUDA 13.0, this function is unsupported and should not be used. It always returns the error code ErrLegacyProfilerNotSupported
Errors:
- ErrNotInitialized
- ErrInvalidEventDomainId
- ErrInvalidParameter: if valueSize or value is NULL, or if attrib is not an event domain attribute
- ErrParameterSizeNotSufficient: For non-c-string attribute values, indicates that the value buffer is too small to hold the attribute value.
Wraps cuptiEventDomainGetAttribute.
func EventDomainGetNumEvents
deprecated
EventDomainGetNumEvents gets number of events in a domain.
Returns the number of events for a domain.
- eventDomain: ID of the event domain
- numEvents: Returns the number of events in the domain
Errors:
- ErrNotInitialized
- ErrInvalidEventDomainId
- ErrInvalidParameter: if numEvents is NULL
Wraps cuptiEventDomainGetNumEvents.
Deprecated: Deprecated by NVIDIA. Unsupported since CUDA 13.0, where it always returns ErrLegacyProfilerNotSupported; use the range profiler API, starting with RangeProfilerEnable.
func EventGetAttribute
deprecated
func EventGetAttribute(event uint32, attrib EventAttribute, valueSize *uint, value unsafe.Pointer) error
EventGetAttribute gets an event attribute.
Returns an event attribute in *value. The size of the value buffer is given by *valueSize. The value returned in *valueSize contains the number of bytes returned in value.
If the attribute value is a c-string that is longer than *valueSize, then only the first *valueSize characters will be returned and there will be no terminating null byte.
- event: ID of the event
- attrib: The event attribute to read
- valueSize: The size of the value buffer in bytes, and returns the number of bytes written to value
- value: Returns the attribute's value
Errors:
- ErrNotInitialized
- ErrInvalidEventId
- ErrInvalidParameter: if valueSize or value is NULL, or if attrib is not an event attribute
- ErrParameterSizeNotSufficient: For non-c-string attribute values, indicates that the value buffer is too small to hold the attribute value.
Wraps cuptiEventGetAttribute.
Deprecated: Deprecated by NVIDIA. Unsupported since CUDA 13.0, where it always returns ErrLegacyProfilerNotSupported; use the range profiler API, starting with RangeProfilerEnable.
func EventGetIdFromName
deprecated
EventGetIdFromName finds an event by name.
Find an event by name and return the event ID.
- device: CUDA device
- eventName: The name of the event to find
- event: Returns the ID of the found event or undefined if unable to find the event
Errors:
- ErrNotInitialized
- ErrInvalidDevice
- ErrInvalidEventName: if unable to find an event with name eventName. In this case the result is undefined
- ErrInvalidParameter: if eventName or event are NULL
Wraps cuptiEventGetIdFromName.
Deprecated: Deprecated by NVIDIA. Unsupported since CUDA 13.0, where it always returns ErrLegacyProfilerNotSupported; use the range profiler API, starting with RangeProfilerEnable.
func EventGroupSetDisable
deprecated
func EventGroupSetDisable(eventGroupSet *EventGroupSet) error
EventGroupSetDisable disables an event group set.
Disable a set of event groups. Disabling a set of event groups stops collection of events contained in the groups. and other event groups may remain enabled.
- eventGroupSet: The pointer to the event group set
Errors:
- ErrNotInitialized
- ErrHardware
- ErrInvalidParameter: if eventGroupSet is NULL
Wraps cuptiEventGroupSetDisable.
Deprecated: Deprecated by NVIDIA. Unsupported since CUDA 13.0, where it always returns ErrLegacyProfilerNotSupported; use the range profiler API, starting with RangeProfilerEnable.
func EventGroupSetEnable
deprecated
func EventGroupSetEnable(eventGroupSet *EventGroupSet) error
EventGroupSetEnable enables an event group set.
Enable a set of event groups. Enabling a set of event groups zeros the value of all the events in all the groups and then starts collection of those events.
- eventGroupSet: The pointer to the event group set
Errors:
- ErrNotInitialized
- ErrHardware
- ErrNotReady: if eventGroup does not contain any events
- ErrNotCompatible: if eventGroup cannot be enabled due to other already enabled event groups
- ErrInvalidParameter: if eventGroupSet is NULL
- ErrHardwareBusy: if other client is profiling and hardware is busy
Wraps cuptiEventGroupSetEnable.
Deprecated: Deprecated by NVIDIA. Unsupported since CUDA 13.0, where it always returns ErrLegacyProfilerNotSupported; use the range profiler API, starting with RangeProfilerEnable.
func EventGroupSetsDestroy
deprecated
func EventGroupSetsDestroy(eventGroupSets *EventGroupSets) error
EventGroupSetsDestroy destroys a event group sets object.
Destroy a EventGroupSets object.
- eventGroupSets: The object to destroy
Errors:
- ErrNotInitialized
- ErrInvalidOperation: if any of the event groups contained in the sets is enabled
- ErrInvalidParameter: if eventGroupSets is NULL
Wraps cuptiEventGroupSetsDestroy.
Deprecated: Deprecated by NVIDIA. Unsupported since CUDA 13.0, where it always returns ErrLegacyProfilerNotSupported; use the range profiler API, starting with RangeProfilerEnable.
func Finalize ¶
func Finalize() error
Finalize detaches CUPTI from the running process.
This API detaches the CUPTI from the running process. It destroys and cleans up all the resources associated with CUPTI in the current process. After CUPTI detaches from the process, the process will keep on running with no CUPTI attached to it. For safe operation of the API, it is recommended this API is invoked from the exit callsite of any of the CUDA Driver or Runtime API. Otherwise CUPTI client needs to make sure that required CUDA synchronization and CUPTI activity buffer flush is done before calling the API.
Wraps cuptiFinalize.
func GetAutoBoostState ¶
func GetAutoBoostState(context driver.Context, state *ActivityAutoBoostState) error
GetAutoBoostState gets auto boost state.
The profiling results can be inconsistent in case auto boost is enabled. CUPTI tries to disable auto boost while profiling. It can fail to disable in cases where user does not have the permissions or CUDA_AUTO_BOOST env variable is set. The function can be used to query whether auto boost is enabled.
- context: A valid driver.Context
- state: A pointer to ActivityAutoBoostState structure which contains the current state and the id of the process that has requested the current state
Errors:
- ErrInvalidParameter: if driver.Context or state is NULL
- ErrNotSupported: Indicates that the device does not support auto boost
- ErrUnknown: an internal error occurred
Wraps cuptiGetAutoBoostState.
func GetCallbackName ¶
func GetCallbackName(domain CallbackDomain, cbid uint32) (string, error)
GetCallbackName gets the name of a callback for a specific domain and callback ID.
Returns a pointer to the name c_string in **name.
Note: Names are available only for the DRIVER and RUNTIME domains.
- domain: The domain of the callback
- cbid: The ID of the callback
- name: Returns pointer to the name string on success, NULL otherwise
Errors:
- ErrInvalidParameter: if name is NULL, or if domain or cbid is invalid.
Wraps cuptiGetCallbackName.
func GetContextId ¶
GetContextId gets the ID of a context.
- context: The context
- contextId: Returns a process-unique ID for the context
Errors:
- ErrInvalidContext: The context is NULL or not valid.
- ErrInvalidParameter: if contextId is NULL
- ErrNotInitialized
Wraps cuptiGetContextId.
func GetCubinCrc ¶
func GetCubinCrc(pParams *GetCubinCrcParams) error
GetCubinCrc gets the CRC of cubin.
This function returns the CRC of provided cubin binary.
- pParams: A pointer to GetCubinCrcParams
Errors:
- ErrInvalidParameter: if parameter cubin is NULL or provided cubinSize is zero or size field is not set.
Wraps cuptiGetCubinCrc.
func GetCudaEventId ¶
GetCudaEventId gets the unique ID of a CUDA event.
Returns the unique ID of the CUDA event. The ID matches the eventId field reported in ActivityCudaEvent3 activity records.
Requires CUDA 13.4 or later.
- event: The CUDA event
- pEventId: Returns the unique ID of the event
Errors:
- ErrInvalidParameter: if event or pEventId is NULL
- ErrNotInitialized
Wraps cuptiGetCudaEventId.
func GetDeviceId ¶
GetDeviceId gets the ID of a device.
If context is NULL, returns the ID of the device that contains the currently active context. If context is non-NULL, returns the ID of the device which contains that context. Operates in a similar manner to cudaGetDevice() or cuCtxGetDevice() but may be called from within callback functions.
- context: The context, or NULL to indicate the current context
- deviceId: Returns the ID of the device that is current for the calling thread
Errors:
- ErrInvalidDevice: if unable to get device ID
- ErrInvalidParameter: if deviceId is NULL
- ErrNotInitialized
Wraps cuptiGetDeviceId.
func GetGraphExecId ¶
GetGraphExecId gets the unique ID of executable graph.
Returns the unique ID of executable CUDA graph.
Requires CUDA 12.3 or later.
- graphExec: The executable graph
- pId: Returns the unique ID of the executable graph
Errors:
- ErrInvalidParameter: if graph is NULL
- ErrNotInitialized
Wraps cuptiGetGraphExecId.
func GetGraphId ¶
GetGraphId gets the unique ID of graph.
Returns the unique ID of CUDA graph.
- graph: The graph
- pId: Returns the unique ID of the graph
Errors:
- ErrInvalidParameter: if graph is NULL
- ErrNotInitialized
Wraps cuptiGetGraphId.
func GetGraphNodeId ¶
GetGraphNodeId gets the unique ID of a graph node.
Returns the unique ID of the CUDA graph node.
- node: The graph node
- nodeId: Returns the unique ID of the node
Errors:
- ErrInvalidParameter: if node is NULL
- ErrNotInitialized
Wraps cuptiGetGraphNodeId.
func GetLastError ¶
func GetLastError() error
GetLastError returns the last error from a cupti call or callback.
Returns the last error that has been produced by any of the cupti api calls or the callback in the same host thread and resets it to Success.
Wraps cuptiGetLastError.
func GetNumEventDomains
deprecated
GetNumEventDomains gets the number of event domains available on any device.
Returns the total number of event domains available on any CUDA-capable device.
- numDomains: Returns the number of domains
Errors:
- ErrInvalidParameter: if numDomains is NULL
Wraps cuptiGetNumEventDomains.
Deprecated: Deprecated by NVIDIA. Unsupported since CUDA 13.0, where it always returns ErrLegacyProfilerNotSupported; use the range profiler API, starting with RangeProfilerEnable.
func GetNumMetrics
deprecated
GetNumMetrics gets the total number of metrics available on any device.
Returns the total number of metrics available on any CUDA-capable devices.
- numMetrics: Returns the number of metrics
Errors:
- ErrInvalidParameter: if numMetrics is NULL
Wraps cuptiGetNumMetrics.
Deprecated: Deprecated by NVIDIA. Unsupported since CUDA 13.0, where it always returns ErrLegacyProfilerNotSupported; use the range profiler API, starting with RangeProfilerEnable.
func GetSassToSourceCorrelation ¶
func GetSassToSourceCorrelation(pParams *GetSassToSourceCorrelationParams) error
GetSassToSourceCorrelation SASS to Source correlation.
It is expected from user to free allocated memory for fileName and dirName after use.
- pParams: A pointer to GetSassToSourceCorrelationParams
Errors:
- ErrInvalidModule: provided cubin is invalid.
- ErrInvalidParameter: if either of the parameters cubin or functionName is NULL or cubinSize is zero or size field is not set correctly.
- ErrUnknown: an internal error occurred. This error code is also used for cases when the function is not present in the module. A better error code will be returned in the future release.
Wraps cuptiGetSassToSourceCorrelation.
func GetStreamId
deprecated
GetStreamId gets the ID of a stream.
The stream ID is unique within a context (i.e. all streams within a context will have unique stream IDs).
- context: If non-NULL then the stream is checked to ensure that it belongs to this context. Typically this parameter should be null
- stream: The stream
- streamId: Returns a context-unique ID for the stream
Errors:
- ErrInvalidParameter: if streamId is NULL
- ErrInvalidStream: if unable to get stream ID, or if context is non-NULL and stream does not belong to the context
- ErrNotInitialized
Wraps cuptiGetStreamId.
Deprecated: Deprecated in CUDA 8.0. Use method GetStreamIdEx instead.
func GetStreamIdEx ¶
func GetStreamIdEx(context driver.Context, stream driver.Stream, perThreadStream uint8) (uint32, error)
GetStreamIdEx gets the ID of a stream.
The stream ID is unique within a context (i.e. all streams within a context will have unique stream IDs).
- context: If non-NULL then the stream is checked to ensure that it belongs to this context. Typically this parameter should be null
- stream: The stream
- perThreadStream: Flag to indicate if program is compiled for per-thread streams
- streamId: Returns a context-unique ID for the stream
Errors:
- ErrInvalidParameter: if streamId is NULL
- ErrInvalidStream: if unable to get stream ID, or if context is non-NULL and stream does not belong to the context
- ErrNotInitialized
Wraps cuptiGetStreamIdEx.
func GetThreadIdType ¶
func GetThreadIdType(type_ *ActivityThreadIdType) error
GetThreadIdType gets the thread-id type.
Returns the thread-id type used in CUPTI This API is not supported when multiple subscribers are allowed.
Errors:
- ErrInvalidParameter: if type is NULL
Wraps cuptiGetThreadIdType.
Note: NVIDIA plans to deprecate this function in a future release. The corresponding V2 activity attribute is ActivityAttrThreadIdType, which can be queried or modified via Subscriber.ActivityGetAttributeV2 and Subscriber.ActivitySetAttributeV2.
func GetTimestamp ¶
GetTimestamp gets the CUPTI timestamp.
Returns a timestamp normalized to correspond with the start and end timestamps reported in the CUPTI activity records. The timestamp is reported in nanoseconds.
- timestamp: Returns the CUPTI timestamp
Errors:
- ErrInvalidParameter: if timestamp is NULL
Wraps cuptiGetTimestamp.
Note: NVIDIA plans to deprecate this function in a future release. Use Subscriber.TimestampV2 instead.
func GetTimestampV1 ¶
GetTimestampV1 gets the CUPTI timestamp.
Returns a timestamp normalized to correspond with the start and end timestamps reported in the CUPTI activity records. The timestamp is reported in nanoseconds.
- timestamp: Returns the CUPTI timestamp
Errors:
- ErrInvalidParameter: if timestamp is NULL
Wraps cuptiGetTimestamp.
Note: NVIDIA plans to deprecate this function in a future release. Use Subscriber.TimestampV2 instead.
func GetVersion ¶
GetVersion gets the CUPTI API version.
Return the API version.
See also: CUPTI_API_VERSION
- version: Returns the version
Errors:
- ErrInvalidParameter: if version is NULL previous6.12. CUPTI SASS Metrics API next7. Data Structures
Wraps cuptiGetVersion.
func Has ¶
Has reports whether the named C symbol resolved in the loaded library, loading it first if necessary. It returns false if the library failed to load. Use it to gate on capabilities before calling into them.
func HasActivityConfigurePCSampling ¶
func HasActivityConfigurePCSampling() bool
HasActivityConfigurePCSampling reports whether cuptiActivityConfigurePCSampling resolved in the loaded library.
func HasActivityConfigureUnifiedMemoryCounter ¶
func HasActivityConfigureUnifiedMemoryCounter() bool
HasActivityConfigureUnifiedMemoryCounter reports whether cuptiActivityConfigureUnifiedMemoryCounter resolved in the loaded library.
func HasActivityDisable ¶
func HasActivityDisable() bool
HasActivityDisable reports whether cuptiActivityDisable resolved in the loaded library.
func HasActivityDisableContext ¶
func HasActivityDisableContext() bool
HasActivityDisableContext reports whether cuptiActivityDisableContext resolved in the loaded library.
func HasActivityDisableV1 ¶
func HasActivityDisableV1() bool
HasActivityDisableV1 reports whether cuptiActivityDisable resolved in the loaded library.
func HasActivityDisableV2 ¶
func HasActivityDisableV2() bool
HasActivityDisableV2 reports whether cuptiActivityDisable_v2 resolved in the loaded library.
func HasActivityEnable ¶
func HasActivityEnable() bool
HasActivityEnable reports whether cuptiActivityEnable resolved in the loaded library.
func HasActivityEnableAllSyncRecords ¶
func HasActivityEnableAllSyncRecords() bool
HasActivityEnableAllSyncRecords reports whether cuptiActivityEnableAllSyncRecords resolved in the loaded library.
func HasActivityEnableAllocationSource ¶
func HasActivityEnableAllocationSource() bool
HasActivityEnableAllocationSource reports whether cuptiActivityEnableAllocationSource resolved in the loaded library.
func HasActivityEnableAndDump ¶
func HasActivityEnableAndDump() bool
HasActivityEnableAndDump reports whether cuptiActivityEnableAndDump resolved in the loaded library.
func HasActivityEnableAndDumpV1 ¶
func HasActivityEnableAndDumpV1() bool
HasActivityEnableAndDumpV1 reports whether cuptiActivityEnableAndDump resolved in the loaded library.
func HasActivityEnableAndDumpV2 ¶
func HasActivityEnableAndDumpV2() bool
HasActivityEnableAndDumpV2 reports whether cuptiActivityEnableAndDump_v2 resolved in the loaded library.
func HasActivityEnableContext ¶
func HasActivityEnableContext() bool
HasActivityEnableContext reports whether cuptiActivityEnableContext resolved in the loaded library.
func HasActivityEnableCudaEventDeviceTimestamps ¶
func HasActivityEnableCudaEventDeviceTimestamps() bool
HasActivityEnableCudaEventDeviceTimestamps reports whether cuptiActivityEnableCudaEventDeviceTimestamps resolved in the loaded library.
func HasActivityEnableDeviceGraph ¶
func HasActivityEnableDeviceGraph() bool
HasActivityEnableDeviceGraph reports whether cuptiActivityEnableDeviceGraph resolved in the loaded library.
func HasActivityEnableDriverApi ¶
func HasActivityEnableDriverApi() bool
HasActivityEnableDriverApi reports whether cuptiActivityEnableDriverApi resolved in the loaded library.
func HasActivityEnableDriverApiV1 ¶
func HasActivityEnableDriverApiV1() bool
HasActivityEnableDriverApiV1 reports whether cuptiActivityEnableDriverApi resolved in the loaded library.
func HasActivityEnableDriverApiV2 ¶
func HasActivityEnableDriverApiV2() bool
HasActivityEnableDriverApiV2 reports whether cuptiActivityEnableDriverApi_v2 resolved in the loaded library.
func HasActivityEnableHWTrace ¶
func HasActivityEnableHWTrace() bool
HasActivityEnableHWTrace reports whether cuptiActivityEnableHWTrace resolved in the loaded library.
func HasActivityEnableLatencyTimestamps ¶
func HasActivityEnableLatencyTimestamps() bool
HasActivityEnableLatencyTimestamps reports whether cuptiActivityEnableLatencyTimestamps resolved in the loaded library.
func HasActivityEnableLaunchAttributes ¶
func HasActivityEnableLaunchAttributes() bool
HasActivityEnableLaunchAttributes reports whether cuptiActivityEnableLaunchAttributes resolved in the loaded library.
func HasActivityEnableRuntimeApi ¶
func HasActivityEnableRuntimeApi() bool
HasActivityEnableRuntimeApi reports whether cuptiActivityEnableRuntimeApi resolved in the loaded library.
func HasActivityEnableRuntimeApiV1 ¶
func HasActivityEnableRuntimeApiV1() bool
HasActivityEnableRuntimeApiV1 reports whether cuptiActivityEnableRuntimeApi resolved in the loaded library.
func HasActivityEnableRuntimeApiV2 ¶
func HasActivityEnableRuntimeApiV2() bool
HasActivityEnableRuntimeApiV2 reports whether cuptiActivityEnableRuntimeApi_v2 resolved in the loaded library.
func HasActivityEnableV1 ¶
func HasActivityEnableV1() bool
HasActivityEnableV1 reports whether cuptiActivityEnable resolved in the loaded library.
func HasActivityEnableV2 ¶
func HasActivityEnableV2() bool
HasActivityEnableV2 reports whether cuptiActivityEnable_v2 resolved in the loaded library.
func HasActivityFlush ¶
func HasActivityFlush() bool
HasActivityFlush reports whether cuptiActivityFlush resolved in the loaded library.
func HasActivityFlushAll ¶
func HasActivityFlushAll() bool
HasActivityFlushAll reports whether cuptiActivityFlushAll resolved in the loaded library.
func HasActivityFlushPeriod ¶
func HasActivityFlushPeriod() bool
HasActivityFlushPeriod reports whether cuptiActivityFlushPeriod resolved in the loaded library.
func HasActivityGetAttribute ¶
func HasActivityGetAttribute() bool
HasActivityGetAttribute reports whether cuptiActivityGetAttribute resolved in the loaded library.
func HasActivityGetAttributeV1 ¶
func HasActivityGetAttributeV1() bool
HasActivityGetAttributeV1 reports whether cuptiActivityGetAttribute resolved in the loaded library.
func HasActivityGetAttributeV2 ¶
func HasActivityGetAttributeV2() bool
HasActivityGetAttributeV2 reports whether cuptiActivityGetAttribute_v2 resolved in the loaded library.
func HasActivityGetEnabledKinds ¶
func HasActivityGetEnabledKinds() bool
HasActivityGetEnabledKinds reports whether cuptiActivityGetEnabledKinds resolved in the loaded library.
func HasActivityGetNextRecord ¶
func HasActivityGetNextRecord() bool
HasActivityGetNextRecord reports whether cuptiActivityGetNextRecord resolved in the loaded library.
func HasActivityGetNextRecordV1 ¶
func HasActivityGetNextRecordV1() bool
HasActivityGetNextRecordV1 reports whether cuptiActivityGetNextRecord resolved in the loaded library.
func HasActivityGetNextRecordV2 ¶
func HasActivityGetNextRecordV2() bool
HasActivityGetNextRecordV2 reports whether cuptiActivityGetNextRecord_v2 resolved in the loaded library.
func HasActivityGetNumDroppedRecords ¶
func HasActivityGetNumDroppedRecords() bool
HasActivityGetNumDroppedRecords reports whether cuptiActivityGetNumDroppedRecords resolved in the loaded library.
func HasActivityGetNumDroppedRecordsV1 ¶
func HasActivityGetNumDroppedRecordsV1() bool
HasActivityGetNumDroppedRecordsV1 reports whether cuptiActivityGetNumDroppedRecords resolved in the loaded library.
func HasActivityGetNumDroppedRecordsV2 ¶
func HasActivityGetNumDroppedRecordsV2() bool
HasActivityGetNumDroppedRecordsV2 reports whether cuptiActivityGetNumDroppedRecords_v2 resolved in the loaded library.
func HasActivityGetStructSize ¶
func HasActivityGetStructSize() bool
HasActivityGetStructSize reports whether cuptiActivityGetStructSize resolved in the loaded library.
func HasActivityPopExternalCorrelationId ¶
func HasActivityPopExternalCorrelationId() bool
HasActivityPopExternalCorrelationId reports whether cuptiActivityPopExternalCorrelationId resolved in the loaded library.
func HasActivityPopExternalCorrelationIdV1 ¶
func HasActivityPopExternalCorrelationIdV1() bool
HasActivityPopExternalCorrelationIdV1 reports whether cuptiActivityPopExternalCorrelationId resolved in the loaded library.
func HasActivityPopExternalCorrelationIdV2 ¶
func HasActivityPopExternalCorrelationIdV2() bool
HasActivityPopExternalCorrelationIdV2 reports whether cuptiActivityPopExternalCorrelationId_v2 resolved in the loaded library.
func HasActivityPushExternalCorrelationId ¶
func HasActivityPushExternalCorrelationId() bool
HasActivityPushExternalCorrelationId reports whether cuptiActivityPushExternalCorrelationId resolved in the loaded library.
func HasActivityPushExternalCorrelationIdV1 ¶
func HasActivityPushExternalCorrelationIdV1() bool
HasActivityPushExternalCorrelationIdV1 reports whether cuptiActivityPushExternalCorrelationId resolved in the loaded library.
func HasActivityPushExternalCorrelationIdV2 ¶
func HasActivityPushExternalCorrelationIdV2() bool
HasActivityPushExternalCorrelationIdV2 reports whether cuptiActivityPushExternalCorrelationId_v2 resolved in the loaded library.
func HasActivityRegisterCallbacks ¶
func HasActivityRegisterCallbacks() bool
HasActivityRegisterCallbacks reports whether cuptiActivityRegisterCallbacks resolved in the loaded library.
func HasActivityRegisterCallbacksV1 ¶
func HasActivityRegisterCallbacksV1() bool
HasActivityRegisterCallbacksV1 reports whether cuptiActivityRegisterCallbacks resolved in the loaded library.
func HasActivityRegisterCallbacksV2 ¶
func HasActivityRegisterCallbacksV2() bool
HasActivityRegisterCallbacksV2 reports whether cuptiActivityRegisterCallbacks_v2 resolved in the loaded library.
func HasActivityRegisterTimestampCallback ¶
func HasActivityRegisterTimestampCallback() bool
HasActivityRegisterTimestampCallback reports whether cuptiActivityRegisterTimestampCallback resolved in the loaded library.
func HasActivitySetAttribute ¶
func HasActivitySetAttribute() bool
HasActivitySetAttribute reports whether cuptiActivitySetAttribute resolved in the loaded library.
func HasActivitySetAttributeV1 ¶
func HasActivitySetAttributeV1() bool
HasActivitySetAttributeV1 reports whether cuptiActivitySetAttribute resolved in the loaded library.
func HasActivitySetAttributeV2 ¶
func HasActivitySetAttributeV2() bool
HasActivitySetAttributeV2 reports whether cuptiActivitySetAttribute_v2 resolved in the loaded library.
func HasCheckpointFree ¶
func HasCheckpointFree() bool
HasCheckpointFree reports whether cuptiCheckpointFree resolved in the loaded library.
func HasCheckpointRestore ¶
func HasCheckpointRestore() bool
HasCheckpointRestore reports whether cuptiCheckpointRestore resolved in the loaded library.
func HasCheckpointSave ¶
func HasCheckpointSave() bool
HasCheckpointSave reports whether cuptiCheckpointSave resolved in the loaded library.
func HasClockControlGetStatus ¶
func HasClockControlGetStatus() bool
HasClockControlGetStatus reports whether cuptiClockControlGetStatus resolved in the loaded library.
func HasClockControlLock ¶
func HasClockControlLock() bool
HasClockControlLock reports whether cuptiClockControlLock resolved in the loaded library.
func HasClockControlUnlock ¶
func HasClockControlUnlock() bool
HasClockControlUnlock reports whether cuptiClockControlUnlock resolved in the loaded library.
func HasComputeCapabilitySupported ¶
func HasComputeCapabilitySupported() bool
HasComputeCapabilitySupported reports whether cuptiComputeCapabilitySupported resolved in the loaded library.
func HasDeviceEnumEventDomains ¶
func HasDeviceEnumEventDomains() bool
HasDeviceEnumEventDomains reports whether cuptiDeviceEnumEventDomains resolved in the loaded library.
func HasDeviceEnumMetrics ¶
func HasDeviceEnumMetrics() bool
HasDeviceEnumMetrics reports whether cuptiDeviceEnumMetrics resolved in the loaded library.
func HasDeviceGetAttribute ¶
func HasDeviceGetAttribute() bool
HasDeviceGetAttribute reports whether cuptiDeviceGetAttribute resolved in the loaded library.
func HasDeviceGetChipName ¶
func HasDeviceGetChipName() bool
HasDeviceGetChipName reports whether cuptiDeviceGetChipName resolved in the loaded library.
func HasDeviceGetEventDomainAttribute ¶
func HasDeviceGetEventDomainAttribute() bool
HasDeviceGetEventDomainAttribute reports whether cuptiDeviceGetEventDomainAttribute resolved in the loaded library.
func HasDeviceGetNumEventDomains ¶
func HasDeviceGetNumEventDomains() bool
HasDeviceGetNumEventDomains reports whether cuptiDeviceGetNumEventDomains resolved in the loaded library.
func HasDeviceGetNumMetrics ¶
func HasDeviceGetNumMetrics() bool
HasDeviceGetNumMetrics reports whether cuptiDeviceGetNumMetrics resolved in the loaded library.
func HasDeviceSupported ¶
func HasDeviceSupported() bool
HasDeviceSupported reports whether cuptiDeviceSupported resolved in the loaded library.
func HasDeviceVirtualizationMode ¶
func HasDeviceVirtualizationMode() bool
HasDeviceVirtualizationMode reports whether cuptiDeviceVirtualizationMode resolved in the loaded library.
func HasDisableKernelReplayMode ¶
func HasDisableKernelReplayMode() bool
HasDisableKernelReplayMode reports whether cuptiDisableKernelReplayMode resolved in the loaded library.
func HasEnableAllDomains ¶
func HasEnableAllDomains() bool
HasEnableAllDomains reports whether cuptiEnableAllDomains resolved in the loaded library.
func HasEnableCallback ¶
func HasEnableCallback() bool
HasEnableCallback reports whether cuptiEnableCallback resolved in the loaded library.
func HasEnableDomain ¶
func HasEnableDomain() bool
HasEnableDomain reports whether cuptiEnableDomain resolved in the loaded library.
func HasEnableKernelReplayMode ¶
func HasEnableKernelReplayMode() bool
HasEnableKernelReplayMode reports whether cuptiEnableKernelReplayMode resolved in the loaded library.
func HasEnumEventDomains ¶
func HasEnumEventDomains() bool
HasEnumEventDomains reports whether cuptiEnumEventDomains resolved in the loaded library.
func HasEnumMetrics ¶
func HasEnumMetrics() bool
HasEnumMetrics reports whether cuptiEnumMetrics resolved in the loaded library.
func HasEventDomainEnumEvents ¶
func HasEventDomainEnumEvents() bool
HasEventDomainEnumEvents reports whether cuptiEventDomainEnumEvents resolved in the loaded library.
func HasEventDomainGetAttribute ¶
func HasEventDomainGetAttribute() bool
HasEventDomainGetAttribute reports whether cuptiEventDomainGetAttribute resolved in the loaded library.
func HasEventDomainGetNumEvents ¶
func HasEventDomainGetNumEvents() bool
HasEventDomainGetNumEvents reports whether cuptiEventDomainGetNumEvents resolved in the loaded library.
func HasEventGetAttribute ¶
func HasEventGetAttribute() bool
HasEventGetAttribute reports whether cuptiEventGetAttribute resolved in the loaded library.
func HasEventGetIdFromName ¶
func HasEventGetIdFromName() bool
HasEventGetIdFromName reports whether cuptiEventGetIdFromName resolved in the loaded library.
func HasEventGroupAddEvent ¶
func HasEventGroupAddEvent() bool
HasEventGroupAddEvent reports whether cuptiEventGroupAddEvent resolved in the loaded library.
func HasEventGroupCreate ¶
func HasEventGroupCreate() bool
HasEventGroupCreate reports whether cuptiEventGroupCreate resolved in the loaded library.
func HasEventGroupDestroy ¶
func HasEventGroupDestroy() bool
HasEventGroupDestroy reports whether cuptiEventGroupDestroy resolved in the loaded library.
func HasEventGroupDisable ¶
func HasEventGroupDisable() bool
HasEventGroupDisable reports whether cuptiEventGroupDisable resolved in the loaded library.
func HasEventGroupEnable ¶
func HasEventGroupEnable() bool
HasEventGroupEnable reports whether cuptiEventGroupEnable resolved in the loaded library.
func HasEventGroupGetAttribute ¶
func HasEventGroupGetAttribute() bool
HasEventGroupGetAttribute reports whether cuptiEventGroupGetAttribute resolved in the loaded library.
func HasEventGroupReadAllEvents ¶
func HasEventGroupReadAllEvents() bool
HasEventGroupReadAllEvents reports whether cuptiEventGroupReadAllEvents resolved in the loaded library.
func HasEventGroupReadEvent ¶
func HasEventGroupReadEvent() bool
HasEventGroupReadEvent reports whether cuptiEventGroupReadEvent resolved in the loaded library.
func HasEventGroupRemoveAllEvents ¶
func HasEventGroupRemoveAllEvents() bool
HasEventGroupRemoveAllEvents reports whether cuptiEventGroupRemoveAllEvents resolved in the loaded library.
func HasEventGroupRemoveEvent ¶
func HasEventGroupRemoveEvent() bool
HasEventGroupRemoveEvent reports whether cuptiEventGroupRemoveEvent resolved in the loaded library.
func HasEventGroupResetAllEvents ¶
func HasEventGroupResetAllEvents() bool
HasEventGroupResetAllEvents reports whether cuptiEventGroupResetAllEvents resolved in the loaded library.
func HasEventGroupSetAttribute ¶
func HasEventGroupSetAttribute() bool
HasEventGroupSetAttribute reports whether cuptiEventGroupSetAttribute resolved in the loaded library.
func HasEventGroupSetDisable ¶
func HasEventGroupSetDisable() bool
HasEventGroupSetDisable reports whether cuptiEventGroupSetDisable resolved in the loaded library.
func HasEventGroupSetEnable ¶
func HasEventGroupSetEnable() bool
HasEventGroupSetEnable reports whether cuptiEventGroupSetEnable resolved in the loaded library.
func HasEventGroupSetsCreate ¶
func HasEventGroupSetsCreate() bool
HasEventGroupSetsCreate reports whether cuptiEventGroupSetsCreate resolved in the loaded library.
func HasEventGroupSetsDestroy ¶
func HasEventGroupSetsDestroy() bool
HasEventGroupSetsDestroy reports whether cuptiEventGroupSetsDestroy resolved in the loaded library.
func HasFinalize ¶
func HasFinalize() bool
HasFinalize reports whether cuptiFinalize resolved in the loaded library.
func HasGetAutoBoostState ¶
func HasGetAutoBoostState() bool
HasGetAutoBoostState reports whether cuptiGetAutoBoostState resolved in the loaded library.
func HasGetCallbackName ¶
func HasGetCallbackName() bool
HasGetCallbackName reports whether cuptiGetCallbackName resolved in the loaded library.
func HasGetCallbackState ¶
func HasGetCallbackState() bool
HasGetCallbackState reports whether cuptiGetCallbackState resolved in the loaded library.
func HasGetContextId ¶
func HasGetContextId() bool
HasGetContextId reports whether cuptiGetContextId resolved in the loaded library.
func HasGetCubinCrc ¶
func HasGetCubinCrc() bool
HasGetCubinCrc reports whether cuptiGetCubinCrc resolved in the loaded library.
func HasGetCudaEventId ¶
func HasGetCudaEventId() bool
HasGetCudaEventId reports whether cuptiGetCudaEventId resolved in the loaded library.
func HasGetDeviceId ¶
func HasGetDeviceId() bool
HasGetDeviceId reports whether cuptiGetDeviceId resolved in the loaded library.
func HasGetEnabledCallbacks ¶
func HasGetEnabledCallbacks() bool
HasGetEnabledCallbacks reports whether cuptiGetEnabledCallbacks resolved in the loaded library.
func HasGetErrorMessage ¶
func HasGetErrorMessage() bool
HasGetErrorMessage reports whether cuptiGetErrorMessage resolved in the loaded library.
func HasGetGraphExecId ¶
func HasGetGraphExecId() bool
HasGetGraphExecId reports whether cuptiGetGraphExecId resolved in the loaded library.
func HasGetGraphId ¶
func HasGetGraphId() bool
HasGetGraphId reports whether cuptiGetGraphId resolved in the loaded library.
func HasGetGraphNodeId ¶
func HasGetGraphNodeId() bool
HasGetGraphNodeId reports whether cuptiGetGraphNodeId resolved in the loaded library.
func HasGetLastError ¶
func HasGetLastError() bool
HasGetLastError reports whether cuptiGetLastError resolved in the loaded library.
func HasGetNumEventDomains ¶
func HasGetNumEventDomains() bool
HasGetNumEventDomains reports whether cuptiGetNumEventDomains resolved in the loaded library.
func HasGetNumMetrics ¶
func HasGetNumMetrics() bool
HasGetNumMetrics reports whether cuptiGetNumMetrics resolved in the loaded library.
func HasGetResultString ¶
func HasGetResultString() bool
HasGetResultString reports whether cuptiGetResultString resolved in the loaded library.
func HasGetSassToSourceCorrelation ¶
func HasGetSassToSourceCorrelation() bool
HasGetSassToSourceCorrelation reports whether cuptiGetSassToSourceCorrelation resolved in the loaded library.
func HasGetStreamId ¶
func HasGetStreamId() bool
HasGetStreamId reports whether cuptiGetStreamId resolved in the loaded library.
func HasGetStreamIdEx ¶
func HasGetStreamIdEx() bool
HasGetStreamIdEx reports whether cuptiGetStreamIdEx resolved in the loaded library.
func HasGetThreadIdType ¶
func HasGetThreadIdType() bool
HasGetThreadIdType reports whether cuptiGetThreadIdType resolved in the loaded library.
func HasGetTimestamp ¶
func HasGetTimestamp() bool
HasGetTimestamp reports whether cuptiGetTimestamp resolved in the loaded library.
func HasGetTimestampV1 ¶
func HasGetTimestampV1() bool
HasGetTimestampV1 reports whether cuptiGetTimestamp resolved in the loaded library.
func HasGetTimestampV2 ¶
func HasGetTimestampV2() bool
HasGetTimestampV2 reports whether cuptiGetTimestamp_v2 resolved in the loaded library.
func HasGetVersion ¶
func HasGetVersion() bool
HasGetVersion reports whether cuptiGetVersion resolved in the loaded library.
func HasIsTracingSessionRunning ¶
func HasIsTracingSessionRunning() bool
HasIsTracingSessionRunning reports whether cuptiIsTracingSessionRunning resolved in the loaded library.
func HasKernelReplaySubscribeUpdate ¶
func HasKernelReplaySubscribeUpdate() bool
HasKernelReplaySubscribeUpdate reports whether cuptiKernelReplaySubscribeUpdate resolved in the loaded library.
func HasMetricCreateEventGroupSets ¶
func HasMetricCreateEventGroupSets() bool
HasMetricCreateEventGroupSets reports whether cuptiMetricCreateEventGroupSets resolved in the loaded library.
func HasMetricEnumEvents ¶
func HasMetricEnumEvents() bool
HasMetricEnumEvents reports whether cuptiMetricEnumEvents resolved in the loaded library.
func HasMetricEnumProperties ¶
func HasMetricEnumProperties() bool
HasMetricEnumProperties reports whether cuptiMetricEnumProperties resolved in the loaded library.
func HasMetricGetAttribute ¶
func HasMetricGetAttribute() bool
HasMetricGetAttribute reports whether cuptiMetricGetAttribute resolved in the loaded library.
func HasMetricGetIdFromName ¶
func HasMetricGetIdFromName() bool
HasMetricGetIdFromName reports whether cuptiMetricGetIdFromName resolved in the loaded library.
func HasMetricGetNumEvents ¶
func HasMetricGetNumEvents() bool
HasMetricGetNumEvents reports whether cuptiMetricGetNumEvents resolved in the loaded library.
func HasMetricGetNumProperties ¶
func HasMetricGetNumProperties() bool
HasMetricGetNumProperties reports whether cuptiMetricGetNumProperties resolved in the loaded library.
func HasMetricGetRequiredEventGroupSets ¶
func HasMetricGetRequiredEventGroupSets() bool
HasMetricGetRequiredEventGroupSets reports whether cuptiMetricGetRequiredEventGroupSets resolved in the loaded library.
func HasMetricGetValue ¶
func HasMetricGetValue() bool
HasMetricGetValue reports whether cuptiMetricGetValue resolved in the loaded library.
func HasMetricGetValue2 ¶
func HasMetricGetValue2() bool
HasMetricGetValue2 reports whether cuptiMetricGetValue2 resolved in the loaded library.
func HasPCSamplingDisable ¶
func HasPCSamplingDisable() bool
HasPCSamplingDisable reports whether cuptiPCSamplingDisable resolved in the loaded library.
func HasPCSamplingEnable ¶
func HasPCSamplingEnable() bool
HasPCSamplingEnable reports whether cuptiPCSamplingEnable resolved in the loaded library.
func HasPCSamplingGetConfigurationAttribute ¶
func HasPCSamplingGetConfigurationAttribute() bool
HasPCSamplingGetConfigurationAttribute reports whether cuptiPCSamplingGetConfigurationAttribute resolved in the loaded library.
func HasPCSamplingGetData ¶
func HasPCSamplingGetData() bool
HasPCSamplingGetData reports whether cuptiPCSamplingGetData resolved in the loaded library.
func HasPCSamplingGetNumStallReasons ¶
func HasPCSamplingGetNumStallReasons() bool
HasPCSamplingGetNumStallReasons reports whether cuptiPCSamplingGetNumStallReasons resolved in the loaded library.
func HasPCSamplingGetStallReasons ¶
func HasPCSamplingGetStallReasons() bool
HasPCSamplingGetStallReasons reports whether cuptiPCSamplingGetStallReasons resolved in the loaded library.
func HasPCSamplingSetConfigurationAttribute ¶
func HasPCSamplingSetConfigurationAttribute() bool
HasPCSamplingSetConfigurationAttribute reports whether cuptiPCSamplingSetConfigurationAttribute resolved in the loaded library.
func HasPCSamplingStart ¶
func HasPCSamplingStart() bool
HasPCSamplingStart reports whether cuptiPCSamplingStart resolved in the loaded library.
func HasPCSamplingStop ¶
func HasPCSamplingStop() bool
HasPCSamplingStop reports whether cuptiPCSamplingStop resolved in the loaded library.
func HasPmSamplingCounterDataGetSampleInfo ¶
func HasPmSamplingCounterDataGetSampleInfo() bool
HasPmSamplingCounterDataGetSampleInfo reports whether cuptiPmSamplingCounterDataGetSampleInfo resolved in the loaded library.
func HasPmSamplingCounterDataImageInitialize ¶
func HasPmSamplingCounterDataImageInitialize() bool
HasPmSamplingCounterDataImageInitialize reports whether cuptiPmSamplingCounterDataImageInitialize resolved in the loaded library.
func HasPmSamplingDecodeData ¶
func HasPmSamplingDecodeData() bool
HasPmSamplingDecodeData reports whether cuptiPmSamplingDecodeData resolved in the loaded library.
func HasPmSamplingDisable ¶
func HasPmSamplingDisable() bool
HasPmSamplingDisable reports whether cuptiPmSamplingDisable resolved in the loaded library.
func HasPmSamplingEnable ¶
func HasPmSamplingEnable() bool
HasPmSamplingEnable reports whether cuptiPmSamplingEnable resolved in the loaded library.
func HasPmSamplingGetCounterAvailability ¶
func HasPmSamplingGetCounterAvailability() bool
HasPmSamplingGetCounterAvailability reports whether cuptiPmSamplingGetCounterAvailability resolved in the loaded library.
func HasPmSamplingGetCounterDataInfo ¶
func HasPmSamplingGetCounterDataInfo() bool
HasPmSamplingGetCounterDataInfo reports whether cuptiPmSamplingGetCounterDataInfo resolved in the loaded library.
func HasPmSamplingGetCounterDataSize ¶
func HasPmSamplingGetCounterDataSize() bool
HasPmSamplingGetCounterDataSize reports whether cuptiPmSamplingGetCounterDataSize resolved in the loaded library.
func HasPmSamplingSetConfig ¶
func HasPmSamplingSetConfig() bool
HasPmSamplingSetConfig reports whether cuptiPmSamplingSetConfig resolved in the loaded library.
func HasPmSamplingStart ¶
func HasPmSamplingStart() bool
HasPmSamplingStart reports whether cuptiPmSamplingStart resolved in the loaded library.
func HasPmSamplingStop ¶
func HasPmSamplingStop() bool
HasPmSamplingStop reports whether cuptiPmSamplingStop resolved in the loaded library.
func HasProfilerBeginPass ¶
func HasProfilerBeginPass() bool
HasProfilerBeginPass reports whether cuptiProfilerBeginPass resolved in the loaded library.
func HasProfilerBeginSession ¶
func HasProfilerBeginSession() bool
HasProfilerBeginSession reports whether cuptiProfilerBeginSession resolved in the loaded library.
func HasProfilerCounterDataImageCalculateScratchBufferSize ¶
func HasProfilerCounterDataImageCalculateScratchBufferSize() bool
HasProfilerCounterDataImageCalculateScratchBufferSize reports whether cuptiProfilerCounterDataImageCalculateScratchBufferSize resolved in the loaded library.
func HasProfilerCounterDataImageCalculateSize ¶
func HasProfilerCounterDataImageCalculateSize() bool
HasProfilerCounterDataImageCalculateSize reports whether cuptiProfilerCounterDataImageCalculateSize resolved in the loaded library.
func HasProfilerCounterDataImageInitialize ¶
func HasProfilerCounterDataImageInitialize() bool
HasProfilerCounterDataImageInitialize reports whether cuptiProfilerCounterDataImageInitialize resolved in the loaded library.
func HasProfilerCounterDataImageInitializeScratchBuffer ¶
func HasProfilerCounterDataImageInitializeScratchBuffer() bool
HasProfilerCounterDataImageInitializeScratchBuffer reports whether cuptiProfilerCounterDataImageInitializeScratchBuffer resolved in the loaded library.
func HasProfilerDeInitialize ¶
func HasProfilerDeInitialize() bool
HasProfilerDeInitialize reports whether cuptiProfilerDeInitialize resolved in the loaded library.
func HasProfilerDeviceSupported ¶
func HasProfilerDeviceSupported() bool
HasProfilerDeviceSupported reports whether cuptiProfilerDeviceSupported resolved in the loaded library.
func HasProfilerDisableProfiling ¶
func HasProfilerDisableProfiling() bool
HasProfilerDisableProfiling reports whether cuptiProfilerDisableProfiling resolved in the loaded library.
func HasProfilerEnableProfiling ¶
func HasProfilerEnableProfiling() bool
HasProfilerEnableProfiling reports whether cuptiProfilerEnableProfiling resolved in the loaded library.
func HasProfilerEndPass ¶
func HasProfilerEndPass() bool
HasProfilerEndPass reports whether cuptiProfilerEndPass resolved in the loaded library.
func HasProfilerEndSession ¶
func HasProfilerEndSession() bool
HasProfilerEndSession reports whether cuptiProfilerEndSession resolved in the loaded library.
func HasProfilerFlushCounterData ¶
func HasProfilerFlushCounterData() bool
HasProfilerFlushCounterData reports whether cuptiProfilerFlushCounterData resolved in the loaded library.
func HasProfilerGetCounterAvailability ¶
func HasProfilerGetCounterAvailability() bool
HasProfilerGetCounterAvailability reports whether cuptiProfilerGetCounterAvailability resolved in the loaded library.
func HasProfilerHostConfigAddMetrics ¶
func HasProfilerHostConfigAddMetrics() bool
HasProfilerHostConfigAddMetrics reports whether cuptiProfilerHostConfigAddMetrics resolved in the loaded library.
func HasProfilerHostDeinitialize ¶
func HasProfilerHostDeinitialize() bool
HasProfilerHostDeinitialize reports whether cuptiProfilerHostDeinitialize resolved in the loaded library.
func HasProfilerHostEvaluateToGpuValues ¶
func HasProfilerHostEvaluateToGpuValues() bool
HasProfilerHostEvaluateToGpuValues reports whether cuptiProfilerHostEvaluateToGpuValues resolved in the loaded library.
func HasProfilerHostGetBaseMetrics ¶
func HasProfilerHostGetBaseMetrics() bool
HasProfilerHostGetBaseMetrics reports whether cuptiProfilerHostGetBaseMetrics resolved in the loaded library.
func HasProfilerHostGetConfigImage ¶
func HasProfilerHostGetConfigImage() bool
HasProfilerHostGetConfigImage reports whether cuptiProfilerHostGetConfigImage resolved in the loaded library.
func HasProfilerHostGetConfigImageSize ¶
func HasProfilerHostGetConfigImageSize() bool
HasProfilerHostGetConfigImageSize reports whether cuptiProfilerHostGetConfigImageSize resolved in the loaded library.
func HasProfilerHostGetMaxNumHardwareMetricsPerPass ¶
func HasProfilerHostGetMaxNumHardwareMetricsPerPass() bool
HasProfilerHostGetMaxNumHardwareMetricsPerPass reports whether cuptiProfilerHostGetMaxNumHardwareMetricsPerPass resolved in the loaded library.
func HasProfilerHostGetMetricProperties ¶
func HasProfilerHostGetMetricProperties() bool
HasProfilerHostGetMetricProperties reports whether cuptiProfilerHostGetMetricProperties resolved in the loaded library.
func HasProfilerHostGetMetricsInSinglePassSet ¶
func HasProfilerHostGetMetricsInSinglePassSet() bool
HasProfilerHostGetMetricsInSinglePassSet reports whether cuptiProfilerHostGetMetricsInSinglePassSet resolved in the loaded library.
func HasProfilerHostGetNumOfPasses ¶
func HasProfilerHostGetNumOfPasses() bool
HasProfilerHostGetNumOfPasses reports whether cuptiProfilerHostGetNumOfPasses resolved in the loaded library.
func HasProfilerHostGetRangeName ¶
func HasProfilerHostGetRangeName() bool
HasProfilerHostGetRangeName reports whether cuptiProfilerHostGetRangeName resolved in the loaded library.
func HasProfilerHostGetSinglePassSets ¶
func HasProfilerHostGetSinglePassSets() bool
HasProfilerHostGetSinglePassSets reports whether cuptiProfilerHostGetSinglePassSets resolved in the loaded library.
func HasProfilerHostGetSubMetrics ¶
func HasProfilerHostGetSubMetrics() bool
HasProfilerHostGetSubMetrics reports whether cuptiProfilerHostGetSubMetrics resolved in the loaded library.
func HasProfilerHostGetSupportedChips ¶
func HasProfilerHostGetSupportedChips() bool
HasProfilerHostGetSupportedChips reports whether cuptiProfilerHostGetSupportedChips resolved in the loaded library.
func HasProfilerHostInitialize ¶
func HasProfilerHostInitialize() bool
HasProfilerHostInitialize reports whether cuptiProfilerHostInitialize resolved in the loaded library.
func HasProfilerHostSetDevicePartitionInfo ¶
func HasProfilerHostSetDevicePartitionInfo() bool
HasProfilerHostSetDevicePartitionInfo reports whether cuptiProfilerHostSetDevicePartitionInfo resolved in the loaded library.
func HasProfilerInitialize ¶
func HasProfilerInitialize() bool
HasProfilerInitialize reports whether cuptiProfilerInitialize resolved in the loaded library.
func HasProfilerIsPassCollected ¶
func HasProfilerIsPassCollected() bool
HasProfilerIsPassCollected reports whether cuptiProfilerIsPassCollected resolved in the loaded library.
func HasProfilerPopRange ¶
func HasProfilerPopRange() bool
HasProfilerPopRange reports whether cuptiProfilerPopRange resolved in the loaded library.
func HasProfilerPushRange ¶
func HasProfilerPushRange() bool
HasProfilerPushRange reports whether cuptiProfilerPushRange resolved in the loaded library.
func HasProfilerSetConfig ¶
func HasProfilerSetConfig() bool
HasProfilerSetConfig reports whether cuptiProfilerSetConfig resolved in the loaded library.
func HasProfilerUnsetConfig ¶
func HasProfilerUnsetConfig() bool
HasProfilerUnsetConfig reports whether cuptiProfilerUnsetConfig resolved in the loaded library.
func HasRangeProfilerCounterDataGetRangeInfo ¶
func HasRangeProfilerCounterDataGetRangeInfo() bool
HasRangeProfilerCounterDataGetRangeInfo reports whether cuptiRangeProfilerCounterDataGetRangeInfo resolved in the loaded library.
func HasRangeProfilerCounterDataImageInitialize ¶
func HasRangeProfilerCounterDataImageInitialize() bool
HasRangeProfilerCounterDataImageInitialize reports whether cuptiRangeProfilerCounterDataImageInitialize resolved in the loaded library.
func HasRangeProfilerDecodeData ¶
func HasRangeProfilerDecodeData() bool
HasRangeProfilerDecodeData reports whether cuptiRangeProfilerDecodeData resolved in the loaded library.
func HasRangeProfilerDisable ¶
func HasRangeProfilerDisable() bool
HasRangeProfilerDisable reports whether cuptiRangeProfilerDisable resolved in the loaded library.
func HasRangeProfilerEnable ¶
func HasRangeProfilerEnable() bool
HasRangeProfilerEnable reports whether cuptiRangeProfilerEnable resolved in the loaded library.
func HasRangeProfilerGetCounterDataInfo ¶
func HasRangeProfilerGetCounterDataInfo() bool
HasRangeProfilerGetCounterDataInfo reports whether cuptiRangeProfilerGetCounterDataInfo resolved in the loaded library.
func HasRangeProfilerGetCounterDataSize ¶
func HasRangeProfilerGetCounterDataSize() bool
HasRangeProfilerGetCounterDataSize reports whether cuptiRangeProfilerGetCounterDataSize resolved in the loaded library.
func HasRangeProfilerGetDevicePartitionInfo ¶
func HasRangeProfilerGetDevicePartitionInfo() bool
HasRangeProfilerGetDevicePartitionInfo reports whether cuptiRangeProfilerGetDevicePartitionInfo resolved in the loaded library.
func HasRangeProfilerPopRange ¶
func HasRangeProfilerPopRange() bool
HasRangeProfilerPopRange reports whether cuptiRangeProfilerPopRange resolved in the loaded library.
func HasRangeProfilerPushRange ¶
func HasRangeProfilerPushRange() bool
HasRangeProfilerPushRange reports whether cuptiRangeProfilerPushRange resolved in the loaded library.
func HasRangeProfilerSetConfig ¶
func HasRangeProfilerSetConfig() bool
HasRangeProfilerSetConfig reports whether cuptiRangeProfilerSetConfig resolved in the loaded library.
func HasRangeProfilerStart ¶
func HasRangeProfilerStart() bool
HasRangeProfilerStart reports whether cuptiRangeProfilerStart resolved in the loaded library.
func HasRangeProfilerStop ¶
func HasRangeProfilerStop() bool
HasRangeProfilerStop reports whether cuptiRangeProfilerStop resolved in the loaded library.
func HasRegisterComputeCrcCallback ¶
func HasRegisterComputeCrcCallback() bool
HasRegisterComputeCrcCallback reports whether cuptiRegisterComputeCrcCallback resolved in the loaded library.
func HasSassMetricsDisable ¶
func HasSassMetricsDisable() bool
HasSassMetricsDisable reports whether cuptiSassMetricsDisable resolved in the loaded library.
func HasSassMetricsEnable ¶
func HasSassMetricsEnable() bool
HasSassMetricsEnable reports whether cuptiSassMetricsEnable resolved in the loaded library.
func HasSassMetricsFlushData ¶
func HasSassMetricsFlushData() bool
HasSassMetricsFlushData reports whether cuptiSassMetricsFlushData resolved in the loaded library.
func HasSassMetricsGetDataProperties ¶
func HasSassMetricsGetDataProperties() bool
HasSassMetricsGetDataProperties reports whether cuptiSassMetricsGetDataProperties resolved in the loaded library.
func HasSassMetricsGetMetrics ¶
func HasSassMetricsGetMetrics() bool
HasSassMetricsGetMetrics reports whether cuptiSassMetricsGetMetrics resolved in the loaded library.
func HasSassMetricsGetNumOfMetrics ¶
func HasSassMetricsGetNumOfMetrics() bool
HasSassMetricsGetNumOfMetrics reports whether cuptiSassMetricsGetNumOfMetrics resolved in the loaded library.
func HasSassMetricsGetProperties ¶
func HasSassMetricsGetProperties() bool
HasSassMetricsGetProperties reports whether cuptiSassMetricsGetProperties resolved in the loaded library.
func HasSassMetricsSetConfig ¶
func HasSassMetricsSetConfig() bool
HasSassMetricsSetConfig reports whether cuptiSassMetricsSetConfig resolved in the loaded library.
func HasSassMetricsUnsetConfig ¶
func HasSassMetricsUnsetConfig() bool
HasSassMetricsUnsetConfig reports whether cuptiSassMetricsUnsetConfig resolved in the loaded library.
func HasSetEventCollectionMode ¶
func HasSetEventCollectionMode() bool
HasSetEventCollectionMode reports whether cuptiSetEventCollectionMode resolved in the loaded library.
func HasSetThreadIdType ¶
func HasSetThreadIdType() bool
HasSetThreadIdType reports whether cuptiSetThreadIdType resolved in the loaded library.
func HasSubscribe ¶
func HasSubscribe() bool
HasSubscribe reports whether cuptiSubscribe resolved in the loaded library.
func HasSubscribeV1 ¶
func HasSubscribeV1() bool
HasSubscribeV1 reports whether cuptiSubscribe resolved in the loaded library.
func HasSubscribeV2 ¶
func HasSubscribeV2() bool
HasSubscribeV2 reports whether cuptiSubscribe_v2 resolved in the loaded library.
func HasSupportedDomains ¶
func HasSupportedDomains() bool
HasSupportedDomains reports whether cuptiSupportedDomains resolved in the loaded library.
func HasUnsubscribe ¶
func HasUnsubscribe() bool
HasUnsubscribe reports whether cuptiUnsubscribe resolved in the loaded library.
func InvalidContextId ¶
func InvalidContextId() uint32
InvalidContextId returns the value of CUPTI_INVALID_CONTEXT_ID in the loaded library, which depends on the version GetVersion reports:
- 0xFFFFFFFF before CUDA 13.2
- 0 from CUDA 13.2
It loads the library if necessary. When no library loads, or the library reports no version, it returns the oldest release's value.
func InvalidStreamId ¶
func InvalidStreamId() uint32
InvalidStreamId returns the value of CUPTI_INVALID_STREAM_ID in the loaded library, which depends on the version GetVersion reports:
- 0xFFFFFFFF before CUDA 13.2
- 0 from CUDA 13.2
It loads the library if necessary. When no library loads, or the library reports no version, it returns the oldest release's value.
func IsTracingSessionRunning ¶
IsTracingSessionRunning checks whether a CUPTI tracing session is still running.
This API returns true if a CUPTI library is already loaded by another CUPTI user by using any CUPTI API. This API returns false when CUPTI is finalized and there is no CUPTI currently loaded and active. Can be used to determine if it is safe to unload your CUPTI based tool. Note that this API itself does not load the CUPTI library, it merely checks if a CUPTI library is already loaded by another CUPTI user.
Requires CUDA 13.2 or later.
- isRunning: Returns whether the tracing session is still running
Errors:
- ErrInvalidParameter: if isRunning is NULL.
- ErrUnknown: if an unknown error occurred.
Wraps cuptiIsTracingSessionRunning.
func KernelReplaySubscribeUpdate
deprecated
KernelReplaySubscribeUpdate subscribes to kernel replay updates.
When subscribed, the function pointer passed in will be called each time a kernel run is finished during kernel replay. Previously subscribed function pointer will be replaced. Pass in NULL as the function pointer unsubscribes the update.
- updateFunc: The update function pointer (see KernelReplayUpdateFunc)
- customData: Pointer to any custom data
Wraps cuptiKernelReplaySubscribeUpdate.
Deprecated: Deprecated by NVIDIA. Unsupported since CUDA 13.0, where it always returns ErrLegacyProfilerNotSupported; use the range profiler API, starting with RangeProfilerEnable.
func Load ¶
Load opens the shared library from path, or from the default search list when path is empty, and binds all symbols. Callers that need to direct loading should call Load before any other function; otherwise the first call loads from the default search list.
Load is idempotent: calling it again with the same path, or with an empty path, returns nil. Calling it with a different path after a successful load returns *LibraryConflictError rather than replacing the library. After a failed load, Load retries.
func Loaded ¶
func Loaded() bool
Loaded reports whether the library is currently loaded. It does not trigger a load.
func MetricEnumEvents
deprecated
MetricEnumEvents gets the events required to calculating a metric.
Gets the event IDs in eventIdArray required to calculate a metric. The size of the eventIdArray buffer is given by *eventIdArraySizeBytes and must be at least numEvents * sizeof(CUpti_EventID) or all events will not be returned. The value returned in *eventIdArraySizeBytes contains the number of bytes returned in eventIdArray.
- metric: ID of the metric
- eventIdArraySizeBytes: The size of eventIdArray in bytes, and returns the number of bytes written to eventIdArray
- eventIdArray: Returns the IDs of the events required to calculate metric
Errors:
- ErrNotInitialized
- ErrInvalidMetricId
- ErrInvalidParameter: if eventIdArraySizeBytes or eventIdArray are NULL.
Wraps cuptiMetricEnumEvents.
Deprecated: Deprecated by NVIDIA. Unsupported since CUDA 13.0, where it always returns ErrLegacyProfilerNotSupported; use the range profiler API, starting with RangeProfilerEnable.
func MetricEnumProperties
deprecated
func MetricEnumProperties(metric uint32, propIdArraySizeBytes *uint, propIdArray *MetricPropertyID) error
MetricEnumProperties gets the properties required to calculating a metric.
Gets the property IDs in propIdArray required to calculate a metric. The size of the propIdArray buffer is given by *propIdArraySizeBytes and must be at least numProp * sizeof(DeviceAttribute) or all properties will not be returned. The value returned in *propIdArraySizeBytes contains the number of bytes returned in propIdArray.
- metric: ID of the metric
- propIdArraySizeBytes: The size of propIdArray in bytes, and returns the number of bytes written to propIdArray
- propIdArray: Returns the IDs of the properties required to calculate metric
Errors:
- ErrNotInitialized
- ErrInvalidMetricId
- ErrInvalidParameter: if propIdArraySizeBytes or propIdArray are NULL.
Wraps cuptiMetricEnumProperties.
Deprecated: Deprecated by NVIDIA. Unsupported since CUDA 13.0, where it always returns ErrLegacyProfilerNotSupported; use the range profiler API, starting with RangeProfilerEnable.
func MetricGetAttribute
deprecated
func MetricGetAttribute(metric uint32, attrib MetricAttribute, valueSize *uint, value unsafe.Pointer) error
MetricGetAttribute gets a metric attribute.
Returns a metric attribute in *value. The size of the value buffer is given by *valueSize. The value returned in *valueSize contains the number of bytes returned in value.
If the attribute value is a c-string that is longer than *valueSize, then only the first *valueSize characters will be returned and there will be no terminating null byte.
- metric: ID of the metric
- attrib: The metric attribute to read
- valueSize: The size of the value buffer in bytes, and returns the number of bytes written to value
- value: Returns the attribute's value
Errors:
- ErrNotInitialized
- ErrInvalidMetricId
- ErrInvalidParameter: if valueSize or value is NULL, or if attrib is not a metric attribute
- ErrParameterSizeNotSufficient: For non-c-string attribute values, indicates that the value buffer is too small to hold the attribute value.
Wraps cuptiMetricGetAttribute.
Deprecated: Deprecated by NVIDIA. Unsupported since CUDA 13.0, where it always returns ErrLegacyProfilerNotSupported; use the range profiler API, starting with RangeProfilerEnable.
func MetricGetIdFromName
deprecated
MetricGetIdFromName finds an metric by name.
Find a metric by name and return the metric ID.
- device: The CUDA device
- metricName: The name of metric to find
- metric: Returns the ID of the found metric or undefined if unable to find the metric
Errors:
- ErrNotInitialized
- ErrInvalidDevice
- ErrInvalidMetricName: if unable to find a metric with name metricName. In this case the result is undefined
- ErrInvalidParameter: if metricName or metric are NULL.
Wraps cuptiMetricGetIdFromName.
Deprecated: Deprecated by NVIDIA. Unsupported since CUDA 13.0, where it always returns ErrLegacyProfilerNotSupported; use the range profiler API, starting with RangeProfilerEnable.
func MetricGetNumEvents
deprecated
MetricGetNumEvents gets number of events required to calculate a metric.
Returns the number of events that are required to calculate a metric.
- metric: ID of the metric
- numEvents: Returns the number of events required for the metric
Errors:
- ErrNotInitialized
- ErrInvalidMetricId
- ErrInvalidParameter: if numEvents is NULL
Wraps cuptiMetricGetNumEvents.
Deprecated: Deprecated by NVIDIA. Unsupported since CUDA 13.0, where it always returns ErrLegacyProfilerNotSupported; use the range profiler API, starting with RangeProfilerEnable.
func MetricGetNumProperties
deprecated
MetricGetNumProperties gets number of properties required to calculate a metric.
Returns the number of properties that are required to calculate a metric.
- metric: ID of the metric
- numProp: Returns the number of properties required for the metric
Errors:
- ErrNotInitialized
- ErrInvalidMetricId
- ErrInvalidParameter: if numProp is NULL
Wraps cuptiMetricGetNumProperties.
Deprecated: Deprecated by NVIDIA. Unsupported since CUDA 13.0, where it always returns ErrLegacyProfilerNotSupported; use the range profiler API, starting with RangeProfilerEnable.
func MetricGetValue
deprecated
func MetricGetValue(device Device, metric uint32, eventIdArray []uint32, eventValueArray []uint64, timeDuration uint64) ([1]uint64, error)
MetricGetValue calculates the value for a metric.
Use the events collected for a metric to calculate the metric value. Metric value evaluation depends on the evaluation mode MetricEvaluationMode that the metric supports. If a metric has evaluation mode as MetricEvaluationModePerInstance, then it assumes that the input event value is for one domain instance. If a metric has evaluation mode as MetricEvaluationModeAggregate, it assumes that input event values are normalized to represent all domain instances on a device. For the most accurate metric collection, the events required for the metric should be collected for all profiled domain instances. For example, to collect all instances of an event, set the EventGroupAttrProfileAllDomainInstances attribute on the group containing the event to 1. The normalized value for the event is then: (sum_event_values * totalInstanceCount) / instanceCount, where sum_event_values is the summation of the event values across all profiled domain instances, totalInstanceCount is obtained from querying EventDomainAttrTotalInstanceCount and instanceCount is obtained from querying EventGroupAttrInstanceCount (or EventDomainAttrInstanceCount).
- device: The CUDA device that the metric is being calculated for
- metric: The metric ID
- eventIdArray: The event IDs required to calculate metric
- eventValueArray: The normalized event values required to calculate metric. The values must be order to match the order of events in eventIdArray
- timeDuration: The duration over which the events were collected, in ns
- metricValue: Returns the value for the metric
Errors:
- ErrNotInitialized
- ErrInvalidMetricId
- ErrInvalidOperation
- ErrParameterSizeNotSufficient: if the eventIdArray does not contain all the events needed for metric
- ErrInvalidEventValue: if any of the event values required for the metric is CUPTI_EVENT_OVERFLOW
- ErrInvalidMetricValue: if the computed metric value cannot be represented in the metric's value type. For example, if the metric value type is unsigned and the computed metric value is negative
- ErrInvalidParameter: if metricValue, eventIdArray or eventValueArray is NULL
Wraps cuptiMetricGetValue.
Deprecated: Deprecated by NVIDIA. Unsupported since CUDA 13.0, where it always returns ErrLegacyProfilerNotSupported; use the range profiler API, starting with RangeProfilerEnable.
func MetricGetValue2
deprecated
func MetricGetValue2(metric uint32, eventIdArray []uint32, eventValueArray []uint64, propIdArray []MetricPropertyID, propValueArray []uint64) ([1]uint64, error)
MetricGetValue2 calculates the value for a metric.
Use the events and properties collected for a metric to calculate the metric value. Metric value evaluation depends on the evaluation mode MetricEvaluationMode that the metric supports. If a metric has evaluation mode as MetricEvaluationModePerInstance, then it assumes that the input event value is for one domain instance. If a metric has evaluation mode as MetricEvaluationModeAggregate, it assumes that input event values are normalized to represent all domain instances on a device. For the most accurate metric collection, the events required for the metric should be collected for all profiled domain instances. For example, to collect all instances of an event, set the EventGroupAttrProfileAllDomainInstances attribute on the group containing the event to 1. The normalized value for the event is then: (sum_event_values * totalInstanceCount) / instanceCount, where sum_event_values is the summation of the event values across all profiled domain instances, totalInstanceCount is obtained from querying EventDomainAttrTotalInstanceCount and instanceCount is obtained from querying EventGroupAttrInstanceCount (or EventDomainAttrInstanceCount).
- metric: The metric ID
- eventIdArray: The event IDs required to calculate metric
- eventValueArray: The normalized event values required to calculate metric. The values must be order to match the order of events in eventIdArray
- propIdArray: The metric property IDs required to calculate metric
- propValueArray: The metric property values required to calculate metric. The values must be order to match the order of metric properties in propIdArray
- metricValue: Returns the value for the metric
Errors:
- ErrNotInitialized
- ErrInvalidMetricId
- ErrInvalidOperation
- ErrParameterSizeNotSufficient: if the eventIdArray does not contain all the events needed for metric
- ErrInvalidEventValue: if any of the event values required for the metric is CUPTI_EVENT_OVERFLOW
- ErrNotCompatible: if the computed metric value cannot be represented in the metric's value type. For example, if the metric value type is unsigned and the computed metric value is negative
- ErrInvalidParameter: if metricValue, eventIdArray or eventValueArray is NULL
Wraps cuptiMetricGetValue2.
Deprecated: Deprecated by NVIDIA. Unsupported since CUDA 13.0, where it always returns ErrLegacyProfilerNotSupported; use the range profiler API, starting with RangeProfilerEnable.
func PCSamplingDisable ¶
func PCSamplingDisable(pParams *PCSamplingDisableParams) error
PCSamplingDisable disables PC sampling.
For application which doesn’t destroy the CUDA context explicitly, this API does the PC Sampling tear-down, joins threads and copies PC records in the buffer provided during the PC sampling configuration. PC records which can’t be accommodated in the buffer are discarded.
- pParams: A pointer to PCSamplingDisableParams
Errors:
- ErrInvalidParameter: if any pParams is not valid
- ErrNotSupported: indicates that the system/device does not support the API
Wraps cuptiPCSamplingDisable.
func PCSamplingEnable ¶
func PCSamplingEnable(pParams *PCSamplingEnableParams) error
PCSamplingEnable enables PC sampling.
- pParams: A pointer to PCSamplingEnableParams
Errors:
- ErrInvalidParameter: if any pParams is not valid
- ErrNotSupported: indicates that the system/device does not support the API
Wraps cuptiPCSamplingEnable.
func PCSamplingGetConfigurationAttribute ¶
func PCSamplingGetConfigurationAttribute(pParams *PCSamplingConfigurationInfoParams) error
PCSamplingGetConfigurationAttribute reads PC Sampling configuration attribute.
- pParams: A pointer to PCSamplingConfigurationInfoParams containing PC sampling configuration
Errors:
- ErrInvalidOperation: if this API is called with some invalid attribute.
- ErrInvalidParameter: if attrib is not valid or any pParams is not valid
- ErrNotSupported: indicates that the system/device does not support the API
- ErrParameterSizeNotSufficient: indicates that the value buffer is too small to hold the attribute value
Wraps cuptiPCSamplingGetConfigurationAttribute.
func PCSamplingGetData ¶
func PCSamplingGetData(pParams *PCSamplingGetDataParams) error
PCSamplingGetData flushes GPU PC sampling data periodically.
Flushing of GPU PC Sampling data is required at following point to maintain uniqueness of PCs: For PcSamplingCollectionModeContinuous, after every module load-unload-load For PcSamplingCollectionModeKernelSerialized, after every kernel ends If configuration option PcSamplingConfigurationAttrTypeEnableStartStopControl is enabled, then after every range end i.e. PCSamplingStop If application is profiled in PcSamplingCollectionModeContinuous, with disabled PcSamplingConfigurationAttrTypeEnableStartStopControl, and there is no module unload, user can collect data in two ways: Use PCSamplingGetData API periodically Use PCSamplingDisable on application exit and read GPU PC sampling data from sampling data buffer passed during configuration. Note: In case, PCSamplingGetData API is not called periodically, then sampling data buffer passed during configuration should be large enough to hold all PCs data. PCSamplingGetData API never does device synchronization. It is possible that when the API is called there is some unconsumed data from the HW buffer. In this case CUPTI provides only the data available with it at that moment.
- pParams: A pointer to PCSamplingGetDataParams
Errors:
- ErrInvalidOperation: if this API is called without enabling PC sampling.
- ErrInvalidParameter: if any pParams is not valid
- ErrNotSupported: indicates that the system/device
- ErrOutOfMemory: indicates that the HW buffer is full does not support the API
Wraps cuptiPCSamplingGetData.
func PCSamplingGetNumStallReasons ¶
func PCSamplingGetNumStallReasons(pParams *PCSamplingGetNumStallReasonsParams) error
PCSamplingGetNumStallReasons gets PC sampling stall reason count.
- pParams: A pointer to PCSamplingGetNumStallReasonsParams
Errors:
- ErrInvalidParameter: if any pParams is not valid
- ErrNotSupported: indicates that the system/device does not support the API
Wraps cuptiPCSamplingGetNumStallReasons.
func PCSamplingGetStallReasons ¶
func PCSamplingGetStallReasons(pParams *PCSamplingGetStallReasonsParams) error
PCSamplingGetStallReasons gets PC sampling stall reasons.
- pParams: A pointer to PCSamplingGetStallReasonsParams
Errors:
- ErrInvalidParameter: if any pParams is not valid
- ErrNotSupported: indicates that the system/device does not support the API
Wraps cuptiPCSamplingGetStallReasons.
func PCSamplingSetConfigurationAttribute ¶
func PCSamplingSetConfigurationAttribute(pParams *PCSamplingConfigurationInfoParams) error
PCSamplingSetConfigurationAttribute writes PC Sampling configuration attribute.
- pParams: A pointer to PCSamplingConfigurationInfoParams containing PC sampling configuration
Errors:
- ErrInvalidOperation: if this API is called with some invalid attrib.
- ErrInvalidParameter: if attribute value is not valid or any pParams is not valid
- ErrNotSupported: indicates that the system/device does not support the API
Wraps cuptiPCSamplingSetConfigurationAttribute.
func PCSamplingStart ¶
func PCSamplingStart(pParams *PCSamplingStartParams) error
PCSamplingStart starts PC sampling.
User can collect PC Sampling data for user-defined range specified by Start/Stop APIs. This API can be used to mark starting of range. Set configuration option PcSamplingConfigurationAttrTypeEnableStartStopControl to use this API.
- pParams: A pointer to PCSamplingStartParams
Errors:
- ErrInvalidOperation: if this API is called with incorrect PC Sampling configuration.
- ErrInvalidParameter: if any pParams is not valid
- ErrNotSupported: indicates that the system/device does not support the API
Wraps cuptiPCSamplingStart.
func PCSamplingStop ¶
func PCSamplingStop(pParams *PCSamplingStopParams) error
PCSamplingStop stops PC sampling.
User can collect PC Sampling data for user-defined range specified by Start/Stop APIs. This API can be used to mark end of range. Set configuration option PcSamplingConfigurationAttrTypeEnableStartStopControl to use this API.
- pParams: A pointer to PCSamplingStopParams
Errors:
- ErrInvalidOperation: if this API is called with incorrect PC Sampling configuration.
- ErrInvalidParameter: if any pParams is not valid
- ErrNotSupported: indicates that the system/device does not support the API
Wraps cuptiPCSamplingStop.
func Path ¶
func Path() string
Path returns the path or name the loaded library was opened from, or the empty string if no library is loaded.
func PmSamplingCounterDataGetSampleInfo ¶
func PmSamplingCounterDataGetSampleInfo(pParams *PmSamplingCounterDataGetSampleInfoParams) error
PmSamplingCounterDataGetSampleInfo gets the sample info (start and ends time stamp) for the given sample index.
Each sample is distinguished by the start and end time stamp.
Requires CUDA 12.6 or later.
- pParams: A pointer to PmSamplingCounterDataGetSampleInfoParams
Errors:
- ErrInvalidParameter: if any pParams is not valid
- ErrUnknown: for any internal error
Wraps cuptiPmSamplingCounterDataGetSampleInfo.
func PmSamplingCounterDataImageInitialize ¶
func PmSamplingCounterDataImageInitialize(pParams *PmSamplingCounterDataImageInitializeParams) error
PmSamplingCounterDataImageInitialize initializes the counter data to CUPTI record format for storing the metric data.
Requires CUDA 12.6 or later.
- pParams: A pointer to PmSamplingCounterDataImageInitializeParams
Errors:
- ErrInvalidOperation: if PM sampling CounterDataInitialize is called without enabling PM sampling
- ErrInvalidParameter: if any pParams is not valid
- ErrUnknown: for any internal error
Wraps cuptiPmSamplingCounterDataImageInitialize.
func PmSamplingDecodeData ¶
func PmSamplingDecodeData(pParams *PmSamplingDecodeDataParams) error
PmSamplingDecodeData decodes the metrics data stored in the hardware buffer to the counter data image.
Requires CUDA 12.6 or later.
- pParams: A pointer to PmSamplingDecodeDataParams
Errors:
- ErrInvalidOperation: if PM sampling DecodeData is called without enabling PM sampling
- ErrInvalidParameter: if any pParams is not valid
- ErrOutOfMemory: if there is record overflow in the hardware buffer
- ErrUnknown: for any internal error
Wraps cuptiPmSamplingDecodeData.
func PmSamplingDisable ¶
func PmSamplingDisable(pParams *PmSamplingDisableParams) error
PmSamplingDisable disables PM sampling on the CUDA device and destroys the PM sampling object.
Requires CUDA 12.6 or later.
- pParams: A pointer to PmSamplingDisableParams
Errors:
- ErrInvalidParameter: if any pParams is not valid
- ErrUnknown: for any internal error
Wraps cuptiPmSamplingDisable.
func PmSamplingEnable ¶
func PmSamplingEnable(pParams *PmSamplingEnableParams) error
PmSamplingEnable creates a PM sampling object and enables PM sampling on the CUDA device.
Requires CUDA 12.6 or later.
- pParams: A pointer to PmSamplingEnableParams
Errors:
- ErrInsufficientPrivileges: if the user does not have sufficient privileges to perform the operation
- ErrInvalidOperation: if PM sampling is already enabled on the device
- ErrInvalidParameter: if any pParams is not valid
- ErrOutOfMemory: if memory allocation fails while creating the PM sampling object
- ErrUnknown: for any internal error
Wraps cuptiPmSamplingEnable.
func PmSamplingGetCounterAvailability ¶
func PmSamplingGetCounterAvailability(pParams *PmSamplingGetCounterAvailabilityParams) error
PmSamplingGetCounterAvailability queries counter availibility information in a buffer which can be used to filter unavailable raw metrics on host.
Note: This API may fail, if any profiling or sampling session is active on the specified device.
Requires CUDA 12.6 or later.
- pParams: A pointer to PmSamplingGetCounterAvailabilityParams
Errors:
- ErrInsufficientPrivileges: if the user does not have sufficient privileges to perform the operation
- ErrInvalidParameter: if any pParams is not valid
- ErrUnknown: for any internal error
Wraps cuptiPmSamplingGetCounterAvailability.
func PmSamplingGetCounterDataInfo ¶
func PmSamplingGetCounterDataInfo(pParams *PmSamplingGetCounterDataInfoParams) error
PmSamplingGetCounterDataInfo gets the counter data info like number of samples, number of populated samples and number of completed samples in a counter data image.
Requires CUDA 12.6 or later.
- pParams: A pointer to PmSamplingGetCounterDataInfoParams
Errors:
- ErrInvalidParameter: if any pParams is not valid
- ErrUnknown: for any internal error
Wraps cuptiPmSamplingGetCounterDataInfo.
func PmSamplingGetCounterDataSize ¶
func PmSamplingGetCounterDataSize(pParams *PmSamplingGetCounterDataSizeParams) error
PmSamplingGetCounterDataSize queries the size of the counter data image which will be used to store the metrics data.
User need to allocate the memory for the counter data image based on the size returned by this API.
Requires CUDA 12.6 or later.
- pParams: A pointer to PmSamplingGetCounterDataSizeParams
Errors:
- ErrInvalidOperation: if PM sampling GetCounterDataSize is called without enabling PM sampling
- ErrInvalidParameter: if any pParams is not valid
- ErrUnknown: for any internal error
Wraps cuptiPmSamplingGetCounterDataSize.
func PmSamplingSetConfig ¶
func PmSamplingSetConfig(pParams *PmSamplingSetConfigParams) error
PmSamplingSetConfig sets the configuration for PM sampling like sampling interval, HW buffer size, trigger mode and the config image which has scheduling info for metric collection.
Requires CUDA 12.6 or later.
- pParams: A pointer to PmSamplingSetConfigParams
Errors:
- ErrInvalidParameter: if any pParams is not valid
- ErrNotSupported: for config image which require multiple passes for data collection
Wraps cuptiPmSamplingSetConfig.
func PmSamplingStart ¶
func PmSamplingStart(pParams *PmSamplingStartParams) error
PmSamplingStart starts the PM sampling.
The GPU will start collecting the metrics data periodically based on trigger type and sampling interval passed in PmSamplingSetConfigParams. The collected data will be stored in the hardware buffer.
Requires CUDA 12.6 or later.
- pParams: A pointer to PmSamplingStartParams
Errors:
- ErrInvalidOperation: if PM sampling Start is called without enabling PM sampling, and PM sampling is already started
- ErrInvalidParameter: if any pParams is not valid
- ErrUnknown: for any internal error
Wraps cuptiPmSamplingStart.
func PmSamplingStop ¶
func PmSamplingStop(pParams *PmSamplingStopParams) error
PmSamplingStop stops the PM sampling.
The GPU will stop collecting the metrics data.
Requires CUDA 12.6 or later.
- pParams: A pointer to PmSamplingStopParams
Errors:
- ErrInvalidOperation: if PM sampling Stop is called without enabling PM sampling, and PM sampling is already stopped
- ErrInvalidParameter: if any pParams is not valid
- ErrUnknown: for any internal error
Wraps cuptiPmSamplingStop.
func ProfilerBeginPass
deprecated
func ProfilerBeginPass(pParams *ProfilerBeginPassParams) error
ProfilerBeginPass replays API: used for multipass collection.
These APIs are used if user chooses to replay by itself UserReplay or ApplicationReplay for multipass collection of the metrics configurations. It's a no-op in case of KernelReplay.
Wraps cuptiProfilerBeginPass.
Deprecated: Deprecated in CUDA 13.0. This function is deprecated as of CUDA 13.0 and will be removed in the future. It is recommended to use the Range Profiling API from the header cupti_range_profiler.h.
func ProfilerBeginSession
deprecated
func ProfilerBeginSession(pParams *ProfilerBeginSessionParams) error
ProfilerBeginSession begins profiling session sets up the profiling on the device.
Although, it doesn't start the profiling but GPU resources needed for profiling are allocated. Outside of a session, the GPU will return to its normal operating state.
Wraps cuptiProfilerBeginSession.
Deprecated: Deprecated in CUDA 13.0. This function is deprecated as of CUDA 13.0 and will be removed in the future. It is recommended to use the Range Profiling API from the header cupti_range_profiler.h.
func ProfilerCounterDataImageCalculateScratchBufferSize
deprecated
func ProfilerCounterDataImageCalculateScratchBufferSize(pParams *ProfilerCounterDataImageCalculateScratchBufferSizeParams) error
ProfilerCounterDataImageCalculateScratchBufferSize A temporary storage for CounterData image needed for internal operations.
Use these APIs to calculate the allocation size and initialize counterData image scratch buffer.
Wraps cuptiProfilerCounterDataImageCalculateScratchBufferSize.
Deprecated: Deprecated in CUDA 13.0. This function is deprecated as of CUDA 13.0 and will be removed in the future. It is recommended to use the Range Profiling API from the header cupti_range_profiler.h.
func ProfilerCounterDataImageCalculateSize
deprecated
func ProfilerCounterDataImageCalculateSize(pParams *ProfilerCounterDataImageCalculateSizeParams) error
ProfilerCounterDataImageCalculateSize A CounterData image allocates space for values for each counter for each range.
User borne the resposibility of managing the counterDataImage allocations. CounterDataPrefix contains meta data about the metrics that will be stored in counterDataImage. Use these APIs to calculate the allocation size and initialize counterData image.
Wraps cuptiProfilerCounterDataImageCalculateSize.
Deprecated: Deprecated in CUDA 13.0. This function is deprecated as of CUDA 13.0 and will be removed in the future. It is recommended to use the Range Profiling API from the header cupti_range_profiler.h.
func ProfilerCounterDataImageInitialize ¶
func ProfilerCounterDataImageInitialize(pParams *ProfilerCounterDataImageInitializeParams) error
ProfilerCounterDataImageInitialize wraps cuptiProfilerCounterDataImageInitialize.
func ProfilerCounterDataImageInitializeScratchBuffer ¶
func ProfilerCounterDataImageInitializeScratchBuffer(pParams *ProfilerCounterDataImageInitializeScratchBufferParams) error
ProfilerCounterDataImageInitializeScratchBuffer wraps cuptiProfilerCounterDataImageInitializeScratchBuffer.
func ProfilerDeInitialize ¶
func ProfilerDeInitialize(pParams *ProfilerDeInitializeParams) error
ProfilerDeInitialize deinitializes the profiler interface.
Wraps cuptiProfilerDeInitialize.
func ProfilerDeviceSupported ¶
func ProfilerDeviceSupported(pParams *ProfilerDeviceSupportedParams) error
ProfilerDeviceSupported queries device compatibility with Profiling API.
Use this call to determine whether a compute device and configuration are compatible with the Profiling API. If the configuration does not support profiling, one of several flags will indicate why.
Wraps cuptiProfilerDeviceSupported.
func ProfilerDisableProfiling
deprecated
func ProfilerDisableProfiling(pParams *ProfilerDisableProfilingParams) error
ProfilerDisableProfiling disables Profiling.
In AutoRange, these APIs are used to enable/disable profiling for the kernels to be executed in a profiling session.
Wraps cuptiProfilerDisableProfiling.
Deprecated: Deprecated in CUDA 13.0. This function is deprecated as of CUDA 13.0 and will be removed in the future. It is recommended to use the Range Profiling API from the header cupti_range_profiler.h.
func ProfilerEnableProfiling
deprecated
func ProfilerEnableProfiling(pParams *ProfilerEnableProfilingParams) error
ProfilerEnableProfiling enables Profiling.
In AutoRange, these APIs are used to enable/disable profiling for the kernels to be executed in a profiling session.
Wraps cuptiProfilerEnableProfiling.
Deprecated: Deprecated in CUDA 13.0. This function is deprecated as of CUDA 13.0 and will be removed in the future. It is recommended to use the Range Profiling API from the header cupti_range_profiler.h.
func ProfilerEndPass
deprecated
func ProfilerEndPass(pParams *ProfilerEndPassParams) error
ProfilerEndPass replays API: used for multipass collection.
These APIs are used if user chooses to replay by itself UserReplay or ApplicationReplay for multipass collection of the metrics configurations. Its a no-op in case of KernelReplay. Returns information for next pass.
Wraps cuptiProfilerEndPass.
Deprecated: Deprecated in CUDA 13.0. This function is deprecated as of CUDA 13.0 and will be removed in the future. It is recommended to use the Range Profiling API from the header cupti_range_profiler.h.
func ProfilerEndSession
deprecated
func ProfilerEndSession(pParams *ProfilerEndSessionParams) error
ProfilerEndSession ends profiling session.
Frees up the GPU resources acquired for profiling. Outside of a session, the GPU will return to it's normal operating state.
Wraps cuptiProfilerEndSession.
Deprecated: Deprecated in CUDA 13.0. This function is deprecated as of CUDA 13.0 and will be removed in the future. It is recommended to use the Range Profiling API from the header cupti_range_profiler.h.
func ProfilerFlushCounterData
deprecated
func ProfilerFlushCounterData(pParams *ProfilerFlushCounterDataParams) error
ProfilerFlushCounterData decodes all the submitted passes.
Flush Counter data API to ensure every pass is decoded into the counterDataImage passed at beginSession. This will cause the CPU/GPU sync to collect all the undecoded pass.
Wraps cuptiProfilerFlushCounterData.
Deprecated: Deprecated in CUDA 13.0. This function is deprecated as of CUDA 13.0 and will be removed in the future. It is recommended to use the Range Profiling API from the header cupti_range_profiler.h.
func ProfilerGetCounterAvailability ¶
func ProfilerGetCounterAvailability(pParams *ProfilerGetCounterAvailabilityParams) error
ProfilerGetCounterAvailability queries counter availibility.
Use this API to query counter availability information in a buffer which can be used to filter unavailable raw metrics on host.
Note: This API may fail, if any profiling or sampling session is active on the specified context or its device.
Wraps cuptiProfilerGetCounterAvailability.
func ProfilerHostConfigAddMetrics ¶
func ProfilerHostConfigAddMetrics(pParams *ProfilerHostConfigAddMetricsParams) error
ProfilerHostConfigAddMetrics adds the metrics to the profiler host object for generating the config image.
The config image will have the required information to schedule the metrics for collecting the profiling data. Note:
- PM sampling only supports single pass config image.
- CUPTI has single pass sets supported for a chip, all metrics in a set can be collected in a single pass.
- ProfilerHostGetSinglePassSets API can be used to get the single pass sets supported for a chip.
- ProfilerHostGetMetricsInSinglePassSet API can be used to get the metrics supported for a single pass set.
Requires CUDA 12.6 or later.
Parameters:
- pParams: A pointer to ProfilerHostConfigAddMetricsParams
Errors:
- ErrInvalidMetricName: if the metric name is not valid or not supported for the chip
- ErrInvalidParameter: if any pParams is not valid
- ErrUnknown: for any internal error
Wraps cuptiProfilerHostConfigAddMetrics.
func ProfilerHostDeinitialize ¶
func ProfilerHostDeinitialize(pParams *ProfilerHostDeinitializeParams) error
ProfilerHostDeinitialize deinitializes and destroys the profiler host object (ProfilerHost).
Requires CUDA 12.6 or later.
- pParams: A pointer to ProfilerHostDeinitializeParams
Errors:
- ErrInvalidParameter: if any pParams is not valid
- ErrUnknown: for any internal error
Wraps cuptiProfilerHostDeinitialize.
func ProfilerHostEvaluateToGpuValues ¶
func ProfilerHostEvaluateToGpuValues(pParams *ProfilerHostEvaluateToGpuValuesParams) error
ProfilerHostEvaluateToGpuValues evaluates the metric values for the range index stored in the counter data.
Requires CUDA 12.6 or later.
- pParams: A pointer to ProfilerHostEvaluateToGpuValuesParams
Errors:
- ErrInvalidMetricName: if the metric name is not valid or not supported for the chip
- ErrInvalidParameter: if any pParams is not valid
- ErrUnknown: for any internal error
Wraps cuptiProfilerHostEvaluateToGpuValues.
func ProfilerHostGetBaseMetrics ¶
func ProfilerHostGetBaseMetrics(pParams *ProfilerHostGetBaseMetricsParams) error
ProfilerHostGetBaseMetrics gets the list of supported base metrics for the chip.
Requires CUDA 12.6 or later.
- pParams: A pointer to ProfilerHostGetBaseMetricsParams
Errors:
- ErrInvalidParameter: if any pParams is not valid
- ErrUnknown: for any internal error
Wraps cuptiProfilerHostGetBaseMetrics.
func ProfilerHostGetConfigImage ¶
func ProfilerHostGetConfigImage(pParams *ProfilerHostGetConfigImageParams) error
ProfilerHostGetConfigImage gets the config image for the metrics added to the profiler host object.
User will pass the allocated buffer to store the config image.
Requires CUDA 12.6 or later.
- pParams: A pointer to ProfilerHostGetConfigImageParams
Errors:
- ErrInvalidParameter: if any pParams is not valid
- ErrUnknown: for any internal error
Wraps cuptiProfilerHostGetConfigImage.
func ProfilerHostGetConfigImageSize ¶
func ProfilerHostGetConfigImageSize(pParams *ProfilerHostGetConfigImageSizeParams) error
ProfilerHostGetConfigImageSize gets the size of the config image for the metrics added to the profiler host object.
Users need to allocate the buffer for storing the config image.
Requires CUDA 12.6 or later.
- pParams: A pointer to ProfilerHostGetConfigImageSizeParams
Errors:
- ErrInvalidParameter: if any pParams is not valid
- ErrUnknown: for any internal error
Wraps cuptiProfilerHostGetConfigImageSize.
func ProfilerHostGetMaxNumHardwareMetricsPerPass ¶
func ProfilerHostGetMaxNumHardwareMetricsPerPass(pParams *ProfilerHostGetMaxNumHardwareMetricsPerPassParams) error
ProfilerHostGetMaxNumHardwareMetricsPerPass gets the maximum number of hardware metrics (metric names which doesn’t include sass keyword) that can be scheduled in a single pass for a chip.
While this represents a theoretical upper limit, practical constraints may prevent reaching this threshold for a specific set of metrics. Furthermore, the maximum achievable value is contingent upon the characteristics and architecture of the chip in question. Use ProfilerHostGetNumOfPasses API for getting the actual number of passes required for the for collecting the profiling data for the scheduled metrics in a config image.
Requires CUDA 12.6 or later.
- pParams: A pointer to ProfilerHostGetMaxNumHardwareMetricsPerPassParams
Errors:
- ErrInvalidParameter: if any pParams is not valid
- ErrUnknown: for any internal error
Wraps cuptiProfilerHostGetMaxNumHardwareMetricsPerPass.
func ProfilerHostGetMetricProperties ¶
func ProfilerHostGetMetricProperties(pParams *ProfilerHostGetMetricPropertiesParams) error
ProfilerHostGetMetricProperties gets the properties of the metric.
Requires CUDA 12.6 or later.
- pParams: A pointer to ProfilerHostGetMetricPropertiesParams
Errors:
- ErrInvalidMetricName: if the metric name is not valid or not supported for the chip
- ErrInvalidParameter: if any pParams is not valid
- ErrUnknown: for any internal error
Wraps cuptiProfilerHostGetMetricProperties.
func ProfilerHostGetMetricPropertiesParamsSizeFor ¶
ProfilerHostGetMetricPropertiesParamsSizeFor reports the measured prefix size for a runtime version.
func ProfilerHostGetMetricsInSinglePassSet ¶
func ProfilerHostGetMetricsInSinglePassSet(pParams *ProfilerHostGetMetricsInSinglePassSetParams) error
ProfilerHostGetMetricsInSinglePassSet gets all the metrics defined in the single pass metric set.
Profiling data for the metrics in a single pass metric set can be collected in a single pass. This is a two-phase function to retrieve metrics in a single-pass metric set. First pass (query mode): Set pParams->pMetricsBuffer = NULL and pParams->pMetricsIndicesBuffer = NULL The function returns required buffer sizes in:
- numOfMetricsInSinglePassSet: Number of metrics in set
- metricsBufferSize: Total buffer size needed for metric data
Second pass (data retrieval):
- Set pParams->pMetricsBuffer = allocated buffer for metrics
- Set pParams->pMetricsIndicesBuffer = allocated buffer for metrics indices
- Set pParams->numOfMetricsInSinglePassSet = number of metrics in set
- Set pParams->metricsBufferSize = allocated buffer size for metrics
- Call the function again to populate the buffers
Requires CUDA 13.2 or later.
Parameters:
- pParams: A pointer to ProfilerHostGetMetricsInSinglePassSetParams
Errors:
- ErrInvalidParameter: if any pParams is not valid also when either of pMetricsBuffer and pMetricsIndicesBuffer are NULL while the other is not NULL
- ErrUnknown: for any internal error
Wraps cuptiProfilerHostGetMetricsInSinglePassSet.
func ProfilerHostGetNumOfPasses ¶
func ProfilerHostGetNumOfPasses(pParams *ProfilerHostGetNumOfPassesParams) error
ProfilerHostGetNumOfPasses gets the number of passes required for profiling the scheduled metrics in the config image.
Requires CUDA 12.6 or later.
- pParams: A pointer to ProfilerHostGetNumOfPassesParams
Errors:
- ErrInvalidParameter: if any pParams is not valid
- ErrUnknown: for any internal error
Wraps cuptiProfilerHostGetNumOfPasses.
func ProfilerHostGetRangeName ¶
func ProfilerHostGetRangeName(pParams *ProfilerHostGetRangeNameParams) error
ProfilerHostGetRangeName gets the range name for the range index stored in the counter data.
In Range profiler, for Auto range mode the range name will be numeric value assigned to the kernel based on execution order. For user range mode, the name of range will be based on the range name provided by the user using Push range API.
Requires CUDA 12.6 or later.
- pParams: A pointer to ProfilerHostGetRangeNameParams
Errors:
- ErrInvalidParameter: if any pParams is not valid
- ErrUnknown: for any internal error
Wraps cuptiProfilerHostGetRangeName.
func ProfilerHostGetSinglePassSets ¶
func ProfilerHostGetSinglePassSets(pParams *ProfilerHostGetSinglePassSetsParams) error
ProfilerHostGetSinglePassSets gets the single pass metric sets defined in the metric config file.
Profiling data for the metrics in a single pass metric set can be collected in a single pass.
Requires CUDA 13.2 or later.
- pParams: A pointer to ProfilerHostGetSinglePassSetsParams when ppSinglePassSets is NULL, the function will return the number of single pass metric sets and the caller needs to allocate the buffer for the single pass metric sets using the number of single pass metric sets. (i.e. ppSinglePassSets)
Errors:
- ErrInvalidParameter: if any pParams is not valid
- ErrUnknown: for any internal error
Wraps cuptiProfilerHostGetSinglePassSets.
func ProfilerHostGetSubMetrics ¶
func ProfilerHostGetSubMetrics(pParams *ProfilerHostGetSubMetricsParams) error
ProfilerHostGetSubMetrics gets the list of supported sub-metrics for the metric.
Requires CUDA 12.6 or later.
- pParams: A pointer to ProfilerHostGetSubMetricsParams
Errors:
- ErrInvalidMetricName: if the metric name is not valid or not supported for the chip
- ErrInvalidParameter: if any pParams is not valid
- ErrUnknown: for any internal error
Wraps cuptiProfilerHostGetSubMetrics.
func ProfilerHostGetSupportedChips ¶
func ProfilerHostGetSupportedChips(pParams *ProfilerHostGetSupportedChipsParams) error
ProfilerHostGetSupportedChips gets the list of supported chips.
Requires CUDA 12.6 or later.
- pParams: A pointer to ProfilerHostGetSupportedChipsParams
Errors:
- ErrInvalidParameter: if any pParams is not valid
- ErrUnknown: for any internal error
Wraps cuptiProfilerHostGetSupportedChips.
func ProfilerHostInitialize ¶
func ProfilerHostInitialize(pParams *ProfilerHostInitializeParams) error
ProfilerHostInitialize creates and initializes the profiler host object (ProfilerHost).
Requires CUDA 12.6 or later.
- pParams: A pointer to ProfilerHostInitializeParams
Errors:
- ErrInvalidParameter: if any pParams is not valid
- ErrNotInitialized: if CUPTI could not dynamically load the nvperf* libraries. Ensure libnvperf_host.so and libnvperf_target.so, shipped alongside libcupti.so, are discoverable by the dynamic linker.
- ErrUnknown: for any internal error
Wraps cuptiProfilerHostInitialize.
func ProfilerHostInitializeParamsSizeFor ¶
ProfilerHostInitializeParamsSizeFor reports the measured prefix size for a runtime version.
func ProfilerHostSetDevicePartitionInfo ¶
func ProfilerHostSetDevicePartitionInfo(pParams *ProfilerHostSetDevicePartitionInfoParams) error
ProfilerHostSetDevicePartitionInfo sets the device partition information for metric evaluation on Green Contexts.
When profiling workloads running on Green Contexts, the device resources (such as Streaming Multiprocessors) are partitioned among multiple Green Contexts. This partition information is essential for correctly evaluating and scaling metric values from the collected counter data.
The device partition information should be obtained from the target side using RangeProfilerGetDevicePartitionInfo after starting the range profiler on a Green Context. This information must be set on the profiler host object before calling ProfilerHostEvaluateToGpuValues to ensure accurate metric evaluation that accounts for the partitioned device resources.
Note: This API is only required when profiling on Green Contexts. For profiling on regular CUDA contexts that have access to all device resources, this API is not needed.
Requires CUDA 13.3 or later.
- pParams: A pointer to ProfilerHostSetDevicePartitionInfoParams
Errors:
- ErrInvalidParameter: if any pParams is not valid
- ErrUnknown: for any internal error
Wraps cuptiProfilerHostSetDevicePartitionInfo.
func ProfilerInitialize
deprecated
func ProfilerInitialize(pParams *ProfilerInitializeParams) error
ProfilerInitialize initializes the profiler interface.
Loads the required libraries in the process address space. Sets up the hooks with the CUDA driver.
Errors:
- ErrNotInitialized: if CUPTI could not dynamically load the nvperf* libraries. Ensure libnvperf_host.so and libnvperf_target.so, shipped alongside libcupti.so, are discoverable by the dynamic linker.
Wraps cuptiProfilerInitialize.
Deprecated: Deprecated in CUDA 13.0. Use RangeProfilerEnable instead. This function is deprecated as of CUDA 13.0 and will be removed in the future. For legacy target profiling, use RangeProfilerEnable and the related Range Profiling APIs from cupti_range_profiler.h. PM Sampling still uses this initialization entry point.
func ProfilerIsPassCollected
deprecated
func ProfilerIsPassCollected(pParams *ProfilerIsPassCollectedParams) error
ProfilerIsPassCollected reports, without waiting, whether the pass submitted to the GPU has been collected.
Asynchronous call to query if the submitted pass to GPU is collected.
Wraps cuptiProfilerIsPassCollected.
Deprecated: Deprecated in CUDA 13.0. This function is deprecated as of CUDA 13.0 and will be removed in the future. It is recommended to use the Range Profiling API from the header cupti_range_profiler.h.
func ProfilerPopRange
deprecated
func ProfilerPopRange(pParams *ProfilerPopRangeParams) error
ProfilerPopRange pops a user range off the range stack.
Range API’s : Pop user range.
Counter data is collected per unique range-stack. Identified by a string label passsed by the user. It's an invalid operation in case of AutoRange.
Wraps cuptiProfilerPopRange.
Deprecated: Deprecated in CUDA 13.0. This function is deprecated as of CUDA 13.0 and will be removed in the future. It is recommended to use the Range Profiling API from the header cupti_range_profiler.h.
func ProfilerPushRange
deprecated
func ProfilerPushRange(pParams *ProfilerPushRangeParams) error
ProfilerPushRange pushes a user range onto the range stack.
Range API’s : Push user range.
Counter data is collected per unique range-stack. Identified by a string label passsed by the user. It's an invalid operation in case of AutoRange.
Wraps cuptiProfilerPushRange.
Deprecated: Deprecated in CUDA 13.0. This function is deprecated as of CUDA 13.0 and will be removed in the future. It is recommended to use the Range Profiling API from the header cupti_range_profiler.h.
func ProfilerSetConfig
deprecated
func ProfilerSetConfig(pParams *ProfilerSetConfigParams) error
ProfilerSetConfig sets metrics configuration to be profiled.
Use these APIs to set the config to profile in a session. It can be used for advanced cases such as where multiple configurations are collected into a single CounterData Image on the need basis, without restarting the session.
Wraps cuptiProfilerSetConfig.
Deprecated: Deprecated in CUDA 13.0. This function is deprecated as of CUDA 13.0 and will be removed in the future. It is recommended to use the Range Profiling API from the header cupti_range_profiler.h.
func ProfilerUnsetConfig
deprecated
func ProfilerUnsetConfig(pParams *ProfilerUnsetConfigParams) error
ProfilerUnsetConfig unsets metrics configuration profiled.
previous6.8. CUPTI Profiler Host API next6.10. CUPTI Range Profiling API
Wraps cuptiProfilerUnsetConfig.
Deprecated: Deprecated in CUDA 13.0. This function is deprecated as of CUDA 13.0 and will be removed in the future. It is recommended to use the Range Profiling API from the header cupti_range_profiler.h.
func RangeProfilerCounterDataGetRangeInfo ¶
func RangeProfilerCounterDataGetRangeInfo(pParams *RangeProfilerCounterDataGetRangeInfoParams) error
RangeProfilerCounterDataGetRangeInfo gets the range name for the given range index.
Requires CUDA 12.6 or later.
- pParams: A pointer to RangeProfilerCounterDataGetRangeInfoParams
Errors:
- ErrInvalidParameter: if any pParams is not valid
- ErrUnknown: for any internal error
Wraps cuptiRangeProfilerCounterDataGetRangeInfo.
func RangeProfilerCounterDataImageInitialize ¶
func RangeProfilerCounterDataImageInitialize(pParams *RangeProfilerCounterDataImageInitializeParams) error
RangeProfilerCounterDataImageInitialize initializes the counter data image with the profiling data for the ranges profiled.
Requires CUDA 12.6 or later.
- pParams: A pointer to RangeProfilerCounterDataImageInitializeParams
Errors:
- ErrInvalidOperation: if range profiler CounterDataImageInitialize is called without enabling range profiler
- ErrInvalidParameter: if any pParams is not valid
- ErrUnknown: for any internal error
Wraps cuptiRangeProfilerCounterDataImageInitialize.
func RangeProfilerDecodeData ¶
func RangeProfilerDecodeData(pParams *RangeProfilerDecodeDataParams) error
RangeProfilerDecodeData decodes the profiling data stored in the hardware to the counter data image passed in the SetConfig API.
This API should be called after RangeProfilerStop. The counter data image will be updated with the profiling data for the ranges profiled. For the cases where the number of ranges counter data image can store is less than the number of ranges profiled (= maxRangesPerPass in SetConfig API), the counter data image will report dropped ranges.
Requires CUDA 12.6 or later.
- pParams: A pointer to RangeProfilerDecodeDataParams
Errors:
- ErrInvalidOperation: if range profiler DecodeData is called without enabling range profiler
- ErrInvalidParameter: if any pParams is not valid
- ErrUnknown: for any internal error
Wraps cuptiRangeProfilerDecodeData.
func RangeProfilerDisable ¶
func RangeProfilerDisable(pParams *RangeProfilerDisableParams) error
RangeProfilerDisable disables the range profiler on the CUDA context and destroys the range profiler object.
Requires CUDA 12.6 or later.
- pParams: A pointer to RangeProfilerDisableParams
Errors:
- ErrInvalidParameter: if any pParams is not valid
Wraps cuptiRangeProfilerDisable.
func RangeProfilerEnable ¶
func RangeProfilerEnable(pParams *RangeProfilerEnableParams) error
RangeProfilerEnable creates a range profiler object and enables range profiling on the CUDA context.
Requires CUDA 12.6 or later.
- pParams: A pointer to RangeProfilerEnableParams
Errors:
- ErrInsufficientPrivileges: if the user does not have sufficient privileges to perform the operation
- ErrInvalidParameter: if any pParams is not valid
- ErrOutOfMemory: if memory allocation fails while creating the Range Profiler object or cache-control resources
- ErrUnknown: for any internal error
Wraps cuptiRangeProfilerEnable.
func RangeProfilerGetCounterDataInfo ¶
func RangeProfilerGetCounterDataInfo(pParams *RangeProfilerGetCounterDataInfoParams) error
RangeProfilerGetCounterDataInfo gets the number of ranges stored in the counter data image.
Requires CUDA 12.6 or later.
- pParams: A pointer to RangeProfilerGetCounterDataInfoParams
Errors:
- ErrInvalidParameter: if any pParams is not valid
- ErrUnknown: for any internal error
Wraps cuptiRangeProfilerGetCounterDataInfo.
func RangeProfilerGetCounterDataSize ¶
func RangeProfilerGetCounterDataSize(pParams *RangeProfilerGetCounterDataSizeParams) error
RangeProfilerGetCounterDataSize gets the size of the counter data image required to store the profiling data for the ranges profiled.
Requires CUDA 12.6 or later.
- pParams: A pointer to RangeProfilerGetCounterDataSizeParams
Errors:
- ErrInvalidOperation: if range profiler GetCounterDataSize is called without enabling range profiler
- ErrInvalidParameter: if any pParams is not valid
- ErrUnknown: for any internal error
Wraps cuptiRangeProfilerGetCounterDataSize.
func RangeProfilerGetDevicePartitionInfo ¶
func RangeProfilerGetDevicePartitionInfo(pParams *RangeProfilerGetDevicePartitionInfoParams) error
RangeProfilerGetDevicePartitionInfo gets the device partition information for a Green Context.
Green Contexts are created by partitioning device resources such as Streaming Multiprocessors (SMs) using CUDA APIs like cuDevSmResourceSplitByCount and cuGreenCtxCreate. When range profiling is enabled on a Green Context, the device partition information encodes how the device resources are divided among the Green Contexts.
This API retrieves the device partition information from the range profiler object, which is required for accurate metric evaluation on the host side. The retrieved partition information should be passed to ProfilerHostSetDevicePartitionInfo before evaluating metrics using ProfilerHostEvaluateToGpuValues. This API needs to be called after RangeProfilerStart.
This is a two-phase function:
- First call: Set pDevicePartitionInfo to NULL to query the required buffer size.
The required size is returned in devicePartitionInfoSize.
- Second call: Allocate a buffer of the returned size and set pDevicePartitionInfo to point to it.
Set devicePartitionInfoSize to the allocated buffer size. The function populates the buffer with the device partition information.
Requires CUDA 13.3 or later.
- pParams: A pointer to RangeProfilerGetDevicePartitionInfoParams
Errors:
- ErrInvalidParameter: if any pParams is not valid
- ErrUnknown: for any internal error
Wraps cuptiRangeProfilerGetDevicePartitionInfo.
func RangeProfilerPopRange ¶
func RangeProfilerPopRange(pParams *RangeProfilerPopRangeParams) error
RangeProfilerPopRange pops the current range to the Range Profiler.
The number of pop range API call should be same as number of push ranges in the same order.
Requires CUDA 12.6 or later.
- pParams: A pointer to RangeProfilerPopRangeParams
Errors:
- ErrInvalidOperation: if range profiler PopRange is called without enabling range profiler
- ErrInvalidParameter: if any pParams is not valid
- ErrUnknown: for any internal error
Wraps cuptiRangeProfilerPopRange.
func RangeProfilerPushRange ¶
func RangeProfilerPushRange(pParams *RangeProfilerPushRangeParams) error
RangeProfilerPushRange adds a new range to the Range Profiler with a given range name.
For nested ranges, this API should be called again for the innermost range. For profiling the nested range, users need to set the values for minNestingLevel and numNestingLevels in the SetConfig API.
Requires CUDA 12.6 or later.
- pParams: A pointer to RangeProfilerPushRangeParams
Errors:
- ErrInvalidOperation: if range profiler PushRange is called without enabling range profiler
- ErrInvalidParameter: if any pParams is not valid
- ErrUnknown: for any internal error
Wraps cuptiRangeProfilerPushRange.
func RangeProfilerSetConfig ¶
func RangeProfilerSetConfig(pParams *RangeProfilerSetConfigParams) error
RangeProfilerSetConfig sets the configuration for range profiler like maximum number of ranges per pass, number of nesting levels, range and replays mode and the config image which has scheduling info for metric collection.
Requires CUDA 12.6 or later.
- pParams: A pointer to RangeProfilerSetConfigParams
Errors:
- ErrInvalidParameter: if any pParams is not valid
Wraps cuptiRangeProfilerSetConfig.
func RangeProfilerStart ¶
func RangeProfilerStart(pParams *RangeProfilerStartParams) error
RangeProfilerStart starts the range profiler.
Requires CUDA 12.6 or later.
- pParams: A pointer to RangeProfilerStartParams
Errors:
- ErrInvalidOperation: if range profiler Start is called without enabling range profiler
- ErrInvalidParameter: if any pParams is not valid
- ErrUnknown: for any internal error
Wraps cuptiRangeProfilerStart.
func RangeProfilerStop ¶
func RangeProfilerStop(pParams *RangeProfilerStopParams) error
RangeProfilerStop stops the range profiler.
Requires CUDA 12.6 or later.
- pParams: A pointer to RangeProfilerStopParams
Errors:
- ErrInvalidOperation: if range profiler Stop is called without enabling range profiler
- ErrInvalidParameter: if any pParams is not valid
- ErrUnknown: for any internal error
Wraps cuptiRangeProfilerStop.
func RegisterComputeCrcCallback ¶
RegisterComputeCrcCallback registers callback function with CUPTI to use your own algorithm to compute cubin crc.
This function registers a callback function and it gets called from CUPTI when a CUDA module is loaded.
- funcComputeCubinCrc: callback is invoked when a CUDA module is loaded (see ComputeCrcCallbackFunc)
Errors:
- ErrInvalidParameter: if funcComputeCubinCrc is NULL.
Wraps cuptiRegisterComputeCrcCallback.
func SassMetricsDisable ¶
func SassMetricsDisable(pParams *SassMetricsDisableParams) error
SassMetricsDisable SASS metric data collection disable API will mark the end of a range, any kernel launched after this API call will not be profiled for the SASS metrics.
- pParams: A pointer to SassMetricsDisableParams
Errors:
- ErrInvalidContext: if any cuda context has not been created prior to this API call
- ErrInvalidOperation: if this API is called multiple times for a cuda context without calling SassMetricsEnable API or called before SassMetricsSetConfig API call.
- ErrInvalidParameter: if any pParams is not valid
- ErrNotSupported: indicates that the system/device doesn’t support SASS metric data collection
Wraps cuptiSassMetricsDisable.
func SassMetricsEnable ¶
func SassMetricsEnable(pParams *SassMetricsEnableParams) error
SassMetricsEnable marks the start of a range in which kernels are profiled for SASS metrics.
Sass metric data collection enable API will mark the start of a range, between which kernel will be profiled for SASS metrics.
- pParams: A pointer to SassMetricsEnableParams
Errors:
- ErrInvalidContext: if any cuda context has not been created prior to this API call
- ErrInvalidOperation: if this API is called multiple times for a cuda context without calling SassMetricsDisable API or called before SassMetricsSetConfig API call.
- ErrInvalidParameter: if any pParams is not valid
- ErrNotSupported: indicates that the system/device doesn’t support SASS metric data collection
Wraps cuptiSassMetricsEnable.
func SassMetricsFlushData ¶
func SassMetricsFlushData(pParams *SassMetricsFlushDataParams) error
SassMetricsFlushData flushes SASS metrics data from CUPTI internal buffer to the user buffer.
User needs to allocate the buffer for retrieving the data. The number of records collected can be queried using the API SassMetricsGetDataProperties.
- pParams: A pointer to SassMetricsFlushDataParams
Errors:
- ErrInvalidOperation: if this API is called outside the enable/disable range.
- ErrInvalidParameter: if any pParams is not valid
- ErrNotSupported: indicates that the system/device doesn’t support SASS metric data collection.
Wraps cuptiSassMetricsFlushData.
func SassMetricsGetDataProperties ¶
func SassMetricsGetDataProperties(pParams *SassMetricsGetDataPropertiesParams) error
SassMetricsGetDataProperties SASS metric data properties API will give the data regarding number of instances of a metric value and number of SASS instruction data has been collected.
The number of instances of a metric will vary as per user set the output granularity level with SassMetricsOutputGranularity value. User need to allocate memory for retriving the SASS data using SassMetricsFlushData API.
- pParams: A pointer to SassMetricsGetDataPropertiesParams
Errors:
- ErrInvalidOperation: if this API is called outside the enable/disable range.
- ErrInvalidParameter: if any pParams is not valid
- ErrNotSupported: indicates that the system/device doesn’t support SASS metric data collection
Wraps cuptiSassMetricsGetDataProperties.
func SassMetricsGetMetrics ¶
func SassMetricsGetMetrics(pParams *SassMetricsGetMetricsParams) error
SassMetricsGetMetrics gets the list of all supported SASS metrics for the chip.
- pParams: A pointer to SassMetricsGetMetricsParams
Errors:
- ErrInvalidParameter: if any pParams is not valid
- ErrNotSupported: indicates that the system/device doesn’t support SASS metric collection
Wraps cuptiSassMetricsGetMetrics.
func SassMetricsGetNumOfMetrics ¶
func SassMetricsGetNumOfMetrics(pParams *SassMetricsGetNumOfMetricsParams) error
SassMetricsGetNumOfMetrics gets the number of supported SASS metrics for the chip.
- pParams: A pointer to SassMetricsGetNumOfMetricsParams
Errors:
- ErrInvalidParameter: if any pParams is not valid
- ErrNotSupported: indicates that the system/device doesn’t support SASS metric collection
Wraps cuptiSassMetricsGetNumOfMetrics.
func SassMetricsGetProperties ¶
func SassMetricsGetProperties(pParams *SassMetricsGetPropertiesParams) error
SassMetricsGetProperties gets metric properties for the queried metric.
For a given metric the results will be put in SassMetricsMetricDetails which stores metric ID, description of the metric.
- pParams: A pointer to SassMetricsGetPropertiesParams
Errors:
- ErrInvalidParameter: if any pParams is not valid
- ErrNotSupported: indicates that the system/device doesn’t support SASS metric data collection
Wraps cuptiSassMetricsGetProperties.
func SassMetricsSetConfig ¶
func SassMetricsSetConfig(pParams *SassMetricsSetConfigParams) error
SassMetricsSetConfig sets config for the SASS metric data collection for a device.
User need to call this API before calling any of the SASS metric data collection APIs. Each set config API call need to be followed by cuptiSassPatchingUnSetConfig API before calling the SassMetricsSetConfig API again for the same device.
- pParams: A pointer to SassMetricsSetConfigParams
Errors:
- ErrInvalidContext: if any cuda context has not been created prior to this API call
- ErrInvalidOperation: if this is called multiple times for the device without calling unset config API
- ErrInvalidParameter: if any pParams is not valid
- ErrNotSupported: indicates that the system/device doesn’t support SASS metric data collection
Wraps cuptiSassMetricsSetConfig.
func SassMetricsUnsetConfig ¶
func SassMetricsUnsetConfig(pParams *SassMetricsUnsetConfigParams) error
SassMetricsUnsetConfig unsets config API will reset the SASS metric data collection configuration for the device.
Once this API called CUPTI will deallocate all the memory allocated and remove all the configuration for SASS metric data collection. User can only call this API for a device where SassMetricsSetConfig API has been called earlier for the device.
- pParams: A pointer to SassMetricsSetConfigParams
Errors:
- ErrInvalidContext: if any cuda context has not been created prior to this API call
- ErrInvalidOperation: if this is called multiple times for the device without calling set config API
- ErrInvalidParameter: if any pParams is not valid
- ErrNotSupported: indicates that the system/device doesn’t support SASS metric data collection previous6.11. CUPTI Result Codes next6.13. CUPTI Version
Wraps cuptiSassMetricsUnsetConfig.
func SetEventCollectionMode
deprecated
func SetEventCollectionMode(context driver.Context, mode EventCollectionMode) error
SetEventCollectionMode sets the event collection mode.
Set the event collection mode for a context. The mode controls the event collection behavior of all events in event groups created in the context. This API is invalid in kernel replay mode.
- context: The context
- mode: The event collection mode
Errors:
- ErrNotInitialized
- ErrInvalidContext
- ErrInvalidOperation: if called when replay mode is enabled
- ErrNotSupported: if mode is not supported on the device
Wraps cuptiSetEventCollectionMode.
Deprecated: Deprecated by NVIDIA. Unsupported since CUDA 13.0, where it always returns ErrLegacyProfilerNotSupported; use the range profiler API, starting with RangeProfilerEnable.
func SetThreadIdType ¶
func SetThreadIdType(type_ ActivityThreadIdType) error
SetThreadIdType sets the thread-id type.
CUPTI uses the method corresponding to set type to generate the thread-id. See enum ActivityThreadIdType for the list of methods. Activity records having thread-id field contain the same value. Thread id type must not be changed during the profiling session to avoid thread-id value mismatch across activity records. This API is not supported when multiple subscribers are allowed.
Errors:
- ErrNotSupported: if type is not supported on the platform
Wraps cuptiSetThreadIdType.
Note: NVIDIA plans to deprecate this function in a future release. The corresponding V2 activity attribute is ActivityAttrThreadIdType, which can be queried or modified via Subscriber.ActivityGetAttributeV2 and Subscriber.ActivitySetAttributeV2.
func SupportedDomains ¶
SupportedDomains gets the available callback domains.
Returns in *domainTable an array of size *domainCount of all the available callback domains.
Note: Thread-safety: this function is thread safe.
- domainCount: Returns number of callback domains
- domainTable: Returns pointer to array of available callback domains
Errors:
- ErrInvalidParameter: if domainCount or domainTable are NULL
- ErrNotInitialized: if unable to initialize CUPTI
Wraps cuptiSupportedDomains.
Types ¶
type Activity ¶
type Activity struct {
Kind ActivityKind
// contains filtered or unexported fields
}
Activity represents the base activity record.
The activity API uses a Activity as a generic representation for any activity. The 'kind' field is used to determine the specific activity kind, and from that the Activity object can be cast to the specific activity record type appropriate for that kind. Note that all activity record types are padded and aligned to ensure that each member of the record is naturally aligned. ActivityKind
func (*Activity) Record ¶
Record returns the record that begins with r, as a pointer to the type its Kind selects in the loaded library, by the version GetVersion reports. The pointer aliases r. Record returns nil if no library loads, or for a Kind this package does not decode, such as an unknown one. A library newer than any version this package knows is taken to write the newest record this package knows for each Kind.
type ActivityAPI ¶
type ActivityAPI struct {
Kind ActivityKind
Cbid uint32
Start uint64
End uint64
ProcessId uint32
ThreadId uint32
CorrelationId uint32
ReturnValue uint32
}
ActivityAPI represents the activity record for a driver or runtime API invocation.
This activity record represents an invocation of a driver or runtime API (ActivityKindDriver and ActivityKindRuntime).
type ActivityApiCbidOptions ¶
ActivityApiCbidOptions represents per-cbid enable/disable options for API activity kinds.
When enable = 1 (allowlist), records are generated only for the cbids listed in pCbids. When enable = 0 (denylist), records are generated for all cbids except those listed. \since CUPTI_API_VERSION 130400.
type ActivityApiFieldIds ¶
type ActivityApiFieldIds int32
ActivityApiFieldIds represents enum identifiers for fields in ActivityAPI.
Each enum value corresponds to a field in ActivityAPI and describes the data type and purpose of that field.
const ( // ApiFieldKind: [ActivityKind] kind; Kind of this activity record. Always either [ActivityKindDriver] or [ActivityKindRuntime]. ApiFieldKind ActivityApiFieldIds = 0 // ApiFieldCbid: CUpti_CallbackId cbid; Callback ID of the CUDA driver/runtime API function. ApiFieldCbid ActivityApiFieldIds = 1 // ApiFieldStart: uint64_t start; Start timestamp of the CUDA driver/runtime API call (in nanoseconds). ApiFieldStart ActivityApiFieldIds = 2 // ApiFieldEnd: uint64_t end; End timestamp of the CUDA driver/runtime API call (in nanoseconds). ApiFieldEnd ActivityApiFieldIds = 3 // ApiFieldProcessId: uint32_t processId; ID of the process executing the CUDA driver/runtime API call. ApiFieldProcessId ActivityApiFieldIds = 4 // ApiFieldThreadId: uint64_t threadId; ID of the thread executing the CUDA driver/runtime API call. ApiFieldThreadId ActivityApiFieldIds = 5 // ApiFieldCorrelationId: uint64_t correlationId; Correlation ID assigned to this CUDA driver/runtime API invocation. This ID matches the correlation ID of the associated kernel, memcpy, or memset activity record that the API call initiated. ApiFieldCorrelationId ActivityApiFieldIds = 6 // ApiFieldReturnValue: uint32_t returnValue; Return value of the CUDA driver/runtime API call (CUresult or cudaError_t). ApiFieldReturnValue ActivityApiFieldIds = 7 )
func (ActivityApiFieldIds) String ¶
func (e ActivityApiFieldIds) String() string
String returns the constant name, or a numeric representation for unknown values.
type ActivityApiOptions ¶
ActivityApiOptions represents kind-specific options for API activity kinds (RUNTIME, DRIVER).
Pass a pointer to this struct via ActivityConfig.pKindOptions when calling Subscriber.ActivityEnableV2 to enable only a subset of cbids (allowlist) or to exclude specific noisy cbids (denylist). Supported only for ActivityKindRuntime and ActivityKindDriver. \since CUPTI_API_VERSION 130400.
type ActivityAttribute ¶
type ActivityAttribute int32
ActivityAttribute represents activity attributes.
These attributes are used to control the behavior of the activity API.
const ( // ActivityAttrDeviceBufferSize: The device memory size (in bytes) reserved for storing profiling data for concurrent kernels (activity kind [ActivityKindConcurrentKernel]), memcopies and memsets for each buffer on a context. The value is a size_t. There is a limit on how many device buffers can be allocated per context. User can query and set this limit using the attribute [ActivityAttrDeviceBufferPoolLimit]. CUPTI doesn't pre-allocate all the buffers, it pre-allocates only those many buffers as set by the attribute [ActivityAttrDeviceBufferPreAllocateValue]. When all of the data in a buffer is consumed, it is added in the reuse pool, and CUPTI picks a buffer from this pool when a new buffer is needed. Thus memory footprint does not scale with the kernel count. Applications with the high density of kernels, memcopies and memsets might result in having CUPTI to allocate more device buffers. CUPTI allocates another buffer only when it runs out of the buffers in the reuse pool. Since buffer allocation happens in the main application thread, this might result in stalls in the critical path. CUPTI pre-allocates 3 buffers of the same size to mitigate this issue. User can query and set the pre-allocation limit using the attribute [ActivityAttrDeviceBufferPreAllocateValue]. Having larger buffer size leaves less device memory for the application. Having smaller buffer size increases the risk of dropping timestamps for records if too many kernels or memcopies or memsets are launched at one time. This value only applies to new buffer allocations. Set this value before initializing CUDA or before creating a context to ensure it is considered for the following allocations. The default value is 3200000 (~3MB) which can accommodate profiling data up to 100,000 kernels, memcopies and memsets combined. Note: Starting with the CUDA 12.0 Update 1 release, CUPTI allocates the profiling buffer in the device memory by default, which may improve the performance of the tracing run. To change the preferred location to page-locked host memory, refer to the attribute [ActivityAttrMemAllocationTypeHostPinned]. The size of the memory and maximum number of pools are still controlled by the attributes [ActivityAttrDeviceBufferSize] and [ActivityAttrDeviceBufferPoolLimit]. Note: The actual amount of device memory per buffer reserved by CUPTI might be larger. ActivityAttrDeviceBufferSize ActivityAttribute = 0 // ActivityAttrDeviceBufferSizeCdp: The device memory size (in bytes) reserved for storing profiling data for CDP operations for each buffer on a context. The value is a size_t. Having larger buffer size means less flush operations but consumes more device memory. This value only applies to new allocations. Set this value before initializing CUDA or before creating a context to ensure it is considered for the following allocations. The default value is 8388608 (8MB). Note: The actual amount of device memory per context reserved by CUPTI might be larger. ActivityAttrDeviceBufferSizeCdp ActivityAttribute = 1 // ActivityAttrDeviceBufferPoolLimit: The maximum number of device memory buffers per context. The value is a size_t. For an application with high rate of kernel launches, memcopies and memsets having a bigger pool limit helps in timestamp collection for all these activities at the expense of a larger memory footprint. Refer to the description of the attribute [ActivityAttrDeviceBufferSize] for more details. Setting this value will not modify the number of memory buffers currently stored. Set this value before initializing CUDA to ensure the limit is not exceeded. The default value is 250. ActivityAttrDeviceBufferPoolLimit ActivityAttribute = 2 // ActivityAttrProfilingSemaphorePoolSize: This attribute is not supported starting with CUDA 12.3 CUPTI no longer uses profiling semaphore pool to store profiling data. There is a limit on how many semaphore pools can be allocated per context. User can query and set this limit using the attribute [ActivityAttrProfilingSemaphorePoolLimit]. CUPTI doesn't pre-allocate all the semaphore pools, it pre-allocates only those many semaphore pools as set by the attribute [ActivityAttrProfilingSemaphorePreAllocateValue]. When all of the data in a semaphore pool is consumed, it is added in the reuse pool, and CUPTI picks a semaphore pool from the reuse pool when a new semaphore pool is needed. Thus memory footprint does not scale with the kernel count. Applications with the high density of kernels might result in having CUPTI to allocate more semaphore pools. CUPTI allocates another semaphore pool only when it runs out of the semaphore pools in the reuse pool. Since semaphore pool allocation happens in the main application thread, this might result in stalls in the critical path. CUPTI pre-allocates 3 semaphore pools of the same size to mitigate this issue. User can query and set the pre-allocation limit using the attribute [ActivityAttrProfilingSemaphorePreAllocateValue]. Having larger semaphore pool size leaves less device memory for the application. Having smaller semaphore pool size increases the risk of dropping timestamps for kernel records if too many kernels are issued/launched at one time. This value only applies to new semaphore pool allocations. Set this value before initializing CUDA or before creating a context to ensure it is considered for the following allocations. The default value is 25000 which can accommodate profiling data for upto 25,000 kernels. ActivityAttrProfilingSemaphorePoolSize ActivityAttribute = 3 // ActivityAttrProfilingSemaphorePoolLimit: This attribute is not supported starting with CUDA 12.3 CUPTI no longer uses profiling semaphore pool to store profiling data. The maximum number of profiling semaphore pools per context. The value is a size_t. Refer to the description of the attribute [ActivityAttrProfilingSemaphorePoolSize] for more details. Set this value before initializing CUDA to ensure the limit is not exceeded. The default value is 250. ActivityAttrProfilingSemaphorePoolLimit ActivityAttribute = 4 // ActivityAttrZeroedOutActivityBuffer: The flag to indicate whether user should provide activity buffer of zero value. The value is a uint8_t. If the value of this attribute is non-zero, user should provide a zero value buffer in the [BuffersCallbackRequestFunc]. If the user does not provide a zero value buffer after setting this to non-zero, the activity buffer may contain some uninitialized values when CUPTI returns it in [BuffersCallbackCompleteFunc]. If the value of this attribute is zero, CUPTI will initialize the user buffer received in the [BuffersCallbackRequestFunc] to zero before filling it. If the user sets this to zero, a few stalls may appear in critical path because CUPTI will zero out the buffer in the main thread. Set this value before returning from [BuffersCallbackRequestFunc] to ensure it is considered for all the subsequent user buffers. The default value is 0. ActivityAttrZeroedOutActivityBuffer ActivityAttribute = 5 // ActivityAttrDeviceBufferPreAllocateValue: Number of device buffers to pre-allocate for a context during the initialization phase. The value is a size_t. Refer to the description of the attribute [ActivityAttrDeviceBufferSize] for details. This value must be less than the maximum number of device buffers set using the attribute [ActivityAttrDeviceBufferPoolLimit]. Set this value before initializing CUDA or before creating a context to ensure it is considered by the CUPTI. The default value is set to 3 to ping pong between these buffers (if possible). ActivityAttrDeviceBufferPreAllocateValue ActivityAttribute = 6 // ActivityAttrProfilingSemaphorePreAllocateValue: This attribute is not supported starting with CUDA 12.3 CUPTI no longer uses profiling semaphore pool to store profiling data. Number of profiling semaphore pools to pre-allocate for a context during the initialization phase. The value is a size_t. Refer to the description of the attribute [ActivityAttrProfilingSemaphorePoolSize] for details. This value must be less than the maximum number of profiling semaphore pools set using the attribute [ActivityAttrProfilingSemaphorePoolLimit]. Set this value before initializing CUDA or before creating a context to ensure it is considered by the CUPTI. The default value is set to 3 to ping pong between these pools (if possible). ActivityAttrProfilingSemaphorePreAllocateValue ActivityAttribute = 7 // ActivityAttrMemAllocationTypeHostPinned: Allocate page-locked (pinned) host memory for storing profiling data for concurrent kernels, memcopies and memsets for each buffer on a context. The value is a uint8_t. From CUDA 11.2 through CUDA 12.0 GA releases, CUPTI allocated the profiling buffer in pinned host memory by default. Allocating excessive amounts of pinned memory may degrade system performance, as it reduces the amount of memory available to the system for paging. For this reason user might want to change the location from pinned host memory to device memory by setting value of this attribute to 0. Using page-locked (pinned) host memory buffers is not supported on confidential computing devices. If this attribute is set to 1, CUPTI will return error [ErrNotSupported]. The default value is 0. ActivityAttrMemAllocationTypeHostPinned ActivityAttribute = 8 // ActivityAttrPerThreadActivityBuffer: Request activity buffers per-thread to store CUPTI activity records in the activity buffer on per-thread basis. The value is a uint8_t. The attribute should be set before registering the buffer callbacks using [ActivityRegisterCallbacks] API and before any of the CUPTI activity kinds are enabled. This makes sure that all the records are stored in activity buffers allocated per-thread. Changing this attribute in the middle of the profiling session will result in undefined behavior. The default value is 1. ActivityAttrPerThreadActivityBuffer ActivityAttribute = 9 // ActivityAttrDeviceBufferSizeDeviceGraphs: The device memory size (in bytes) reserved for storing profiling data for device graph operations for each buffer on a context. The value is a size_t. Having larger buffer size means less flush operations but consumes more device memory. This value only applies to new allocations. Set this value before initializing CUDA or before creating a context to ensure it is considered for the following allocations. The default value is 16777216 (16MB). Note: The actual amount of device memory per context reserved by CUPTI might be larger. ActivityAttrDeviceBufferSizeDeviceGraphs ActivityAttribute = 10 // ActivityAttrUserDefinedRecords: Enable user-defined activity records. The value is a uint8_t. When this attribute is enabled, CUPTI activity records will contain only the fields that are enabled for collection by the user. This can help to reduce the size of each activity record and decrease the overall memory consumption for activity collection. This attribute must be set before enabling any CUPTI activity kinds. The activity kinds should be enabled/disabled using CUPTI API [Subscriber.ActivityEnableV2] and [Subscriber.ActivityDisableV2] respectively. Minimum CUPTI Version: CUPTI_API_VERSION 130200 (CUDA 13.2) — beta. Productized (no longer beta) in CUPTI_API_VERSION 130300 (CUDA 13.3). The CUPTI version can be queried using [GetVersion] API. Refer these links for online documentation: CUPTI Activity User-Defined Records: https://docs.nvidia.com/cupti/main/main.html#cupti-user-defined-activity-records Tutorial: https://docs.nvidia.com/cupti/tutorial/tutorial.html#tutorial-activity-user-defined-records Refer sample cupti_user_defined_records for usage. The default value is 0 i.e. CUPTI will provide records with all fields. ActivityAttrUserDefinedRecords ActivityAttribute = 11 // ActivityAttrMultipleSubscriberState: Allow multiple subscribers. The value is a uint8_t. If 0, only a single subscriber is allowed. If 1, multiple subscribers are allowed. If 2, this option has not been set by a prior subscriber, if there were any. In this case, the subscriber is free to set it during [SubscribeV2] call. Note that this attribute cannot be set by [ActivitySetAttribute] or [Subscriber.ActivitySetAttributeV2]. It can however be queried using [Subscriber.ActivityGetAttributeV2]. ActivityAttrMultipleSubscriberState ActivityAttribute = 12 // ActivityAttrEnableHes: Get the HES (Hardware Events System) enabled flag. The value is a uint8_t. If 0, HES (Hardware Events System) is disabled. If 1, HES (Hardware Events System) is enabled. Note that this attribute can be set by [Subscriber.ActivitySetAttributeV2] and queried using [Subscriber.ActivityGetAttributeV2]. This attribute is not subscriber specific, and the subscriber parameter is ignored. All subscribers will share the same HES enabled flag. However, this attribute must be set before enabling any activity kind by any subscriber. However, it can be queried using [Subscriber.ActivityGetAttributeV2]. ActivityAttrEnableHes ActivityAttribute = 13 // ActivityAttrEnableAllocationSourceTracking: Get the allocation source library tracking enabled flag (for the specified subscriber). The value is a uint8_t. If 0, allocation source library tracking is disabled. If 1, allocation source library tracking is enabled. Note that this attribute can be set by [Subscriber.ActivitySetAttributeV2] and queried using [Subscriber.ActivityGetAttributeV2] for the specified subscriber. Note that the [ActivityEnableAllocationSource] API cannot be used when multiple subscribers are allowed. ActivityAttrEnableAllocationSourceTracking ActivityAttribute = 14 // ActivityAttrEnableKernelLatencyTimestamps: Get the latency timestamp tracking enabled flag (for the specified subscriber). The value is a uint8_t. This can be used to toggle collecting latency timestamps for kernel records. If 0, latency timestamp tracking is disabled. If 1, latency timestamp tracking is enabled. Note that this attribute can be set by [Subscriber.ActivitySetAttributeV2] and queried using [Subscriber.ActivityGetAttributeV2] for the specified subscriber. ActivityAttrEnableKernelLatencyTimestamps ActivityAttribute = 15 // ActivityAttrEnableAllSyncRecords: Get the all sync records enabled flag (for the specified subscriber). The value is a uint8_t. This can be used to toggle collecting sync records for all synchronization operations (whether to include records for synchronization operations which return non-zero CUDA status). By default, this flag is set to 0. If this flag is set to 1, sync records are collected for all synchronization operations (even if they return non-zero CUDA status). Note that this attribute can be set by [Subscriber.ActivitySetAttributeV2] and queried using [Subscriber.ActivityGetAttributeV2] for the specified subscriber. ActivityAttrEnableAllSyncRecords ActivityAttribute = 16 // ActivityAttrEnableCudaEventDeviceTimestamps: Get the event device timestamps enabled flag (for the specified subscriber). The value is a uint8_t. This can be used to toggle collecting event device timestamps for CUDA event records. By default, this flag is set to 0. If this flag is set to 1, event device timestamps are collected for CUDA event records. Note that this attribute can be set by [Subscriber.ActivitySetAttributeV2] and queried using [Subscriber.ActivityGetAttributeV2] for the specified subscriber. ActivityAttrEnableCudaEventDeviceTimestamps ActivityAttribute = 17 // ActivityAttrEnableKernelLaunchAttributes: Get the launch attributes for kernel enabled flag (for the specified subscriber). The value is a uint8_t. This can be used to toggle collecting launch attributes for kernel records. By default, this flag is set to 0. If this flag is set to 1, launch attributes are collected for kernel records. Note that this attribute can be set by [Subscriber.ActivitySetAttributeV2] and queried using [Subscriber.ActivityGetAttributeV2] for the specified subscriber. ActivityAttrEnableKernelLaunchAttributes ActivityAttribute = 18 // ActivityAttrEnableDeviceGraphTrace: Get the device graph trace enabled flag (for the specified subscriber). The value is a uint8_t. This can be used to toggle collecting device graph trace for graph records. By default, this flag is set to 0. If this flag is set to 1, device graph trace is collected for graph records. Note that this attribute can be set by [Subscriber.ActivitySetAttributeV2] and queried using [Subscriber.ActivityGetAttributeV2] for the specified subscriber. ActivityAttrEnableDeviceGraphTrace ActivityAttribute = 19 // ActivityAttrEnableMultiSubscriberGraphTrace: Get the multi-subscriber graph level trace enabled flag. The value is a uint8_t. This attribute is honored only when allowMultipleSubscribers is set to 1 in [SubscribeV2]. Otherwise setting it succeeds without changing the trace mode. CUPTI does not support different subscribers requesting node-level and graph-level trace concurrently. If this flag is disabled, body nodes of a graph are reported under normal concurrent kernel/ memcpy/ memset records. If this flag is enabled, body nodes of a graph are not reported under normal concurrent kernel/ memcpy/ memset records, but the graph is entirely reported as part of a single graph trace record(if [ActivityKindGraphTrace] is enabled for the subscriber). Note that this behavior is consistent across all subscribers, regardless of which activities each subscriber is enabling. If 0, multi-subscriber graph level trace is disabled. If 1, multi-subscriber graph level trace is enabled. The default value is 0. This attribute can be set by [Subscriber.ActivitySetAttributeV2] and queried using [Subscriber.ActivityGetAttributeV2]. In multi-subscriber mode, it must be set before any activity kind is enabled by any subscriber. The first value is global and remains locked after activity disable and subscriber teardown. A value of 0 prevents [ActivityKindGraphTrace] from being enabled. A value of 1 immediately selects graph-level trace globally; each subscriber must still enable [ActivityKindGraphTrace] to receive graph records. Graph trace mode remains active after the activity is disabled or all subscribers unsubscribe. ActivityAttrEnableMultiSubscriberGraphTrace ActivityAttribute = 20 // ActivityAttrThreadIdType: Get or set the thread ID type (for the specified subscriber). The value is a [ActivityThreadIdType]. This attribute specifies the method used by CUPTI to obtain thread IDs. The default value is [ActivityThreadIdTypeDefault]. Note that this attribute can be set by [Subscriber.ActivitySetAttributeV2] and queried using [Subscriber.ActivityGetAttributeV2] for the specified subscriber. ActivityAttrThreadIdType ActivityAttribute = 21 // ActivityAttrTimestampCallback: Get or set the timestamp callback function (for the specified subscriber). The value is a [TimestampCallbackFunc]. This attribute allows registering a custom timestamp callback function that CUPTI will use instead of its default CPU timer. The value can be NULL to unregister the callback. Note that this attribute can be set by [Subscriber.ActivitySetAttributeV2] and queried using [Subscriber.ActivityGetAttributeV2] for the specified subscriber. ActivityAttrTimestampCallback ActivityAttribute = 22 // ActivityAttrEnableCigMode: Get or set the CIG (CUDA in Graphics) mode. The value is a uint8_t. This attribute allows enabling or disabling the CIG mode. Note that this attribute can be set by [Subscriber.ActivitySetAttributeV2] and queried using [Subscriber.ActivityGetAttributeV2]. ActivityAttrEnableCigMode ActivityAttribute = 23 // ActivityAttrHesBufferSize: The memory size (in MB) reserved for storing timestamps for Hardware Event System (HES) for each context. The value is a size_t. This is a page-locked host memory. CUPTI pre-allocates a single circular buffer for HES for each context. The buffer gets filled as kernels, memcopies and memsets get launched and is emptied through internal flushes based on heuristics, or through user flushes. Having larger buffer size leaves less host memory for the application and will also require lesser user or internal flushes. Having smaller buffer size increases the risk of dropping timestamps for records if too many kernels or memcopies or memsets are launched at one time. The default value is 128 (128 MB) which can accommodate profiling data for roughly ~4000,000 kernels, memcopies and memsets combined. Note: This option applies only when [ActivityAttrEnableHes] is selected. ActivityAttrHesBufferSize ActivityAttribute = 24 ActivityAttrCount ActivityAttribute = 25 ActivityAttrDeviceBufferForceInt ActivityAttribute = 0x7fffffff // // Deprecated: Use ActivityAttrEnableMultiSubscriberGraphTrace. CUDA 13.3 renamed CUPTI_ACTIVITY_ATTR_ENABLE_MULTI_SUBSCRIBER_GRAPH_LEVEL_TRACE; the value is unchanged. ActivityAttrEnableMultiSubscriberGraphLevelTrace = ActivityAttrEnableMultiSubscriberGraphTrace // // Deprecated: Use ActivityAttrEnableCigMode. CUDA 13.3 renamed CUPTI_ACTIVITY_ATTR_CIG_MODE; the value is unchanged. ActivityAttrCigMode = ActivityAttrEnableCigMode )
func (ActivityAttribute) String ¶
func (e ActivityAttribute) String() string
String returns the constant name, or a numeric representation for unknown values.
type ActivityAutoBoostState ¶
type ActivityAutoBoostState struct {
Enabled uint32
Pid uint32
// contains filtered or unexported fields
}
ActivityAutoBoostState represents device auto boost state structure.
This structure defines auto boost state for a device. See function GetAutoBoostState
type ActivityBranch
deprecated
type ActivityBranch struct {
Kind ActivityKind
SourceLocatorId uint32
CorrelationId uint32
PcOffset uint32
Executed uint32
Diverged uint32
ThreadsExecuted uint64
}
ActivityBranch represents the activity record for source level result branch.
This activity record the locations of the branches in the source (ActivityKindBranch). Branch activities are now reported using the ActivityBranch2 activity record.
Deprecated: Use ActivityBranch2 instead.
type ActivityBranch2 ¶
type ActivityBranch2 struct {
Kind ActivityKind
SourceLocatorId uint32
CorrelationId uint32
FunctionId uint32
PcOffset uint32
Diverged uint32
ThreadsExecuted uint64
Executed uint32
Pad uint32
}
ActivityBranch2 represents the activity record for source level result branch.
This activity record the locations of the branches in the source (ActivityKindBranch).
type ActivityCdpKernel ¶
type ActivityCdpKernel struct {
Kind ActivityKind
CacheConfig [1]byte
RegistersPerThread uint16
Start uint64
End uint64
DeviceId uint32
ContextId uint32
StreamId uint32
GridX int32
GridY int32
GridZ int32
BlockX int32
BlockY int32
BlockZ int32
LocalMemoryPerThread uint32
LocalMemoryTotal uint32
CorrelationId uint32
GridId int64
ParentGridId int64
Queued uint64
Submitted uint64
Completed uint64
ParentBlock Dim3
Pad uint32
Name uintptr
}
ActivityCdpKernel represents the activity record for CDP (CUDA Dynamic Parallelism) kernel.
This activity record represents a CDP kernel execution.
type ActivityComputeApiKind ¶
type ActivityComputeApiKind int32
ActivityComputeApiKind represents the kind of a compute API.
const ( ActivityComputeApiUnknown ActivityComputeApiKind = 0 // The compute API is not known. ActivityComputeApiCuda ActivityComputeApiKind = 1 // The compute APIs are for CUDA. // ActivityComputeApiCudaMps: The compute APIs are for CUDA running in MPS (Multi-Process Service) environment. ActivityComputeApiCudaMps ActivityComputeApiKind = 2 ActivityComputeApiForceInt ActivityComputeApiKind = 0x7fffffff )
func (ActivityComputeApiKind) String ¶
func (e ActivityComputeApiKind) String() string
String returns the constant name, or a numeric representation for unknown values.
type ActivityComputeEngineCtxSwitch ¶
type ActivityComputeEngineCtxSwitch struct {
Kind ActivityKind
ContextId uint32
Timestamp uint64
OperationType ComputeEngineCtxSwitchOperationType
Padding uint32
}
ActivityComputeEngineCtxSwitch represents the activity record for trace of CUDA context switch events.
The corresponding activity kind is ActivityKindComputeEngineCtxSwitch.
type ActivityComputeEngineCtxSwitchFieldIds ¶
type ActivityComputeEngineCtxSwitchFieldIds int32
ActivityComputeEngineCtxSwitchFieldIds represents enum identifiers for fields in ActivityComputeEngineCtxSwitch.
Each enum value corresponds to a field in ActivityComputeEngineCtxSwitch and describes the data type and purpose of that field.
const ( // ComputeEngineCtxSwitchFieldKind: [ActivityKind] kind; Kind of this activity record. Always [ActivityKindComputeEngineCtxSwitch]. ComputeEngineCtxSwitchFieldKind ActivityComputeEngineCtxSwitchFieldIds = 0 ComputeEngineCtxSwitchFieldContextId ActivityComputeEngineCtxSwitchFieldIds = 1 // uint32_t contextId; ID of the CUDA context. // ComputeEngineCtxSwitchFieldTimestamp: uint64_t timestamp; Timestamp at which the context switch operation occurs. ComputeEngineCtxSwitchFieldTimestamp ActivityComputeEngineCtxSwitchFieldIds = 2 // ComputeEngineCtxSwitchFieldOperationType: [ComputeEngineCtxSwitchOperationType] operationType; Type of the Compute Engine Context switch operation. ComputeEngineCtxSwitchFieldOperationType ActivityComputeEngineCtxSwitchFieldIds = 3 )
func (ActivityComputeEngineCtxSwitchFieldIds) String ¶
func (e ActivityComputeEngineCtxSwitchFieldIds) String() string
String returns the constant name, or a numeric representation for unknown values.
type ActivityConfidentialComputeRotation ¶
type ActivityConfidentialComputeRotation struct {
Kind ActivityKind
EventType ConfidentialComputeRotationEventType
DeviceId uint32
ContextId uint32
ChannelId uint32
ChannelType ChannelType
Timestamp uint64
}
ActivityConfidentialComputeRotation represents event related to confidential compute encryption rotation.
This structure gives timestamps for stages of encryption rotation.
type ActivityConfidentialComputeRotationFieldIds ¶
type ActivityConfidentialComputeRotationFieldIds int32
ActivityConfidentialComputeRotationFieldIds represents enum identifiers for fields in ActivityConfidentialComputeRotation.
Each enum value corresponds to a field in ActivityConfidentialComputeRotation and describes the data type and purpose of that field.
const ( // ConfidentialComputeRotationFieldKind: [ActivityKind] kind; Kind of this activity record. Always [ActivityKindConfidentialComputeRotation]. ConfidentialComputeRotationFieldKind ActivityConfidentialComputeRotationFieldIds = 0 // ConfidentialComputeRotationFieldEventType: [ConfidentialComputeRotationEventType] eventType; Type of event. ConfidentialComputeRotationFieldEventType ActivityConfidentialComputeRotationFieldIds = 1 ConfidentialComputeRotationFieldDeviceId ActivityConfidentialComputeRotationFieldIds = 2 // uint32_t deviceId; Device ID. ConfidentialComputeRotationFieldContextId ActivityConfidentialComputeRotationFieldIds = 3 // uint32_t contextId; Context ID. ConfidentialComputeRotationFieldChannelId ActivityConfidentialComputeRotationFieldIds = 4 // uint32_t channelId; Channel ID. ConfidentialComputeRotationFieldChannelType ActivityConfidentialComputeRotationFieldIds = 5 // [ChannelType] channelType; Channel Type. ConfidentialComputeRotationFieldTimestamp ActivityConfidentialComputeRotationFieldIds = 6 // uint64_t timestamp; Timestamp in ns. )
func (ActivityConfidentialComputeRotationFieldIds) String ¶
func (e ActivityConfidentialComputeRotationFieldIds) String() string
String returns the constant name, or a numeric representation for unknown values.
type ActivityConfig ¶
type ActivityConfig struct {
StructSize uint
FieldSelection ActivityFieldSelection
PKindOptions uintptr
}
ActivityConfig represents activity configuration.
type ActivityContext ¶
type ActivityContext struct {
Kind ActivityKind
ContextId uint32
DeviceId uint32
ComputeApiKind uint16
NullStreamId uint16
// contains filtered or unexported fields
}
ActivityContext represents the activity record for a context.
This activity record represents information about a context (ActivityKindContext). Context activity is now reported using ActivityContext3 record.
type ActivityContext2 ¶
type ActivityContext2 struct {
Kind ActivityKind
ContextId uint32
DeviceId uint32
ComputeApiKind uint16
NullStreamId uint16
ParentContextId uint32
IsGreenContext uint8
Padding uint8
NumMultiprocessors uint16
// contains filtered or unexported fields
}
ActivityContext2 represents the activity record for a context.
This activity record represents information about a context (ActivityKindContext). Context activity is now reported using ActivityContext3 record.
type ActivityContext3 ¶
type ActivityContext3 struct {
Kind ActivityKind
ContextId uint32
DeviceId uint32
ComputeApiKind uint16
NullStreamId uint16
ParentContextId uint32
IsGreenContext uint8
Padding uint8
NumMultiprocessors uint16
CigMode ContextCigMode
Padding2 uint32
// contains filtered or unexported fields
}
ActivityContext3 represents the activity record for a context.
This activity record represents information about a context (ActivityKindContext).
type ActivityContext4 ¶
type ActivityContext4 struct {
Kind ActivityKind
ContextId uint32
DeviceId uint32
ComputeApiKind uint16
NullStreamId uint16
ParentContextId uint32
IsGreenContext uint8
Padding uint8
NumMultiprocessors uint16
CigMode ContextCigMode
Padding2 uint32
ProcessId uint64
}
ActivityContext4 represents the activity record for a context.
This activity record represents information about a context (ActivityKindContext).
type ActivityContextFieldIds ¶
type ActivityContextFieldIds int32
ActivityContextFieldIds represents enum identifiers for fields to trace context.
These field IDs are used to reference specific fields when dynamically selecting or parsing activity records of ActivityKindContext.
const ( // ContextFieldKind: [ActivityKind] kind; Kind of this activity record. Always [ActivityKindContext]. ContextFieldKind ActivityContextFieldIds = 0 ContextFieldContextId ActivityContextFieldIds = 1 // uint32_t contextId; The ID of the context. // ContextFieldDeviceId: uint32_t deviceId; The ID of the device associated with the context. ContextFieldDeviceId ActivityContextFieldIds = 2 // ContextFieldComputeApiKind: uint16_t computeApiKind; The compute API kind associated with the context. [ActivityComputeApiKind] ContextFieldComputeApiKind ActivityContextFieldIds = 3 // ContextFieldNullStreamId: uint32_t nullStreamId; The ID for the NULL stream in this context. ContextFieldNullStreamId ActivityContextFieldIds = 4 // ContextFieldParentContextId: uint32_t parentContextId; The ID of the parent context. It would be 0 if context does not have parent. ContextFieldParentContextId ActivityContextFieldIds = 5 // ContextFieldIsGreenContext: uint8_t isGreenContext; Indicates whether the context is a green context. ContextFieldIsGreenContext ActivityContextFieldIds = 6 // ContextFieldNumMultiprocessors: uint16_t numMultiprocessors; Number of multiprocessors assigned to the green context. Invalid if the field ‘isGreenContext’ is 0. ContextFieldNumMultiprocessors ActivityContextFieldIds = 7 ContextFieldCigMode ActivityContextFieldIds = 8 // [ContextCigMode] cigMode; The CIG mode of the context. // ContextFieldProcessId: uint32_t processId; The ID of the process associated with the context. ContextFieldProcessId ActivityContextFieldIds = 9 )
func (ActivityContextFieldIds) String ¶
func (e ActivityContextFieldIds) String() string
String returns the constant name, or a numeric representation for unknown values.
type ActivityCudaEvent
deprecated
type ActivityCudaEvent struct {
Kind ActivityKind
CorrelationId uint32
ContextId uint32
StreamId uint32
EventId uint32
Pad uint32
// contains filtered or unexported fields
}
ActivityCudaEvent represents the activity record for CUDA event.
This activity is used to track recorded events. (ActivityKindCudaEvent).
Deprecated: Deprecated in CUDA 12.8. Use ActivityCudaEvent2 instead. Structure deprecated in CUDA 12.8: Refer to ActivityCudaEvent2 for the latest structure.
type ActivityCudaEvent2
deprecated
type ActivityCudaEvent2 struct {
Kind ActivityKind
CorrelationId uint32
ContextId uint32
StreamId uint32
EventId uint32
Pad uint32
DeviceId uint32
Pad2 uint32
Reserved0 uintptr
DeviceTimestamp uint64
CudaEventSyncId uint64
}
ActivityCudaEvent2 represents the activity record for CUDA event.
This activity is used to track recorded events. (ActivityKindCudaEvent).
Deprecated: Deprecated in CUDA 13.5. Use ActivityCudaEvent3 instead. Structure deprecated in CUDA 13.5: Refer to ActivityCudaEvent3 for the latest structure.
type ActivityCudaEvent3 ¶
type ActivityCudaEvent3 struct {
Kind ActivityKind
CorrelationId uint32
ContextId uint32
StreamId uint32
EventId uint32
Pad uint32
DeviceId uint32
Pad2 uint32
Reserved0 uintptr
DeviceTimestamp uint64
CudaEventSyncId uint64
GraphNodeId uint64
GraphId uint32
SourceGraphId uint32
SourceGraphNodeId uint64
}
ActivityCudaEvent3 represents the activity record for CUDA event.
This activity is used to track recorded events. (ActivityKindCudaEvent).
type ActivityCudaEventFieldIds ¶
type ActivityCudaEventFieldIds int32
ActivityCudaEventFieldIds represents enum identifiers for fields to trace CUDA Event operations.
These field IDs are used to reference specific fields when dynamically selecting or parsing activity records of ActivityKindCudaEvent.
const ( // CudaEventFieldKind: [ActivityKind] kind; Kind of this activity record. Always [ActivityKindContext]. CudaEventFieldKind ActivityCudaEventFieldIds = 0 // CudaEventFieldCorrelationId: uint64_t correlationId; Correlation ID assigned to this CUDA Event operation. Matches the correlation ID in the CUDA driver/runtime API activity record that launched it. CudaEventFieldCorrelationId ActivityCudaEventFieldIds = 1 // CudaEventFieldContextId: uint32_t contextId; The ID of the context where the event was recorded. CudaEventFieldContextId ActivityCudaEventFieldIds = 2 // CudaEventFieldStreamId: uint32_t streamId; The compute stream where the event was recorded. CudaEventFieldStreamId ActivityCudaEventFieldIds = 3 // CudaEventFieldEventId: uint64_t eventId; A unique event ID to identify the event record. CudaEventFieldEventId ActivityCudaEventFieldIds = 4 // CudaEventFieldDeviceId: uint32_t deviceId; The ID of the device where the event was recorded. CudaEventFieldDeviceId ActivityCudaEventFieldIds = 5 // CudaEventFieldDeviceTimestamp: uint64_t deviceTimestamp; The device-side timestamp on CUDA event record (in nanoseconds). Collection of this field is disabled by default. It can be enabled by calling CUPTI API [ActivityEnableCudaEventDeviceTimestamps] CudaEventFieldDeviceTimestamp ActivityCudaEventFieldIds = 6 // CudaEventFieldCudaEventSyncId: uint64_t cudaEventSyncId; A unique ID to associate event synchronization records with the latest CUDA Event record. Similar field is added in [ActivitySynchronization2] to associate CUDA Event record to the synchronization record. The same CUDA event can be used multiple times, so the event id will not be unique to correlate the synchronization record with the latest CUDA Event record. This field will be unique and can be used to do the required correlation. CudaEventFieldCudaEventSyncId ActivityCudaEventFieldIds = 7 CudaEventFieldGraphNodeId ActivityCudaEventFieldIds = 8 CudaEventFieldGraphId ActivityCudaEventFieldIds = 9 CudaEventFieldSourceGraphId ActivityCudaEventFieldIds = 10 CudaEventFieldSourceGraphNodeId ActivityCudaEventFieldIds = 11 )
func (ActivityCudaEventFieldIds) String ¶
func (e ActivityCudaEventFieldIds) String() string
String returns the constant name, or a numeric representation for unknown values.
type ActivityDevice
deprecated
type ActivityDevice struct {
Kind ActivityKind
Flags ActivityFlag
GlobalMemoryBandwidth uint64
GlobalMemorySize uint64
ConstantMemorySize uint32
L2CacheSize uint32
NumThreadsPerWarp uint32
CoreClockRate uint32
NumMemcpyEngines uint32
NumMultiprocessors uint32
MaxIPC uint32
MaxWarpsPerMultiprocessor uint32
MaxBlocksPerMultiprocessor uint32
MaxRegistersPerBlock uint32
MaxThreadsPerBlock uint32
MaxBlockDim Dim3
MaxGridDim Dim3
ComputeCapabilityMajor uint32
ComputeCapabilityMinor uint32
Id uint32
Pad uint32
Name uintptr
}
ActivityDevice represents the activity record for a device.
This activity record represents information about a GPU device (ActivityKindDevice). Device activity is now reported using the ActivityDevice6 activity record.
Deprecated: Use ActivityDevice6 instead.
type ActivityDevice2
deprecated
type ActivityDevice2 struct {
Kind ActivityKind
Flags ActivityFlag
GlobalMemoryBandwidth uint64
GlobalMemorySize uint64
ConstantMemorySize uint32
L2CacheSize uint32
NumThreadsPerWarp uint32
CoreClockRate uint32
NumMemcpyEngines uint32
NumMultiprocessors uint32
MaxIPC uint32
MaxWarpsPerMultiprocessor uint32
MaxBlocksPerMultiprocessor uint32
MaxRegistersPerMultiprocessor uint32
MaxRegistersPerBlock uint32
MaxThreadsPerBlock uint32
MaxBlockDim Dim3
MaxGridDim Dim3
ComputeCapabilityMajor uint32
ComputeCapabilityMinor uint32
Id uint32
EccEnabled uint32
Uuid [16]byte
Name uintptr
}
ActivityDevice2 represents the activity record for a device.
This activity record represents information about a GPU device (ActivityKindDevice). Device activity is now reported using the ActivityDevice6 activity record.
Deprecated: Use ActivityDevice6 instead.
type ActivityDevice3 ¶
type ActivityDevice3 struct {
Kind ActivityKind
Flags ActivityFlag
GlobalMemoryBandwidth uint64
GlobalMemorySize uint64
ConstantMemorySize uint32
L2CacheSize uint32
NumThreadsPerWarp uint32
CoreClockRate uint32
NumMemcpyEngines uint32
NumMultiprocessors uint32
MaxIPC uint32
MaxWarpsPerMultiprocessor uint32
MaxBlocksPerMultiprocessor uint32
MaxRegistersPerMultiprocessor uint32
MaxRegistersPerBlock uint32
MaxThreadsPerBlock uint32
MaxBlockDim Dim3
MaxGridDim Dim3
ComputeCapabilityMajor uint32
ComputeCapabilityMinor uint32
Id uint32
EccEnabled uint32
Uuid [16]byte
Name uintptr
IsCudaVisible uint8
Reserved [7]uint8
}
ActivityDevice3 represents the activity record for a device.
(CUDA 7.0 onwards). This activity record represents information about a GPU device (ActivityKindDevice). Device activity is now reported using the ActivityDevice6 activity record.
type ActivityDevice4 ¶
type ActivityDevice4 struct {
Kind ActivityKind
Flags ActivityFlag
GlobalMemoryBandwidth uint64
GlobalMemorySize uint64
ConstantMemorySize uint32
L2CacheSize uint32
NumThreadsPerWarp uint32
CoreClockRate uint32
NumMemcpyEngines uint32
NumMultiprocessors uint32
MaxIPC uint32
MaxWarpsPerMultiprocessor uint32
MaxBlocksPerMultiprocessor uint32
MaxRegistersPerMultiprocessor uint32
MaxRegistersPerBlock uint32
MaxThreadsPerBlock uint32
MaxBlockDim Dim3
MaxGridDim Dim3
ComputeCapabilityMajor uint32
ComputeCapabilityMinor uint32
Id uint32
EccEnabled uint32
Uuid [16]byte
Name uintptr
IsCudaVisible uint8
IsMigEnabled uint8
Reserved [6]uint8
GpuInstanceId uint32
ComputeInstanceId uint32
MigUuid [16]byte
}
ActivityDevice4 represents the activity record for a device.
(CUDA 11.6 onwards). This activity record represents information about a GPU device (ActivityKindDevice). Device activity is now reported using the ActivityDevice6 activity record.
type ActivityDevice5 ¶
type ActivityDevice5 struct {
Kind ActivityKind
Flags ActivityFlag
GlobalMemoryBandwidth uint64
GlobalMemorySize uint64
ConstantMemorySize uint32
L2CacheSize uint32
NumThreadsPerWarp uint32
CoreClockRate uint32
NumMemcpyEngines uint32
NumMultiprocessors uint32
MaxIPC uint32
MaxWarpsPerMultiprocessor uint32
MaxBlocksPerMultiprocessor uint32
MaxRegistersPerMultiprocessor uint32
MaxRegistersPerBlock uint32
MaxThreadsPerBlock uint32
MaxBlockDim Dim3
MaxGridDim Dim3
ComputeCapabilityMajor uint32
ComputeCapabilityMinor uint32
Id uint32
EccEnabled uint32
Uuid [16]byte
Name uintptr
IsCudaVisible uint8
IsMigEnabled uint8
Reserved [6]uint8
GpuInstanceId uint32
ComputeInstanceId uint32
MigUuid [16]byte
IsNumaNode uint32
NumaId uint32
}
ActivityDevice5 represents the activity record for a device.
(CUDA 11.6 onwards). This activity record represents information about a GPU device (ActivityKindDevice).
type ActivityDevice6 ¶
type ActivityDevice6 struct {
Kind ActivityKind
Flags ActivityFlag
GlobalMemoryBandwidth uint64
GlobalMemorySize uint64
ConstantMemorySize uint32
L2CacheSize uint32
NumThreadsPerWarp uint32
CoreClockRate uint32
NumMemcpyEngines uint32
NumMultiprocessors uint32
MaxIPC uint32
MaxWarpsPerMultiprocessor uint32
MaxBlocksPerMultiprocessor uint32
MaxRegistersPerMultiprocessor uint32
MaxRegistersPerBlock uint32
MaxThreadsPerBlock uint32
MaxBlockDim Dim3
MaxGridDim Dim3
ComputeCapabilityMajor uint32
ComputeCapabilityMinor uint32
Id uint32
EccEnabled uint32
Uuid [16]byte
Name uintptr
IsCudaVisible uint8
IsMigEnabled uint8
Reserved [6]uint8
GpuInstanceId uint32
ComputeInstanceId uint32
MigUuid [16]byte
IsNumaNode uint32
NumaId uint32
NumTpcs uint32
Reserved0 uint32
}
ActivityDevice6 represents the activity record for a device.
This activity record represents information about a GPU device (ActivityKindDevice).
type ActivityDeviceAttribute ¶
type ActivityDeviceAttribute struct {
Kind ActivityKind
Flags ActivityFlag
DeviceId uint32
Attribute [1]uint32
Value [1]uint64
}
ActivityDeviceAttribute represents the activity record for a device attribute.
This activity record represents information about a GPU device: either a DeviceAttribute or CUdevice_attribute value (ActivityKindDeviceAttribute).
func (*ActivityDeviceAttribute) Cu ¶
func (a *ActivityDeviceAttribute) Cu() int32
Cu returns the CUDA device attribute stored in Attribute.
func (*ActivityDeviceAttribute) Cupti ¶
func (a *ActivityDeviceAttribute) Cupti() DeviceAttribute
Cupti returns the CUPTI device attribute stored in Attribute.
func (*ActivityDeviceAttribute) SetCu ¶
func (a *ActivityDeviceAttribute) SetCu(v int32)
SetCu stores a CUDA device attribute in Attribute.
func (*ActivityDeviceAttribute) SetCupti ¶
func (a *ActivityDeviceAttribute) SetCupti(v DeviceAttribute)
SetCupti stores a CUPTI device attribute in Attribute.
func (*ActivityDeviceAttribute) SetVDouble ¶
func (a *ActivityDeviceAttribute) SetVDouble(v float64)
SetVDouble stores a float64 value.
func (*ActivityDeviceAttribute) SetVInt32 ¶
func (a *ActivityDeviceAttribute) SetVInt32(v int32)
SetVInt32 stores an int32 value.
func (*ActivityDeviceAttribute) SetVInt64 ¶
func (a *ActivityDeviceAttribute) SetVInt64(v int64)
SetVInt64 stores an int64 value.
func (*ActivityDeviceAttribute) SetVUint32 ¶
func (a *ActivityDeviceAttribute) SetVUint32(v uint32)
SetVUint32 stores a uint32 value.
func (*ActivityDeviceAttribute) SetVUint64 ¶
func (a *ActivityDeviceAttribute) SetVUint64(v uint64)
SetVUint64 stores a uint64 value.
func (*ActivityDeviceAttribute) VDouble ¶
func (a *ActivityDeviceAttribute) VDouble() float64
VDouble returns the value as a float64.
func (*ActivityDeviceAttribute) VInt32 ¶
func (a *ActivityDeviceAttribute) VInt32() int32
VInt32 returns the value as an int32.
func (*ActivityDeviceAttribute) VInt64 ¶
func (a *ActivityDeviceAttribute) VInt64() int64
VInt64 returns the value as an int64.
func (*ActivityDeviceAttribute) VUint32 ¶
func (a *ActivityDeviceAttribute) VUint32() uint32
VUint32 returns the value as a uint32.
func (*ActivityDeviceAttribute) VUint64 ¶
func (a *ActivityDeviceAttribute) VUint64() uint64
VUint64 returns the value as a uint64.
type ActivityDeviceFieldIds ¶
type ActivityDeviceFieldIds int32
ActivityDeviceFieldIds represents enum identifiers for fields in ActivityDevice6.
Each enum value corresponds to a field in ActivityDevice6 and describes the data type and purpose of that field.
const ( // DeviceFieldKind: [ActivityKind] kind; Kind of this activity record. Always [ActivityKindDevice]. DeviceFieldKind ActivityDeviceFieldIds = 0 DeviceFieldFlags ActivityDeviceFieldIds = 1 // [ActivityFlag] flags; Flags associated with the device. // DeviceFieldGlobalMemoryBandwidth: uint64_t globalMemoryBandwidth; Global memory bandwidth available on the device (in kBytes/sec). DeviceFieldGlobalMemoryBandwidth ActivityDeviceFieldIds = 2 // DeviceFieldGlobalMemorySize: uint64_t globalMemorySize; Amount of global memory on the device (in bytes). DeviceFieldGlobalMemorySize ActivityDeviceFieldIds = 3 // DeviceFieldConstantMemorySize: uint32_t constantMemorySize; Amount of constant memory on the device (in bytes). DeviceFieldConstantMemorySize ActivityDeviceFieldIds = 4 // DeviceFieldL2CacheSize: uint32_t l2CacheSize; Size of the L2 cache on the device (in bytes). DeviceFieldL2CacheSize ActivityDeviceFieldIds = 5 // DeviceFieldNumThreadsPerWarp: uint32_t numThreadsPerWarp; Number of threads per warp on the device. DeviceFieldNumThreadsPerWarp ActivityDeviceFieldIds = 6 // DeviceFieldCoreClockRate: uint32_t coreClockRate; Core clock rate of the device (in kHz). DeviceFieldCoreClockRate ActivityDeviceFieldIds = 7 // DeviceFieldNumMemcpyEngines: uint32_t numMemcpyEngines; Number of memory copy engines on the device. DeviceFieldNumMemcpyEngines ActivityDeviceFieldIds = 8 // DeviceFieldNumMultiprocessors: uint32_t numMultiprocessors; Number of multiprocessors on the device. DeviceFieldNumMultiprocessors ActivityDeviceFieldIds = 9 // DeviceFieldMaxIpc: uint32_t maxIPC; Maximum instructions per cycle possible on each device multiprocessor. DeviceFieldMaxIpc ActivityDeviceFieldIds = 10 // DeviceFieldMaxWarpsPerMultiprocessor: uint32_t maxWarpsPerMultiprocessor; Maximum number of warps that can be present on a multiprocessor. DeviceFieldMaxWarpsPerMultiprocessor ActivityDeviceFieldIds = 11 // DeviceFieldMaxBlocksPerMultiprocessor: uint32_t maxBlocksPerMultiprocessor; Maximum number of blocks that can be present on a multiprocessor. DeviceFieldMaxBlocksPerMultiprocessor ActivityDeviceFieldIds = 12 DeviceFieldMaxSharedMemoryPerMultiprocessor ActivityDeviceFieldIds = 13 // DeviceFieldMaxRegistersPerMultiprocessor: uint32_t maxRegistersPerMultiprocessor; Maximum number of 32-bit registers available per multiprocessor. DeviceFieldMaxRegistersPerMultiprocessor ActivityDeviceFieldIds = 14 // DeviceFieldMaxRegistersPerBlock: uint32_t maxRegistersPerBlock; Maximum number of registers that can be allocated to a block. DeviceFieldMaxRegistersPerBlock ActivityDeviceFieldIds = 15 DeviceFieldMaxSharedMemoryPerBlock ActivityDeviceFieldIds = 16 // DeviceFieldMaxThreadsPerBlock: uint32_t maxThreadsPerBlock; Maximum number of threads allowed in a block. DeviceFieldMaxThreadsPerBlock ActivityDeviceFieldIds = 17 // DeviceFieldMaxBlockDimX: uint32_t maxBlockDimX; Maximum allowed X dimension for a block. DeviceFieldMaxBlockDimX ActivityDeviceFieldIds = 18 // DeviceFieldMaxBlockDimY: uint32_t maxBlockDimY; Maximum allowed Y dimension for a block. DeviceFieldMaxBlockDimY ActivityDeviceFieldIds = 19 // DeviceFieldMaxBlockDimZ: uint32_t maxBlockDimZ; Maximum allowed Z dimension for a block. DeviceFieldMaxBlockDimZ ActivityDeviceFieldIds = 20 // DeviceFieldMaxGridDimX: uint32_t maxGridDimX; Maximum allowed X dimension for a grid. DeviceFieldMaxGridDimX ActivityDeviceFieldIds = 21 // DeviceFieldMaxGridDimY: uint32_t maxGridDimY; Maximum allowed Y dimension for a grid. DeviceFieldMaxGridDimY ActivityDeviceFieldIds = 22 // DeviceFieldMaxGridDimZ: uint32_t maxGridDimZ; Maximum allowed Z dimension for a grid. DeviceFieldMaxGridDimZ ActivityDeviceFieldIds = 23 // DeviceFieldComputeCapabilityMajor: uint32_t computeCapabilityMajor; Compute capability for the device (major number). DeviceFieldComputeCapabilityMajor ActivityDeviceFieldIds = 24 // DeviceFieldComputeCapabilityMinor: uint32_t computeCapabilityMinor; Compute capability for the device (minor number). DeviceFieldComputeCapabilityMinor ActivityDeviceFieldIds = 25 DeviceFieldId ActivityDeviceFieldIds = 26 // uint32_t id; Device ID. DeviceFieldEccEnabled ActivityDeviceFieldIds = 27 // uint32_t eccEnabled; ECC enabled flag for device. DeviceFieldUuid ActivityDeviceFieldIds = 28 // [16]byte uuid; Device UUID. DeviceFieldName ActivityDeviceFieldIds = 29 // const char *name; Device name. // DeviceFieldIsCudaVisible: uint8_t isCudaVisible; Flag to indicate whether the device is visible to CUDA. DeviceFieldIsCudaVisible ActivityDeviceFieldIds = 30 DeviceFieldIsMigEnabled ActivityDeviceFieldIds = 31 // uint8_t isMigEnabled; MIG enabled flag for device. // DeviceFieldGpuInstanceId: uint32_t gpuInstanceId; GPU instance ID for MIG enabled devices. DeviceFieldGpuInstanceId ActivityDeviceFieldIds = 32 // DeviceFieldComputeInstanceId: uint32_t computeInstanceId; Compute instance ID for MIG enabled devices. DeviceFieldComputeInstanceId ActivityDeviceFieldIds = 33 DeviceFieldMigUuid ActivityDeviceFieldIds = 34 // [16]byte migUuid; MIG UUID. DeviceFieldIsNumaNode ActivityDeviceFieldIds = 35 // uint32_t isNumaNode; NUMA node flag for device. DeviceFieldNumaId ActivityDeviceFieldIds = 36 // uint32_t numaId; NUMA node ID of the GPU memory. DeviceFieldNumTpcs ActivityDeviceFieldIds = 37 // uint32_t numTpcs; Number of TPCs on the device. )
func (ActivityDeviceFieldIds) String ¶
func (e ActivityDeviceFieldIds) String() string
String returns the constant name, or a numeric representation for unknown values.
type ActivityDeviceGraphTrace ¶
type ActivityDeviceGraphTrace struct {
Kind ActivityKind
DeviceId uint32
Start uint64
End uint64
GraphId uint32
LauncherGraphId uint32
DeviceLaunchMode uint32
ContextId uint32
StreamId uint64
Reserved uintptr
}
ActivityDeviceGraphTrace represents the activity record for trace of device graph execution.
This activity record represents execution for a device launched graph without giving visibility about the execution of its nodes. This is intended to reduce overheads in tracing each node. The activity kind is ActivityKindDeviceGraphTrace
type ActivityDeviceGraphTraceFieldIds ¶
type ActivityDeviceGraphTraceFieldIds int32
ActivityDeviceGraphTraceFieldIds represents enum identifiers for fields in ActivityDeviceGraphTrace.
Each enum value corresponds to a field in ActivityDeviceGraphTrace and describes the data type and purpose of that field.
const ( // DeviceGraphTraceFieldKind: [ActivityKind] kind; Kind of this activity record. Always [ActivityKindDeviceGraphTrace]. DeviceGraphTraceFieldKind ActivityDeviceGraphTraceFieldIds = 0 // DeviceGraphTraceFieldDeviceId: uint32_t deviceId; ID of the device where the first node of the graph is executed. DeviceGraphTraceFieldDeviceId ActivityDeviceGraphTraceFieldIds = 1 // DeviceGraphTraceFieldStart: uint64_t start; Start timestamp for the graph execution (in ns). DeviceGraphTraceFieldStart ActivityDeviceGraphTraceFieldIds = 2 DeviceGraphTraceFieldEnd ActivityDeviceGraphTraceFieldIds = 3 // uint64_t end; End timestamp for the graph execution (in ns). DeviceGraphTraceFieldGraphId ActivityDeviceGraphTraceFieldIds = 4 // uint32_t graphId; Unique ID of the graph that is launched. // DeviceGraphTraceFieldLauncherGraphId: uint32_t launcherGraphId; Unique ID of the graph that has launched this graph. DeviceGraphTraceFieldLauncherGraphId ActivityDeviceGraphTraceFieldIds = 5 DeviceGraphTraceFieldDeviceLaunchMode ActivityDeviceGraphTraceFieldIds = 6 // uint32_t deviceLaunchMode; Type of launch. // DeviceGraphTraceFieldContextId: uint64_t contextId; ID of the context where the first node of the graph is executed. DeviceGraphTraceFieldContextId ActivityDeviceGraphTraceFieldIds = 7 // DeviceGraphTraceFieldStreamId: uint64_t streamId; ID of the stream where the graph is being launched. This is the only record that has 64-bit streamId to accommodate device-side created streams. DeviceGraphTraceFieldStreamId ActivityDeviceGraphTraceFieldIds = 8 )
func (ActivityDeviceGraphTraceFieldIds) String ¶
func (e ActivityDeviceGraphTraceFieldIds) String() string
String returns the constant name, or a numeric representation for unknown values.
type ActivityEnvironment ¶
type ActivityEnvironment struct {
Kind ActivityKind
DeviceId uint32
Timestamp uint64
EnvironmentKind ActivityEnvironmentKind
Data [5]uint32
}
ActivityEnvironment represents the activity record for CUPTI environmental data.
This activity record provides CUPTI environmental data, include power, clocks, and thermals. This information is sampled at various rates and returned in this activity record. The consumer of the record needs to check the environmentKind field to figure out what kind of environmental record this is.
type ActivityEnvironmentCoolingData ¶
type ActivityEnvironmentCoolingData struct {
FanSpeed uint32
}
ActivityEnvironmentCoolingData represents data returned for ActivityEnvironmentCooling environment kind.
type ActivityEnvironmentFieldIds ¶
type ActivityEnvironmentFieldIds int32
ActivityEnvironmentFieldIds represents enum identifiers for fields in ActivityEnvironment.
Each enum value corresponds to a field in ActivityEnvironment and describes the data type and purpose of that field.
const ( // EnvironmentFieldKind: [ActivityKind] kind; Kind of activity record: [ActivityKindEnvironment]. EnvironmentFieldKind ActivityEnvironmentFieldIds = 0 EnvironmentFieldDeviceId ActivityEnvironmentFieldIds = 1 // uint32_t deviceId; The ID of the device // EnvironmentFieldTimestamp: uint64_t timestamp; The timestamp when this sample was retrieved, in ns. A value of 0 indicates that timestamp information could not be collected for the marker. EnvironmentFieldTimestamp ActivityEnvironmentFieldIds = 2 // EnvironmentFieldEnvironmentKind: [ActivityEnvironmentKind] environmentKind; The kind of data reported in this record. EnvironmentFieldEnvironmentKind ActivityEnvironmentFieldIds = 3 // EnvironmentFieldEnvironmentKindData: union data; Depending on the value of environmentKind, this field contains additional information about the environment. [ActivityEnvironmentSpeedData] speed if environmentKind is [ActivityEnvironmentSpeed] [ActivityEnvironmentTemperatureData] temperature if environmentKind is [ActivityEnvironmentTemperature] [ActivityEnvironmentPowerData] power if environmentKind is [ActivityEnvironmentPower] [ActivityEnvironmentCoolingData] cooling if environmentKind is [ActivityEnvironmentCooling] The size of this field is determined by the largest structure among the possible types it can hold. EnvironmentFieldEnvironmentKindData ActivityEnvironmentFieldIds = 4 )
func (ActivityEnvironmentFieldIds) String ¶
func (e ActivityEnvironmentFieldIds) String() string
String returns the constant name, or a numeric representation for unknown values.
type ActivityEnvironmentKind ¶
type ActivityEnvironmentKind int32
ActivityEnvironmentKind represents the kind of environment data.
Used to indicate what type of data is being reported by an environment activity record.
const ( ActivityEnvironmentUnknown ActivityEnvironmentKind = 0 // Unknown data. ActivityEnvironmentSpeed ActivityEnvironmentKind = 1 // The environment data is related to speed. ActivityEnvironmentTemperature ActivityEnvironmentKind = 2 // The environment data is related to temperature. ActivityEnvironmentPower ActivityEnvironmentKind = 3 // The environment data is related to power. ActivityEnvironmentCooling ActivityEnvironmentKind = 4 // The environment data is related to cooling. ActivityEnvironmentCount ActivityEnvironmentKind = 5 ActivityEnvironmentKindForceInt ActivityEnvironmentKind = 0x7fffffff )
func (ActivityEnvironmentKind) String ¶
func (e ActivityEnvironmentKind) String() string
String returns the constant name, or a numeric representation for unknown values.
type ActivityEnvironmentPowerData ¶
ActivityEnvironmentPowerData represents data returned for ActivityEnvironmentPower environment kind.
The power in milliwatts consumed by GPU and associated circuitry. The power in milliwatts that will trigger power management algorithm.
type ActivityEnvironmentSpeedData ¶
type ActivityEnvironmentSpeedData struct {
SmClock uint32
MemoryClock uint32
PcieLinkGen uint32
PcieLinkWidth uint32
ClocksThrottleReasons EnvironmentClocksThrottleReason
}
ActivityEnvironmentSpeedData represents data returned for ActivityEnvironmentSpeed environment kind.
type ActivityEnvironmentTemperatureData ¶
type ActivityEnvironmentTemperatureData struct {
GpuTemperature uint32
}
ActivityEnvironmentTemperatureData represents data returned for ActivityEnvironmentTemperature environment kind.
type ActivityEvent ¶
type ActivityEvent struct {
Kind ActivityKind
Id uint32
Value uint64
Domain uint32
CorrelationId uint32
}
ActivityEvent represents the activity record for a CUPTI event.
This activity record represents a CUPTI event value (ActivityKindEvent). This activity record kind is not produced by the activity API but is included for completeness and ease-of-use. Profile frameworks built on top of CUPTI that collect event data may choose to use this type to store the collected event data.
type ActivityEventInstance ¶
type ActivityEventInstance struct {
Kind ActivityKind
Id uint32
Domain uint32
Instance uint32
Value uint64
CorrelationId uint32
Pad uint32
}
ActivityEventInstance represents the activity record for a CUPTI event with instance information.
This activity record represents the a CUPTI event value for a specific event domain instance (ActivityKindEventInstance). This activity record kind is not produced by the activity API but is included for completeness and ease-of-use. Profile frameworks built on top of CUPTI that collect event data may choose to use this type to store the collected event data. This activity record should be used when event domain instance information needs to be associated with the event.
type ActivityExternalCorrelation ¶
type ActivityExternalCorrelation struct {
Kind ActivityKind
ExternalKind ExternalCorrelationKind
ExternalId uint64
CorrelationId uint32
Reserved uint32
}
ActivityExternalCorrelation represents the activity record for correlation with external records.
This activity record correlates native CUDA records (e.g. CUDA Driver API, kernels, memcpys, ...) with records from external APIs such as OpenACC. (ActivityKindExternalCorrelation). ActivityKind
type ActivityExternalCorrelationFieldIds ¶
type ActivityExternalCorrelationFieldIds int32
ActivityExternalCorrelationFieldIds represents enum identifiers for fields in ActivityExternalCorrelation.
This activity record correlates native CUDA records (e.g. CUDA Driver API, kernels, memcpys, …) with records from external APIs such as OpenACC. (ActivityKindExternalCorrelation).
const ( // ExternalCorrelationFieldKind: [ActivityKind] kind; Kind of this activity record. Always [ActivityKindExternalCorrelation]. ExternalCorrelationFieldKind ActivityExternalCorrelationFieldIds = 0 // ExternalCorrelationFieldExternalKind: [ExternalCorrelationKind] externalKind; Kind of external API this record correlated to. ExternalCorrelationFieldExternalKind ActivityExternalCorrelationFieldIds = 1 // ExternalCorrelationFieldExternalId: uint64_t externalId; Correlation ID of the associated non-CUDA API record. ExternalCorrelationFieldExternalId ActivityExternalCorrelationFieldIds = 2 // ExternalCorrelationFieldCorrelationId: uint64_t correlationId; Correlation ID of the associated CUDA driver or runtime API record. ExternalCorrelationFieldCorrelationId ActivityExternalCorrelationFieldIds = 3 )
func (ActivityExternalCorrelationFieldIds) String ¶
func (e ActivityExternalCorrelationFieldIds) String() string
String returns the constant name, or a numeric representation for unknown values.
type ActivityFieldLayoutEntry ¶
type ActivityFieldLayoutEntry struct {
StructSize uint
FieldId int32
Offset uint
Size uint
Alignment uint
}
ActivityFieldLayoutEntry represents CUpti_ActivityFieldLayoutEntry.
type ActivityFieldSelection ¶
ActivityFieldSelection represents CUpti_ActivityFieldSelection.
type ActivityFlag ¶
type ActivityFlag int32
ActivityFlag represents flags associated with activity records.
Activity record flags. Flags can be combined by bitwise OR to associated multiple flags with an activity record. Each flag is specific to a certain activity kind, as noted below.
const ( ActivityFlagNone ActivityFlag = 0 // Indicates the activity record has no flags. // ActivityFlagDeviceConcurrentKernels: Indicates the activity represents a device that supports concurrent kernel execution. Valid for [ActivityKindDevice]. ActivityFlagDeviceConcurrentKernels ActivityFlag = 1 << 0 // ActivityFlagDeviceAttributeCudevice: Indicates if the activity represents a CUdevice_attribute value or a [DeviceAttribute] value. Valid for [ActivityKindDeviceAttribute]. ActivityFlagDeviceAttributeCudevice ActivityFlag = 1 << 0 // ActivityFlagMemcpyAsync: Indicates the activity represents an asynchronous memcpy operation. Valid for [ActivityKindMemcpy]. ActivityFlagMemcpyAsync ActivityFlag = 1 << 0 // ActivityFlagMarkerInstantaneous: Indicates the activity represents an instantaneous marker. Valid for [ActivityKindMarker]. ActivityFlagMarkerInstantaneous ActivityFlag = 1 << 0 // ActivityFlagMarkerStart: Indicates the activity represents a region start marker. Valid for [ActivityKindMarker]. ActivityFlagMarkerStart ActivityFlag = 1 << 1 // ActivityFlagMarkerEnd: Indicates the activity represents a region end marker. Valid for [ActivityKindMarker]. ActivityFlagMarkerEnd ActivityFlag = 1 << 2 // ActivityFlagMarkerSyncAcquire: Indicates the activity represents an attempt to acquire a user defined synchronization object. Valid for [ActivityKindMarker]. ActivityFlagMarkerSyncAcquire ActivityFlag = 1 << 3 // ActivityFlagMarkerSyncAcquireSuccess: Indicates the activity represents success in acquiring the user defined synchronization object. Valid for [ActivityKindMarker]. ActivityFlagMarkerSyncAcquireSuccess ActivityFlag = 1 << 4 // ActivityFlagMarkerSyncAcquireFailed: Indicates the activity represents failure in acquiring the user defined synchronization object. Valid for [ActivityKindMarker]. ActivityFlagMarkerSyncAcquireFailed ActivityFlag = 1 << 5 // ActivityFlagMarkerSyncRelease: Indicates the activity represents releasing a reservation on user defined synchronization object. Valid for [ActivityKindMarker]. ActivityFlagMarkerSyncRelease ActivityFlag = 1 << 6 // ActivityFlagMarkerColorNone: Indicates the activity represents a marker that does not specify a color. Valid for [ActivityKindMarkerData]. ActivityFlagMarkerColorNone ActivityFlag = 1 << 0 // ActivityFlagMarkerColorArgb: Indicates the activity represents a marker that specifies a color in alpha-red-green-blue format. Valid for [ActivityKindMarkerData]. ActivityFlagMarkerColorArgb ActivityFlag = 1 << 1 // ActivityFlagGlobalAccessKindSizeMask: The number of bytes requested by each thread Valid for [ActivityGlobalAccess3]. ActivityFlagGlobalAccessKindSizeMask ActivityFlag = 0xFF << 0 // ActivityFlagGlobalAccessKindLoad: If bit in this flag is set, the access was load, else it is a store access. Valid for [ActivityGlobalAccess3]. ActivityFlagGlobalAccessKindLoad ActivityFlag = 1 << 8 // ActivityFlagGlobalAccessKindCached: If this bit in flag is set, the load access was cached else it is uncached. Valid for [ActivityGlobalAccess3]. ActivityFlagGlobalAccessKindCached ActivityFlag = 1 << 9 // ActivityFlagMetricOverflowed: If this bit in flag is set, the metric value overflowed. Valid for [ActivityMetric] and [ActivityMetricInstance]. ActivityFlagMetricOverflowed ActivityFlag = 1 << 0 // ActivityFlagMetricValueInvalid: If this bit in flag is set, the metric value couldn't be calculated. This occurs when a value(s) required to calculate the metric is missing. Valid for [ActivityMetric] and [ActivityMetricInstance]. ActivityFlagMetricValueInvalid ActivityFlag = 1 << 1 // ActivityFlagInstructionValueInvalid: If this bit in flag is set, the source level metric value couldn't be calculated. This occurs when a value(s) required to calculate the source level metric cannot be evaluated. Valid for [ActivityInstructionExecution]. ActivityFlagInstructionValueInvalid ActivityFlag = 1 << 0 // ActivityFlagInstructionClassMask: The mask for the instruction class, [ActivityInstructionClass] Valid for [ActivityInstructionExecution] and [ActivityInstructionCorrelation] ActivityFlagInstructionClassMask ActivityFlag = 0xFF << 1 // ActivityFlagFlushForced: When calling [ActivityFlushAll], this flag can be set to force CUPTI to flush all records in the buffer, whether finished or not ActivityFlagFlushForced ActivityFlag = 1 << 0 ActivityFlagSharedAccessKindSizeMask ActivityFlag = 0xFF << 0 ActivityFlagSharedAccessKindLoad ActivityFlag = 1 << 8 // ActivityFlagMemsetAsync: Indicates the activity represents an asynchronous memset operation. Valid for [ActivityKindMemset]. ActivityFlagMemsetAsync ActivityFlag = 1 << 0 // ActivityFlagThrashingInCpu: Indicates the activity represents thrashing in CPU. Valid for counter of kind [ActivityUnifiedMemoryCounterKindThrashing] in [ActivityKindUnifiedMemoryCounter] ActivityFlagThrashingInCpu ActivityFlag = 1 << 0 // ActivityFlagThrottlingInCpu: Indicates the activity represents page throttling in CPU. Valid for counter of kind [ActivityUnifiedMemoryCounterKindThrottling] in [ActivityKindUnifiedMemoryCounter] ActivityFlagThrottlingInCpu ActivityFlag = 1 << 0 ActivityFlagForceInt ActivityFlag = 0x7fffffff )
func (ActivityFlag) String ¶
func (e ActivityFlag) String() string
String returns the constant name, or a numeric representation for unknown values.
type ActivityFunction ¶
type ActivityFunction struct {
Kind ActivityKind
Id uint32
ContextId uint32
ModuleId uint32
FunctionIndex uint32
Pad uint32
Name uintptr
}
ActivityFunction represents the activity record for global/device functions.
This activity records function name and corresponding module information. (ActivityKindFunction).
type ActivityGlobalAccess
deprecated
type ActivityGlobalAccess struct {
Kind ActivityKind
Flags ActivityFlag
SourceLocatorId uint32
CorrelationId uint32
PcOffset uint32
Executed uint32
ThreadsExecuted uint64
L2Transactions uint64
}
ActivityGlobalAccess represents the activity record for source-level global access.
This activity records the locations of the global accesses in the source (ActivityKindGlobalAccess). Global access activities are now reported using the ActivityGlobalAccess3 activity record.
Deprecated: Use ActivityGlobalAccess3 instead.
type ActivityGlobalAccess2
deprecated
type ActivityGlobalAccess2 struct {
Kind ActivityKind
Flags ActivityFlag
SourceLocatorId uint32
CorrelationId uint32
FunctionId uint32
PcOffset uint32
ThreadsExecuted uint64
L2Transactions uint64
TheoreticalL2Transactions uint64
Executed uint32
Pad uint32
}
ActivityGlobalAccess2 represents the activity record for source-level global access.
This activity records the locations of the global accesses in the source (ActivityKindGlobalAccess). Global access activities are now reported using the ActivityGlobalAccess3 activity record.
Deprecated: Deprecated in CUDA 9.0. Use ActivityGlobalAccess3 instead.
type ActivityGlobalAccess3 ¶
type ActivityGlobalAccess3 struct {
Kind ActivityKind
Flags ActivityFlag
SourceLocatorId uint32
CorrelationId uint32
FunctionId uint32
Executed uint32
PcOffset uint64
ThreadsExecuted uint64
L2Transactions uint64
TheoreticalL2Transactions uint64
}
ActivityGlobalAccess3 represents the activity record for source-level global access.
This activity records the locations of the global accesses in the source (ActivityKindGlobalAccess).
type ActivityGraphHostNode ¶
type ActivityGraphHostNode struct {
Kind ActivityKind
StreamId uint32
ContextId uint32
DeviceId uint32
CorrelationId uint32
GraphId uint32
GraphNodeId uint64
ProcessId uint32
ThreadId uint32
Start uint64
End uint64
}
ActivityGraphHostNode represents CUpti_ActivityGraphHostNode.
type ActivityGraphHostNodeFieldIds ¶
type ActivityGraphHostNodeFieldIds int32
ActivityGraphHostNodeFieldIds represents enum identifiers for fields in ActivityGraphHostNode.
Each enum value corresponds to a field in ActivityGraphHostNode and describes the data type and purpose of that field.
const ( // GraphHostNodeFieldKind: [ActivityKind] kind; Kind of this activity record. Always [ActivityKindGraphHostNode]. GraphHostNodeFieldKind ActivityGraphHostNodeFieldIds = 0 // GraphHostNodeFieldStreamId: uint32_t streamId; ID of the stream that waits for the graph host node to finish. GraphHostNodeFieldStreamId ActivityGraphHostNodeFieldIds = 1 // GraphHostNodeFieldContextId: uint32_t contextId; ID of the CUDA context to which the waiting CUDA stream belongs. GraphHostNodeFieldContextId ActivityGraphHostNodeFieldIds = 2 // GraphHostNodeFieldDeviceId: uint32_t deviceId; ID of the CUDA device to which the CUDA context and stream belong. GraphHostNodeFieldDeviceId ActivityGraphHostNodeFieldIds = 3 // GraphHostNodeFieldCorrelationId: uint64_t correlationId; Correlation ID of the graph host node operation. GraphHostNodeFieldCorrelationId ActivityGraphHostNodeFieldIds = 4 // GraphHostNodeFieldGraphId: uint32_t graphId; Unique ID of the graph that executed this host node through graph launch. GraphHostNodeFieldGraphId ActivityGraphHostNodeFieldIds = 5 // GraphHostNodeFieldGraphNodeId: uint64_t graphNodeId; Unique ID of the graph node that executed this host node through graph launch. GraphHostNodeFieldGraphNodeId ActivityGraphHostNodeFieldIds = 6 // GraphHostNodeFieldProcessId: uint32_t processId; ID of the process where the host node is executing. GraphHostNodeFieldProcessId ActivityGraphHostNodeFieldIds = 7 // GraphHostNodeFieldThreadId: uint64_t threadId; ID of the thread where the host node is executing. GraphHostNodeFieldThreadId ActivityGraphHostNodeFieldIds = 8 GraphHostNodeFieldStart ActivityGraphHostNodeFieldIds = 9 // uint64_t start; Start timestamp. GraphHostNodeFieldEnd ActivityGraphHostNodeFieldIds = 10 // uint64_t end; End timestamp. )
func (ActivityGraphHostNodeFieldIds) String ¶
func (e ActivityGraphHostNodeFieldIds) String() string
String returns the constant name, or a numeric representation for unknown values.
type ActivityGraphTrace ¶
type ActivityGraphTrace struct {
Kind ActivityKind
CorrelationId uint32
Start uint64
End uint64
DeviceId uint32
GraphId uint32
ContextId uint32
StreamId uint32
Reserved uintptr
}
ActivityGraphTrace represents the activity record for trace of graph execution.
This activity record represents execution for a graph without giving visibility about the execution of its nodes. This is intended to reduce overheads in tracing each node. The activity kind is ActivityKindGraphTrace Graph trace activity is now reported using ActivityGraphTrace2 record.
type ActivityGraphTrace2 ¶
type ActivityGraphTrace2 struct {
Kind ActivityKind
CorrelationId uint32
Start uint64
End uint64
DeviceId uint32
GraphId uint32
ContextId uint32
StreamId uint32
Reserved uintptr
EndDeviceId uint32
EndContextId uint32
}
ActivityGraphTrace2 represents the activity record for trace of graph execution.
This activity record represents execution for a graph without giving visibility about the execution of its nodes. This is intended to reduce overheads in tracing each node. The activity kind is ActivityKindGraphTrace
type ActivityGraphTraceFieldIds ¶
type ActivityGraphTraceFieldIds int32
ActivityGraphTraceFieldIds represents enum identifiers for fields to trace graph execution.
These field IDs are used to reference specific fields when dynamically selecting or parsing activity records of ActivityKindGraphTrace.
const ( // GraphTraceFieldKind: [ActivityKind] kind; Kind of this activity record. Always [ActivityKindGraphTrace]. GraphTraceFieldKind ActivityGraphTraceFieldIds = 0 // GraphTraceFieldCorrelationId: uint64_t correlationId; The correlation ID of the graph launch. GraphTraceFieldCorrelationId ActivityGraphTraceFieldIds = 1 // GraphTraceFieldStart: uint64_t start; The start timestamp for the graph execution, in ns. GraphTraceFieldStart ActivityGraphTraceFieldIds = 2 // GraphTraceFieldEnd: uint64_t end; The end timestamp for the graph execution, in ns. GraphTraceFieldEnd ActivityGraphTraceFieldIds = 3 // GraphTraceFieldDeviceId: uint32_t deviceId; The ID of the device where the first node of the graph is executed. If this is INT_MAX, then the start is on the host. GraphTraceFieldDeviceId ActivityGraphTraceFieldIds = 4 // GraphTraceFieldGraphId: uint32_t graphId; The unique ID of the graph that is launched. GraphTraceFieldGraphId ActivityGraphTraceFieldIds = 5 // GraphTraceFieldContextId: uint32_t contextId; The ID of the context where the first node of the graph is executed. If this is INT_MAX, then the start is on the host. GraphTraceFieldContextId ActivityGraphTraceFieldIds = 6 // GraphTraceFieldStreamId: uint32_t streamId; The ID of the stream where the graph is being launched. GraphTraceFieldStreamId ActivityGraphTraceFieldIds = 7 // GraphTraceFieldEndDeviceId: uint32_t endDeviceId; The ID of the device where last node of the graph is executed. GraphTraceFieldEndDeviceId ActivityGraphTraceFieldIds = 8 // GraphTraceFieldEndContextId: uint32_t endContextId; The ID of the context where the last node of the graph is executed. GraphTraceFieldEndContextId ActivityGraphTraceFieldIds = 9 )
func (ActivityGraphTraceFieldIds) String ¶
func (e ActivityGraphTraceFieldIds) String() string
String returns the constant name, or a numeric representation for unknown values.
type ActivityGreenContext ¶
type ActivityGreenContext struct {
Kind ActivityKind
ContextId uint32
ParentContextId uint32
DeviceId uint32
NumTpcs uint32
NumMultiprocessors uint16
LogicalTpcMaskSize uint8
Padding uint8
LogicalTpcMask [32]uint32
// contains filtered or unexported fields
}
ActivityGreenContext represents the activity record for a green context.
This activity record represents information about a green context (ActivityKindGreenContext). Green context activity is now reported using ActivityGreenContext2 record.
type ActivityGreenContext2 ¶
type ActivityGreenContext2 struct {
Kind ActivityKind
ContextId uint32
ParentContextId uint32
DeviceId uint32
NumTpcs uint32
NumMultiprocessors uint16
LogicalTpcMaskSize uint8
Padding uint8
LogicalTpcMask [32]uint32
WorkqueueResourceId uint64
WorkqueueConcurrencyLimit uint32
WorkqueueSharingScope uint32
}
ActivityGreenContext2 represents the activity record for a green context (version 2).
This activity record represents information about a green context (ActivityKindGreenContext). This is an enhanced version of ActivityGreenContext that adds work queue configuration fields. The corresponding activity kind is ActivityKindGreenContext. Green contexts enable resource partitioning by allocating a subset of SMs (Streaming Multiprocessors) from the GPU to a context. \par TPC (Thread Processing Cluster) Thread Processing Clusters are hardware units within a GPC (Graphics Processing Cluster). Each TPC contains one or more SMs, along with texture units, L1 cache, instruction cache, and constant cache. Green contexts allocate resources at the TPC level.
type ActivityGreenContext3 ¶
type ActivityGreenContext3 struct {
Kind ActivityKind
ContextId uint32
ParentContextId uint32
DeviceId uint32
NumTpcs uint32
NumMultiprocessors uint16
LogicalTpcMaskSize uint8
Padding uint8
LogicalTpcMask [32]uint32
WorkqueueResourceId uint64
WorkqueueConcurrencyLimit uint32
WorkqueueSharingScope uint32
WorkqueueChannelCount uint32
Padding2 uint32
WorkqueueChannelIds [32]uint32
}
ActivityGreenContext3 represents the activity record for a green context (version 3).
This activity record represents information about a green context (ActivityKindGreenContext). This is an enhanced version of ActivityGreenContext2 that adds work queue channel information fields. The corresponding activity kind is ActivityKindGreenContext. Green contexts enable resource partitioning by allocating a subset of SMs (Streaming Multiprocessors) from the GPU to a context. \par TPC (Thread Processing Cluster) Thread Processing Clusters are hardware units within a GPC (Graphics Processing Cluster). Each TPC contains one or more SMs, along with texture units, L1 cache, instruction cache, and constant cache. Green contexts allocate resources at the TPC level.
type ActivityGreenContextFieldIds ¶
type ActivityGreenContextFieldIds int32
ActivityGreenContextFieldIds represents enum identifiers for fields to trace green context information.
These field IDs are used to reference specific fields when dynamically selecting or parsing activity records of ActivityKindGreenContext.
const ( // GreenContextFieldKind: [ActivityKind] kind; Kind of this activity record. Always [ActivityKindGreenContext]. GreenContextFieldKind ActivityGreenContextFieldIds = 0 GreenContextFieldContextId ActivityGreenContextFieldIds = 1 // uint32_t contextId; The context ID of the green context. GreenContextFieldParentContextId ActivityGreenContextFieldIds = 2 // uint32_t parentContextId; The ID of the parent context. // GreenContextFieldDeviceId: uint32_t deviceId; The device ID associated with the green context. GreenContextFieldDeviceId ActivityGreenContextFieldIds = 3 // GreenContextFieldNumMultiprocessors: uint16_t numMultiprocessors; The number of multiprocessors (SMs) allocated to the green context. GreenContextFieldNumMultiprocessors ActivityGreenContextFieldIds = 4 // GreenContextFieldNumTpcs: uint32_t numTpcs; The number of TPCs allocated to the green context. GreenContextFieldNumTpcs ActivityGreenContextFieldIds = 5 // GreenContextFieldLogicalTpcMaskSize: uint8_t logicalTpcMaskSize; The size (in 32-bit words) of the logical TPC mask. GreenContextFieldLogicalTpcMaskSize ActivityGreenContextFieldIds = 6 // GreenContextFieldLogicalTpcMask: uint32_t logicalTpcMask[32]; The logical TPC mask for the green context. GreenContextFieldLogicalTpcMask ActivityGreenContextFieldIds = 7 // GreenContextFieldWorkqueueResourceId: uint64_t workqueueResourceId; The work queue resource ID associated with the green context. Refer Param CUdevWorkqueueConfigScope: in cuda.h for possible values. GreenContextFieldWorkqueueResourceId ActivityGreenContextFieldIds = 8 // GreenContextFieldWorkqueueConcurrencyLimit: uint32_t workqueueConcurrencyLimit; The concurrency limit for the work queue associated with the green context. GreenContextFieldWorkqueueConcurrencyLimit ActivityGreenContextFieldIds = 9 // GreenContextFieldWorkqueueSharingScope: uint32_t workqueueSharingScope; The sharing scope for the work queue associated with the green context. GreenContextFieldWorkqueueSharingScope ActivityGreenContextFieldIds = 10 // GreenContextFieldWorkqueueChannelCount: uint32_t workqueueChannelCount; The number of HW channels assigned to this green context’s work queue. GreenContextFieldWorkqueueChannelCount ActivityGreenContextFieldIds = 11 // GreenContextFieldWorkqueueChannelIds: uint32_t workqueueChannelIds[32]; Array of HW channel IDs assigned to this green context’s work queue. GreenContextFieldWorkqueueChannelIds ActivityGreenContextFieldIds = 12 )
func (ActivityGreenContextFieldIds) String ¶
func (e ActivityGreenContextFieldIds) String() string
String returns the constant name, or a numeric representation for unknown values.
type ActivityHostLaunch ¶
type ActivityHostLaunch struct {
Kind ActivityKind
StreamId uint32
ContextId uint32
DeviceId uint32
CorrelationId uint32
ProcessId uint32
ThreadId uint32
Padding uint32
Start uint64
End uint64
}
ActivityHostLaunch represents the activity record for host launch functions.
The corresponding activity kind is ActivityKindHostLaunch.
type ActivityHostLaunchFieldIds ¶
type ActivityHostLaunchFieldIds int32
ActivityHostLaunchFieldIds represents enum identifiers for fields in ActivityHostLaunch.
Each enum value corresponds to a field in ActivityHostLaunch and describes the data type and purpose of that field.
const ( // HostLaunchFieldKind: [ActivityKind] kind; Kind of this activity record. Always [ActivityKindHostLaunch]. HostLaunchFieldKind ActivityHostLaunchFieldIds = 0 // HostLaunchFieldStreamId: uint32_t streamId; ID of the CUDA stream to which the waiting CUDA stream belongs. HostLaunchFieldStreamId ActivityHostLaunchFieldIds = 1 // HostLaunchFieldContextId: uint32_t contextId; ID of the CUDA context to which the waiting CUDA stream belongs. HostLaunchFieldContextId ActivityHostLaunchFieldIds = 2 // HostLaunchFieldDeviceId: uint32_t deviceId; ID of the CUDA device to which the CUDA context and stream belong. HostLaunchFieldDeviceId ActivityHostLaunchFieldIds = 3 // HostLaunchFieldCorrelationId: uint64_t correlationId; Correlation ID of the host launch operation. HostLaunchFieldCorrelationId ActivityHostLaunchFieldIds = 4 // HostLaunchFieldProcessId: uint32_t processId; ID of the process where the host function is executing. HostLaunchFieldProcessId ActivityHostLaunchFieldIds = 5 // HostLaunchFieldThreadId: uint64_t threadId; ID of the thread where the host function is executing. HostLaunchFieldThreadId ActivityHostLaunchFieldIds = 6 HostLaunchFieldStart ActivityHostLaunchFieldIds = 7 // uint64_t start; Start timestamp. HostLaunchFieldEnd ActivityHostLaunchFieldIds = 8 // uint64_t end; End timestamp. )
func (ActivityHostLaunchFieldIds) String ¶
func (e ActivityHostLaunchFieldIds) String() string
String returns the constant name, or a numeric representation for unknown values.
type ActivityInstantaneousEvent ¶
type ActivityInstantaneousEvent struct {
Kind ActivityKind
Id uint32
Value uint64
Timestamp uint64
DeviceId uint32
Reserved uint32
}
ActivityInstantaneousEvent represents the activity record for an instantaneous CUPTI event.
This activity record represents a CUPTI event value (ActivityKindEvent) sampled at a particular instant. This activity record kind is not produced by the activity API but is included for completeness and ease-of-use. Profiler frameworks built on top of CUPTI that collect event data at a particular time may choose to use this type to store the collected event data.
type ActivityInstantaneousEventInstance ¶
type ActivityInstantaneousEventInstance struct {
Kind ActivityKind
Id uint32
Value uint64
Timestamp uint64
DeviceId uint32
Instance uint8
Pad [3]uint8
}
ActivityInstantaneousEventInstance represents the activity record for an instantaneous CUPTI event with event domain instance information.
This activity record represents the a CUPTI event value for a specific event domain instance (ActivityKindEventInstance) sampled at a particular instant. This activity record kind is not produced by the activity API but is included for completeness and ease-of-use. Profiler frameworks built on top of CUPTI that collect event data may choose to use this type to store the collected event data. This activity record should be used when event domain instance information needs to be associated with the event.
type ActivityInstantaneousMetric ¶
type ActivityInstantaneousMetric struct {
Kind ActivityKind
Id uint32
Value [1]uint64
Timestamp uint64
DeviceId uint32
Flags uint8
Pad [3]uint8
}
ActivityInstantaneousMetric represents the activity record for an instantaneous CUPTI metric.
This activity record represents the collection of a CUPTI metric value (ActivityKindMetric) at a particular instance. This activity record kind is not produced by the activity API but is included for completeness and ease-of-use. Profiler frameworks built on top of CUPTI that collect metric data may choose to use this type to store the collected metric data.
type ActivityInstantaneousMetricInstance ¶
type ActivityInstantaneousMetricInstance struct {
Kind ActivityKind
Id uint32
Value [1]uint64
Timestamp uint64
DeviceId uint32
Flags uint8
Instance uint8
Pad [2]uint8
}
ActivityInstantaneousMetricInstance represents the instantaneous activity record for a CUPTI metric with instance information.
This activity record represents a CUPTI metric value for a specific metric domain instance (ActivityKindMetricInstance) sampled at a particular time. This activity record kind is not produced by the activity API but is included for completeness and ease-of-use. Profiler frameworks built on top of CUPTI that collect metric data may choose to use this type to store the collected metric data. This activity record should be used when metric domain instance information needs to be associated with the metric.
type ActivityInstructionClass ¶
type ActivityInstructionClass int32
ActivityInstructionClass represents SASS instruction classification.
The sass instruction are broadly divided into different class. Each enum represents a classification.
const ( ActivityInstructionClassUnknown ActivityInstructionClass = 0 // The instruction class is not known. ActivityInstructionClassFp32 ActivityInstructionClass = 1 // Represents a 32 bit floating point operation. ActivityInstructionClassFp64 ActivityInstructionClass = 2 // Represents a 64 bit floating point operation. ActivityInstructionClassInteger ActivityInstructionClass = 3 // Represents an integer operation. ActivityInstructionClassBitConversion ActivityInstructionClass = 4 // Represents a bit conversion operation. ActivityInstructionClassControlFlow ActivityInstructionClass = 5 // Represents a control flow instruction. ActivityInstructionClassGlobal ActivityInstructionClass = 6 // Represents a global load-store instruction. ActivityInstructionClassLocal ActivityInstructionClass = 8 // Represents a local load-store instruction. ActivityInstructionClassGeneric ActivityInstructionClass = 9 // Represents a generic load-store instruction. ActivityInstructionClassSurface ActivityInstructionClass = 10 // Represents a surface load-store instruction. ActivityInstructionClassConstant ActivityInstructionClass = 11 // Represents a constant load instruction. ActivityInstructionClassTexture ActivityInstructionClass = 12 // Represents a texture load-store instruction. ActivityInstructionClassGlobalAtomic ActivityInstructionClass = 13 // Represents a global atomic instruction. ActivityInstructionClassSurfaceAtomic ActivityInstructionClass = 15 // Represents a surface atomic instruction. ActivityInstructionClassInterThreadCommunication ActivityInstructionClass = 16 // Represents a inter-thread communication instruction. ActivityInstructionClassBarrier ActivityInstructionClass = 17 // Represents a barrier instruction. // ActivityInstructionClassMiscellaneous: Represents some miscellaneous instructions which do not fit in the above classification. ActivityInstructionClassMiscellaneous ActivityInstructionClass = 18 ActivityInstructionClassFp16 ActivityInstructionClass = 19 // Represents a 16 bit floating point operation. ActivityInstructionClassUniform ActivityInstructionClass = 20 // Represents uniform instruction. ActivityInstructionClassKindForceInt ActivityInstructionClass = 0x7fffffff )
func (ActivityInstructionClass) String ¶
func (e ActivityInstructionClass) String() string
String returns the constant name, or a numeric representation for unknown values.
type ActivityInstructionCorrelation ¶
type ActivityInstructionCorrelation struct {
Kind ActivityKind
Flags ActivityFlag
SourceLocatorId uint32
FunctionId uint32
PcOffset uint32
Pad uint32
// contains filtered or unexported fields
}
ActivityInstructionCorrelation represents the activity record for source-level sass/source line-by-line correlation.
This activity records source level sass/source correlation information. (ActivityKindInstructionCorrelation).
type ActivityInstructionExecution ¶
type ActivityInstructionExecution struct {
Kind ActivityKind
Flags ActivityFlag
SourceLocatorId uint32
CorrelationId uint32
FunctionId uint32
PcOffset uint32
ThreadsExecuted uint64
NotPredOffThreadsExecuted uint64
Executed uint32
Pad uint32
}
ActivityInstructionExecution represents the activity record for source-level instruction execution.
This activity records result for source level instruction execution. (ActivityKindInstructionExecution).
type ActivityJit ¶
type ActivityJit struct {
Kind ActivityKind
JitEntryType ActivityJitEntryType
JitOperationType ActivityJitOperationType
DeviceId uint32
Start uint64
End uint64
CorrelationId uint32
Padding uint32
JitOperationCorrelationId uint64
CacheSize uint64
CachePath uintptr
}
ActivityJit represents the activity record for JIT operations.
This activity represents the JIT operations (compile, load, store) of a CUmodule from the Compute Cache. Gives the exact hashed path of where the cached module is loaded from, or where the module will be stored after Just-In-Time (JIT) compilation. JIT activity is now reported using ActivityJit2 record.
type ActivityJit2 ¶
type ActivityJit2 struct {
Kind ActivityKind
JitEntryType ActivityJitEntryType
JitOperationType ActivityJitOperationType
DeviceId uint32
Start uint64
End uint64
CorrelationId uint32
Padding uint32
JitOperationCorrelationId uint64
CacheSize uint64
CachePath uintptr
ProcessId uint32
ThreadId uint32
}
ActivityJit2 represents the activity record for JIT operations.
This activity represents the JIT operations (compile, load, store) of a CUmodule from the Compute Cache. Gives the exact hashed path of where the cached module is loaded from, or where the module will be stored after Just-In-Time (JIT) compilation.
type ActivityJitEntryType ¶
type ActivityJitEntryType int32
ActivityJitEntryType represents the types of JIT entry.
To be used in ActivityJit.
const ( ActivityJitEntryInvalid ActivityJitEntryType = 0 ActivityJitEntryPtxToCubin ActivityJitEntryType = 1 // PTX to CUBIN. ActivityJitEntryNvvmIrToPtx ActivityJitEntryType = 2 // NVVM-IR to PTX. ActivityJitEntryTypeForceInt ActivityJitEntryType = 0x7fffffff )
func (ActivityJitEntryType) String ¶
func (e ActivityJitEntryType) String() string
String returns the constant name, or a numeric representation for unknown values.
type ActivityJitFieldIds ¶
type ActivityJitFieldIds int32
ActivityJitFieldIds represents enum identifiers for fields to trace JIT operations.
These field IDs are used to reference specific fields when dynamically selecting or parsing activity records of ActivityKindJit.
const ( // JitFieldKind: [ActivityKind] kind; Kind of this activity record. Always [ActivityKindJit]. JitFieldKind ActivityJitFieldIds = 0 // JitFieldEntryType: [ActivityJitEntryType] jitEntryType; The JIT entry type. [ActivityJitEntryType] JitFieldEntryType ActivityJitFieldIds = 1 // JitFieldOperationType: [ActivityJitOperationType] jitOperationType; The JIT operation type. [ActivityJitOperationType] JitFieldOperationType ActivityJitFieldIds = 2 JitFieldDeviceId ActivityJitFieldIds = 3 // uint32_t deviceId; The device ID. // JitFieldStart: uint64_t start; The start timestamp for the JIT operation (in nanoseconds). JitFieldStart ActivityJitFieldIds = 4 // JitFieldEnd: uint64_t end; The end timestamp for the JIT operation (in nanoseconds). JitFieldEnd ActivityJitFieldIds = 5 // JitFieldCorrelationId: uint64_t correlationId; Correlation ID assigned to this JIT operation. Matches the correlation ID in the CUDA driver/runtime API activity record that launched it. JitFieldCorrelationId ActivityJitFieldIds = 6 // JitFieldOperationCorrelationId: uint64_t jitOperationCorrelationId; The correlation ID to correlate JIT compilation, load and store operations. Each JIT compilation unit is assigned a unique correlation ID at the time of the JIT compilation. This correlation id can be used to find the matching JIT cache load/store records. JitFieldOperationCorrelationId ActivityJitFieldIds = 7 JitFieldCacheSize ActivityJitFieldIds = 8 // uint64_t cacheSize; The size of compute cache. // JitFieldCachePath: const char* cachePath; The path where the fat binary is cached. JitFieldCachePath ActivityJitFieldIds = 9 // JitFieldProcessId: uint32_t processId; The ID of the process where the JIT operation is executing. JitFieldProcessId ActivityJitFieldIds = 10 // JitFieldThreadId: uint64_t threadId; The ID of the thread where the JIT operation is executing. JitFieldThreadId ActivityJitFieldIds = 11 )
func (ActivityJitFieldIds) String ¶
func (e ActivityJitFieldIds) String() string
String returns the constant name, or a numeric representation for unknown values.
type ActivityJitOperationType ¶
type ActivityJitOperationType int32
ActivityJitOperationType represents the types of JIT compilation operations.
To be used in ActivityJit.
const ( ActivityJitOperationInvalid ActivityJitOperationType = 0 ActivityJitOperationCacheLoad ActivityJitOperationType = 1 // Loaded from the compute cache. ActivityJitOperationCacheStore ActivityJitOperationType = 2 // Stored in the compute cache. ActivityJitOperationCompile ActivityJitOperationType = 3 // JIT compilation. ActivityJitOperationTypeForceInt ActivityJitOperationType = 0x7fffffff )
func (ActivityJitOperationType) String ¶
func (e ActivityJitOperationType) String() string
String returns the constant name, or a numeric representation for unknown values.
type ActivityKernel
deprecated
type ActivityKernel struct {
Kind ActivityKind
CacheConfigRequested uint8
CacheConfigExecuted uint8
RegistersPerThread uint16
Start uint64
End uint64
DeviceId uint32
ContextId uint32
StreamId uint32
GridX int32
GridY int32
GridZ int32
BlockX int32
BlockY int32
BlockZ int32
LocalMemoryPerThread uint32
LocalMemoryTotal uint32
CorrelationId uint32
RuntimeCorrelationId uint32
Pad uint32
Name uintptr
Reserved0 uintptr
}
ActivityKernel represents the activity record for kernel.
This activity record represents a kernel execution (ActivityKindKernel and ActivityKindConcurrentKernel) but is no longer generated by CUPTI. Kernel activities are now reported using the ActivityKernel9 activity record.
Deprecated: Use ActivityKernel9 instead.
type ActivityKernel2
deprecated
type ActivityKernel2 struct {
Kind ActivityKind
CacheConfig [1]byte
RegistersPerThread uint16
Start uint64
End uint64
Completed uint64
DeviceId uint32
ContextId uint32
StreamId uint32
GridX int32
GridY int32
GridZ int32
BlockX int32
BlockY int32
BlockZ int32
LocalMemoryPerThread uint32
LocalMemoryTotal uint32
CorrelationId uint32
GridId int64
Name uintptr
Reserved0 uintptr
}
ActivityKernel2 represents the activity record for kernel.
This activity record represents a kernel execution (ActivityKindKernel and ActivityKindConcurrentKernel) but is no longer generated by CUPTI. Kernel activities are now reported using the ActivityKernel9 activity record.
Deprecated: Use ActivityKernel9 instead.
type ActivityKernel3
deprecated
type ActivityKernel3 struct {
Kind ActivityKind
CacheConfig [1]byte
RegistersPerThread uint16
PartitionedGlobalCacheRequested ActivityPartitionedGlobalCacheConfig
PartitionedGlobalCacheExecuted ActivityPartitionedGlobalCacheConfig
Start uint64
End uint64
Completed uint64
DeviceId uint32
ContextId uint32
StreamId uint32
GridX int32
GridY int32
GridZ int32
BlockX int32
BlockY int32
BlockZ int32
LocalMemoryPerThread uint32
LocalMemoryTotal uint32
CorrelationId uint32
GridId int64
Name uintptr
Reserved0 uintptr
}
ActivityKernel3 represents the activity record for a kernel (CUDA 6.5(with sm_52 support) onwards).
This activity record represents a kernel execution (ActivityKindKernel and ActivityKindConcurrentKernel). Kernel activities are now reported using the ActivityKernel9 activity record.
Deprecated: Deprecated in CUDA 9.0. Use ActivityKernel9 instead.
type ActivityKernel4
deprecated
type ActivityKernel4 struct {
Kind ActivityKind
CacheConfig [1]byte
RegistersPerThread uint16
PartitionedGlobalCacheRequested ActivityPartitionedGlobalCacheConfig
PartitionedGlobalCacheExecuted ActivityPartitionedGlobalCacheConfig
Start uint64
End uint64
Completed uint64
DeviceId uint32
ContextId uint32
StreamId uint32
GridX int32
GridY int32
GridZ int32
BlockX int32
BlockY int32
BlockZ int32
LocalMemoryPerThread uint32
LocalMemoryTotal uint32
CorrelationId uint32
GridId int64
Name uintptr
Reserved0 uintptr
Queued uint64
Submitted uint64
LaunchType uint8
Padding uint8
}
ActivityKernel4 represents the activity record for a kernel (CUDA 9.0(with sm_70 support) onwards).
This activity record represents a kernel execution (ActivityKindKernel and ActivityKindConcurrentKernel). Kernel activities are now reported using the ActivityKernel9 activity record.
Deprecated: Deprecated in CUDA 11.0. Use ActivityKernel9 instead.
type ActivityKernel5
deprecated
type ActivityKernel5 struct {
Kind ActivityKind
CacheConfig [1]byte
RegistersPerThread uint16
PartitionedGlobalCacheRequested ActivityPartitionedGlobalCacheConfig
PartitionedGlobalCacheExecuted ActivityPartitionedGlobalCacheConfig
Start uint64
End uint64
Completed uint64
DeviceId uint32
ContextId uint32
StreamId uint32
GridX int32
GridY int32
GridZ int32
BlockX int32
BlockY int32
BlockZ int32
LocalMemoryPerThread uint32
LocalMemoryTotal uint32
CorrelationId uint32
GridId int64
Name uintptr
Reserved0 uintptr
Queued uint64
Submitted uint64
LaunchType uint8
Padding uint8
GraphNodeId uint64
ShmemLimitConfig FuncShmemLimitConfig
GraphId uint32
}
ActivityKernel5 represents the activity record for a kernel (CUDA 11.0(with sm_80 support) onwards).
This activity record represents a kernel execution (ActivityKindKernel and ActivityKindConcurrentKernel) but is no longer generated by CUPTI. Kernel activities are now reported using the ActivityKernel9 activity record.
Deprecated: Deprecated in CUDA 11.2. Use ActivityKernel9 instead.
type ActivityKernel6
deprecated
type ActivityKernel6 struct {
Kind ActivityKind
CacheConfig [1]byte
RegistersPerThread uint16
PartitionedGlobalCacheRequested ActivityPartitionedGlobalCacheConfig
PartitionedGlobalCacheExecuted ActivityPartitionedGlobalCacheConfig
Start uint64
End uint64
Completed uint64
DeviceId uint32
ContextId uint32
StreamId uint32
GridX int32
GridY int32
GridZ int32
BlockX int32
BlockY int32
BlockZ int32
LocalMemoryPerThread uint32
LocalMemoryTotal uint32
CorrelationId uint32
GridId int64
Name uintptr
Reserved0 uintptr
Queued uint64
Submitted uint64
LaunchType uint8
Padding uint8
GraphNodeId uint64
ShmemLimitConfig FuncShmemLimitConfig
GraphId uint32
PAccessPolicyWindow uintptr
}
ActivityKernel6 represents the activity record for kernel.
This activity record represents a kernel execution (ActivityKindKernel and ActivityKindConcurrentKernel) but is no longer generated by CUPTI. Kernel activities are now reported using the ActivityKernel9 activity record.
Deprecated: Deprecated in CUDA 11.6. Use ActivityKernel9 instead.
type ActivityKernel7
deprecated
type ActivityKernel7 struct {
Kind ActivityKind
CacheConfig [1]byte
RegistersPerThread uint16
PartitionedGlobalCacheRequested ActivityPartitionedGlobalCacheConfig
PartitionedGlobalCacheExecuted ActivityPartitionedGlobalCacheConfig
Start uint64
End uint64
Completed uint64
DeviceId uint32
ContextId uint32
StreamId uint32
GridX int32
GridY int32
GridZ int32
BlockX int32
BlockY int32
BlockZ int32
LocalMemoryPerThread uint32
LocalMemoryTotal uint32
CorrelationId uint32
GridId int64
Name uintptr
Reserved0 uintptr
Queued uint64
Submitted uint64
LaunchType uint8
Padding uint8
GraphNodeId uint64
ShmemLimitConfig FuncShmemLimitConfig
GraphId uint32
PAccessPolicyWindow uintptr
ChannelID uint32
ChannelType ChannelType
}
ActivityKernel7 represents the activity record for kernel.
This activity record represents a kernel execution (ActivityKindKernel and ActivityKindConcurrentKernel) but is no longer generated by CUPTI. Kernel activities are now reported using the ActivityKernel9 activity record.
Deprecated: Deprecated in CUDA 11.8. Use ActivityKernel9 instead.
type ActivityKernel8 ¶
type ActivityKernel8 struct {
Kind ActivityKind
CacheConfig [1]byte
RegistersPerThread uint16
PartitionedGlobalCacheRequested ActivityPartitionedGlobalCacheConfig
PartitionedGlobalCacheExecuted ActivityPartitionedGlobalCacheConfig
Start uint64
End uint64
Completed uint64
DeviceId uint32
ContextId uint32
StreamId uint32
GridX int32
GridY int32
GridZ int32
BlockX int32
BlockY int32
BlockZ int32
LocalMemoryPerThread uint32
LocalMemoryTotal uint32
CorrelationId uint32
GridId int64
Name uintptr
Reserved0 uintptr
Queued uint64
Submitted uint64
LaunchType uint8
Padding uint8
GraphNodeId uint64
ShmemLimitConfig FuncShmemLimitConfig
GraphId uint32
PAccessPolicyWindow uintptr
ChannelID uint32
ChannelType ChannelType
Cluster Dim3
ClusterSchedulingPolicy uint32
LocalMemoryTotalV2 uint64
}
ActivityKernel8 represents the activity record for kernel.
This activity record represents a kernel execution (ActivityKindKernel and ActivityKindConcurrentKernel).
type ActivityKernel9 ¶
type ActivityKernel9 struct {
Kind ActivityKind
CacheConfig [1]byte
RegistersPerThread uint16
PartitionedGlobalCacheRequested ActivityPartitionedGlobalCacheConfig
PartitionedGlobalCacheExecuted ActivityPartitionedGlobalCacheConfig
Start uint64
End uint64
Completed uint64
DeviceId uint32
ContextId uint32
StreamId uint32
GridX int32
GridY int32
GridZ int32
BlockX int32
BlockY int32
BlockZ int32
LocalMemoryPerThread uint32
LocalMemoryTotal uint32
CorrelationId uint32
GridId int64
Name uintptr
Reserved0 uintptr
Queued uint64
Submitted uint64
LaunchType uint8
Padding uint8
GraphNodeId uint64
ShmemLimitConfig FuncShmemLimitConfig
GraphId uint32
PAccessPolicyWindow uintptr
ChannelID uint32
ChannelType ChannelType
Cluster Dim3
ClusterSchedulingPolicy uint32
LocalMemoryTotalV2 uint64
MaxPotentialClusterSize uint32
MaxActiveClusters uint32
}
ActivityKernel9 represents the activity record for kernel.
This activity record represents a kernel execution (ActivityKindKernel and ActivityKindConcurrentKernel).
type ActivityKernel10 ¶
type ActivityKernel10 struct {
Kind ActivityKind
CacheConfig [1]byte
RegistersPerThread uint16
PartitionedGlobalCacheRequested ActivityPartitionedGlobalCacheConfig
PartitionedGlobalCacheExecuted ActivityPartitionedGlobalCacheConfig
Start uint64
End uint64
Completed uint64
DeviceId uint32
ContextId uint32
StreamId uint32
GridX int32
GridY int32
GridZ int32
BlockX int32
BlockY int32
BlockZ int32
LocalMemoryPerThread uint32
LocalMemoryTotal uint32
CorrelationId uint32
GridId int64
Name uintptr
Reserved0 uintptr
Queued uint64
Submitted uint64
LaunchType uint8
Padding uint8
GraphNodeId uint64
ShmemLimitConfig FuncShmemLimitConfig
GraphId uint32
PAccessPolicyWindow uintptr
ChannelID uint32
ChannelType ChannelType
Cluster Dim3
ClusterSchedulingPolicy uint32
LocalMemoryTotalV2 uint64
MaxPotentialClusterSize uint32
MaxActiveClusters uint32
IsDeviceLaunched uint8
Padding3 [7]uint8
}
ActivityKernel10 represents the activity record for kernel.
This activity record represents a kernel execution (ActivityKindKernel and ActivityKindConcurrentKernel).
type ActivityKernel11 ¶
type ActivityKernel11 struct {
Kind ActivityKind
CacheConfig [1]byte
RegistersPerThread uint16
PartitionedGlobalCacheRequested ActivityPartitionedGlobalCacheConfig
PartitionedGlobalCacheExecuted ActivityPartitionedGlobalCacheConfig
Start uint64
End uint64
Completed uint64
DeviceId uint32
ContextId uint32
StreamId uint32
GridX int32
GridY int32
GridZ int32
BlockX int32
BlockY int32
BlockZ int32
LocalMemoryPerThread uint32
LocalMemoryTotal uint32
CorrelationId uint32
GridId int64
Name uintptr
Reserved0 uintptr
Queued uint64
Submitted uint64
LaunchType uint8
Padding uint8
GraphNodeId uint64
ShmemLimitConfig FuncShmemLimitConfig
GraphId uint32
PAccessPolicyWindow uintptr
ChannelID uint32
ChannelType ChannelType
Cluster Dim3
ClusterSchedulingPolicy uint32
LocalMemoryTotalV2 uint64
MaxPotentialClusterSize uint32
MaxActiveClusters uint32
IsDeviceLaunched uint8
Padding3 [7]uint8
Priority int32
Padding4 uint32
}
ActivityKernel11 represents the activity record for kernel (version 11).
This activity record represents a kernel execution (ActivityKindKernel and ActivityKindConcurrentKernel).
type ActivityKernel12
deprecated
type ActivityKernel12 struct {
Kind ActivityKind
CacheConfig [1]byte
RegistersPerThread uint16
PartitionedGlobalCacheRequested ActivityPartitionedGlobalCacheConfig
PartitionedGlobalCacheExecuted ActivityPartitionedGlobalCacheConfig
Start uint64
End uint64
Completed uint64
DeviceId uint32
ContextId uint32
StreamId uint32
GridX int32
GridY int32
GridZ int32
BlockX int32
BlockY int32
BlockZ int32
LocalMemoryPerThread uint32
LocalMemoryTotal uint32
CorrelationId uint32
GridId int64
Name uintptr
Reserved0 uintptr
Queued uint64
Submitted uint64
LaunchType uint8
Padding uint8
GraphNodeId uint64
ShmemLimitConfig FuncShmemLimitConfig
GraphId uint32
PAccessPolicyWindow uintptr
ChannelID uint32
ChannelType ChannelType
Cluster Dim3
ClusterSchedulingPolicy uint32
LocalMemoryTotalV2 uint64
MaxPotentialClusterSize uint32
MaxActiveClusters uint32
IsDeviceLaunched uint8
Padding3 [7]uint8
Priority int32
Padding4 uint32
ExecutionModel uint32
Padding5 uint32
}
ActivityKernel12 represents the activity record for kernel (version 12).
This activity record represents a kernel execution (ActivityKindKernel and ActivityKindConcurrentKernel). This version adds execution model for the kernel function. ActivityKernel13
Deprecated: Deprecated by NVIDIA.
type ActivityKernel13 ¶
type ActivityKernel13 struct {
Kind ActivityKind
CacheConfig [1]byte
RegistersPerThread uint16
PartitionedGlobalCacheRequested ActivityPartitionedGlobalCacheConfig
PartitionedGlobalCacheExecuted ActivityPartitionedGlobalCacheConfig
Start uint64
End uint64
Completed uint64
DeviceId uint32
ContextId uint32
StreamId uint32
GridX int32
GridY int32
GridZ int32
BlockX int32
BlockY int32
BlockZ int32
LocalMemoryPerThread uint32
LocalMemoryTotal uint32
CorrelationId uint32
GridId int64
Name uintptr
Reserved0 uintptr
Queued uint64
Submitted uint64
LaunchType uint8
Padding uint8
GraphNodeId uint64
ShmemLimitConfig FuncShmemLimitConfig
GraphId uint32
PAccessPolicyWindow uintptr
ChannelID uint32
ChannelType ChannelType
Cluster Dim3
ClusterSchedulingPolicy uint32
LocalMemoryTotalV2 uint64
MaxPotentialClusterSize uint32
MaxActiveClusters uint32
IsDeviceLaunched uint8
Padding3 [7]uint8
Priority int32
Padding4 uint32
ExecutionModel uint32
Padding5 uint32
SourceGraphId uint32
Padding6 uint32
SourceGraphNodeId uint64
}
ActivityKernel13 represents the activity record for kernel (version 13).
This activity record represents a kernel execution (ActivityKindKernel and ActivityKindConcurrentKernel). This version adds source graph node ID and source graph ID fields.
type ActivityKernelFieldIds ¶
type ActivityKernelFieldIds int32
ActivityKernelFieldIds represents enum identifiers for fields to trace kernel operations.
These field IDs are used to reference specific fields when dynamically selecting or parsing activity records of ActivityKindConcurrentKernel.
const ( // KernelFieldKind: [ActivityKind] kind; Kind of this activity record. Always either [ActivityKindKernel] or [ActivityKindConcurrentKernel]. KernelFieldKind ActivityKernelFieldIds = 0 // KernelFieldCacheConfigRequested: uint8_t requested; Indicates the cache configuration requested by the kernel. Values are from CUfunc_cache enumeration. KernelFieldCacheConfigRequested ActivityKernelFieldIds = 1 // KernelFieldCacheConfigExecuted: uint8_t executed; Indicates the cache configuration actually used during kernel execution. Values are from CUfunc_cache enumeration. KernelFieldCacheConfigExecuted ActivityKernelFieldIds = 2 KernelFieldSharedMemoryConfig ActivityKernelFieldIds = 3 // KernelFieldRegistersPerThread: uint16_t registersPerThread; Number of registers required for each thread executing the kernel. KernelFieldRegistersPerThread ActivityKernelFieldIds = 4 // KernelFieldPartitionedGlobalCacheRequested: [ActivityPartitionedGlobalCacheConfig] requested; Partitioned global caching requested for the kernel. Relevant for devices requiring this to enable caching. KernelFieldPartitionedGlobalCacheRequested ActivityKernelFieldIds = 5 // KernelFieldPartitionedGlobalCacheExecuted: [ActivityPartitionedGlobalCacheConfig] executed; Partitioned global caching actually used during kernel execution. KernelFieldPartitionedGlobalCacheExecuted ActivityKernelFieldIds = 6 // KernelFieldStart: uint64_t start; Start timestamp for the kernel execution (in nanoseconds). A value of 0 indicates timestamp couldn’t be collected. KernelFieldStart ActivityKernelFieldIds = 7 // KernelFieldEnd: uint64_t end; End timestamp for the kernel execution (in nanoseconds). A value of 0 indicates timestamp couldn’t be collected. KernelFieldEnd ActivityKernelFieldIds = 8 // KernelFieldCompleted: uint64_t completed; Completion timestamp for the kernel execution, including all child kernels (in nanoseconds). CUPTI_TIMESTAMP_UNKNOWN if unknown. KernelFieldCompleted ActivityKernelFieldIds = 9 // KernelFieldDeviceId: uint32_t deviceId; ID of the device where the kernel is executing. KernelFieldDeviceId ActivityKernelFieldIds = 10 // KernelFieldContextId: uint64_t contextId; ID of the context where the kernel is executing. KernelFieldContextId ActivityKernelFieldIds = 11 // KernelFieldStreamId: uint64_t streamId; ID of the stream where the kernel is executing. KernelFieldStreamId ActivityKernelFieldIds = 12 KernelFieldGridX ActivityKernelFieldIds = 13 // int32_t gridX; X-dimension of the grid size for the kernel. KernelFieldGridY ActivityKernelFieldIds = 14 // int32_t gridY; Y-dimension of the grid size for the kernel. KernelFieldGridZ ActivityKernelFieldIds = 15 // int32_t gridZ; Z-dimension of the grid size for the kernel. // KernelFieldBlockX: int32_t blockX; X-dimension of the block size for the kernel. KernelFieldBlockX ActivityKernelFieldIds = 16 // KernelFieldBlockY: int32_t blockY; Y-dimension of the block size for the kernel. KernelFieldBlockY ActivityKernelFieldIds = 17 // KernelFieldBlockZ: int32_t blockZ; Z-dimension of the block size for the kernel. KernelFieldBlockZ ActivityKernelFieldIds = 18 KernelFieldStaticSharedMemory ActivityKernelFieldIds = 19 KernelFieldDynamicSharedMemory ActivityKernelFieldIds = 20 // KernelFieldLocalMemoryPerThread: uint32_t localMemoryPerThread; Amount of local memory reserved per thread, in bytes. KernelFieldLocalMemoryPerThread ActivityKernelFieldIds = 21 // KernelFieldCorrelationId: uint64_t correlationId; Correlation ID of the kernel, Matches the correlation ID in the CUDA driver/runtime API activity record that launched it. KernelFieldCorrelationId ActivityKernelFieldIds = 22 // KernelFieldGridId: int64_t gridId; Unique grid ID assigned to the kernel at runtime. KernelFieldGridId ActivityKernelFieldIds = 23 // KernelFieldName: const char* name; Name of the kernel. Shared across all activity records for the same kernel. KernelFieldName ActivityKernelFieldIds = 24 // KernelFieldQueued: uint64_t queued; Timestamp when the kernel was queued in the command buffer (in nanoseconds). CUPTI_TIMESTAMP_UNKNOWN if not collected. KernelFieldQueued ActivityKernelFieldIds = 25 // KernelFieldSubmitted: uint64_t submitted; Timestamp when the command buffer containing the kernel launch was submitted to the GPU (in nanoseconds). CUPTI_TIMESTAMP_UNKNOWN if not collected. KernelFieldSubmitted ActivityKernelFieldIds = 26 // KernelFieldLaunchType: uint8_t launchType; Indicates if the kernel was executed via a regular launch or a cooperative launch. See [ActivityLaunchType]. KernelFieldLaunchType ActivityKernelFieldIds = 27 KernelFieldIsSharedMemoryCarveoutRequested ActivityKernelFieldIds = 28 KernelFieldSharedMemoryCarveoutRequested ActivityKernelFieldIds = 29 KernelFieldSharedMemoryExecuted ActivityKernelFieldIds = 30 // KernelFieldGraphNodeId: uint64_t graphNodeId; Unique ID of the graph node that launched this kernel through graph launch APIs. 0 if not launched through graph APIs. KernelFieldGraphNodeId ActivityKernelFieldIds = 31 // KernelFieldShmemLimitConfig: [FuncShmemLimitConfig] shmemLimitConfig; Shared memory limit configuration for the kernel, indicating if a higher per-block dynamic shared memory limit was opted. KernelFieldShmemLimitConfig ActivityKernelFieldIds = 32 // KernelFieldGraphId: uint32_t graphId; Unique ID of the graph that launched this kernel through graph launch APIs. 0 if not launched through graph APIs. KernelFieldGraphId ActivityKernelFieldIds = 33 // KernelFieldAccessPolicyWindow: CUaccessPolicyWindow* pAccessPolicyWindow; Pointer to the access policy window structure. Defined in cuda.h. KernelFieldAccessPolicyWindow ActivityKernelFieldIds = 34 // KernelFieldChannelId: uint32_t channelID; ID of the hardware channel on which the kernel is launched. KernelFieldChannelId ActivityKernelFieldIds = 35 // KernelFieldChannelType: [ChannelType] channelType; Type of the channel used for kernel launch. KernelFieldChannelType ActivityKernelFieldIds = 36 // KernelFieldClusterX: int32_t clusterX; X-dimension of the cluster size for the kernel. Valid for devices with compute capability 9.0 and higher. KernelFieldClusterX ActivityKernelFieldIds = 37 // KernelFieldClusterY: int32_t clusterY; Y-dimension of the cluster size for the kernel. Valid for devices with compute capability 9.0 and higher. KernelFieldClusterY ActivityKernelFieldIds = 38 // KernelFieldClusterZ: int32_t clusterZ; Z-dimension of the cluster size for the kernel. Valid for devices with compute capability 9.0 and higher. KernelFieldClusterZ ActivityKernelFieldIds = 39 // KernelFieldClusterSchedulingPolicy: uint32_t clusterSchedulingPolicy; Cluster scheduling policy for the kernel. Refer to CUclusterSchedulingPolicy. Valid for devices with compute capability 9.0 and higher. KernelFieldClusterSchedulingPolicy ActivityKernelFieldIds = 40 // KernelFieldLocalMemoryTotal: uint64_t localMemoryTotal_v2; Total amount of local memory reserved for the kernel, in bytes. KernelFieldLocalMemoryTotal ActivityKernelFieldIds = 41 // KernelFieldMaxPotentialClusterSize: uint32_t maxPotentialClusterSize; Maximum cluster size for the kernel. KernelFieldMaxPotentialClusterSize ActivityKernelFieldIds = 42 // KernelFieldMaxActiveClusters: uint32_t maxActiveClusters; Maximum number of clusters that could co-exist on the target device for the kernel. KernelFieldMaxActiveClusters ActivityKernelFieldIds = 43 // KernelFieldIsDeviceLaunched: uint8_t isDeviceLaunched; This field is set to 1 if the kernel is part of a device launched graph. KernelFieldIsDeviceLaunched ActivityKernelFieldIds = 44 KernelFieldLaunchPriority ActivityKernelFieldIds = 45 // int32_t priority; The launch priority of the kernel. // KernelFieldExecutionModel: uint32_t executionModel; The execution model of the kernel function. See also [FuncExecutionModel] for possible values. KernelFieldExecutionModel ActivityKernelFieldIds = 46 // KernelFieldSourceGraphId: uint32_t sourceGraphId; The unique graph ID of the node from which the kernel node was instantiated or last updated. This field will be 0 if the kernel is not launched through graph launch APIs. KernelFieldSourceGraphId ActivityKernelFieldIds = 47 // KernelFieldSourceGraphNodeId: uint64_t sourceGraphNodeId; The unique graph node ID of the node from which the kernel node was instantiated or last updated. This field will be 0 if the kernel is not launched through graph launch APIs. KernelFieldSourceGraphNodeId ActivityKernelFieldIds = 48 )
func (ActivityKernelFieldIds) String ¶
func (e ActivityKernelFieldIds) String() string
String returns the constant name, or a numeric representation for unknown values.
type ActivityKind ¶
type ActivityKind int32
ActivityKind represents the kinds of activity records.
Each activity record kind represents information about a GPU or an activity occurring on a CPU or GPU. Each kind is associated with a activity record structure that holds the information associated with the kind. See also Activity See also ActivityAPI See also ActivityContext See also ActivityContext2 See also ActivityContext3 See also ActivityContext4 See also ActivityDevice See also ActivityDevice2 See also ActivityDevice3 See also ActivityDevice4 See also ActivityDevice5 See also ActivityDevice6 See also CUpti_ActivityDeviceAttribute See also ActivityEvent See also ActivityEventInstance See also ActivityKernel See also ActivityKernel2 See also ActivityKernel3 See also ActivityKernel4 See also ActivityKernel5 See also ActivityKernel6 See also ActivityKernel7 See also ActivityKernel8 See also ActivityKernel9 See also ActivityKernel10 See also ActivityKernel11 See also ActivityKernel12 See also ActivityKernel13 See also ActivityCdpKernel See also ActivityPreemption See also ActivityMemcpy See also ActivityMemcpy3 See also ActivityMemcpy4 See also ActivityMemcpy5 See also ActivityMemcpy6 See also ActivityMemcpy7 See also ActivityMemcpy2 See also ActivityMemcpyPtoP2 See also ActivityMemcpyPtoP3 See also ActivityMemcpyPtoP4 See also ActivityMemset See also ActivityMemset2 See also ActivityMemset3 See also ActivityMemset4 See also ActivityMemset5 See also ActivityMemory See also ActivityMemory2 See also ActivityMemory3 See also ActivityMemory4 See also ActivityMemoryPool See also ActivityMemoryPool2 See also ActivityMemoryPool3 See also ActivityMetric See also ActivityMetricInstance See also ActivityName See also ActivityMarker See also ActivityMarker2 See also ActivityMarkerData See also ActivitySourceLocator See also ActivityGlobalAccess See also ActivityGlobalAccess2 See also ActivityGlobalAccess3 See also ActivityBranch See also ActivityBranch2 See also ActivityOverhead3 See also ActivityEnvironment See also ActivityInstructionExecution See also ActivityUnifiedMemoryCounter See also ActivityFunction See also ActivityModule See also ActivitySharedAccess See also ActivityPCSampling See also ActivityPCSampling2 See also ActivityPCSampling3 See also ActivityPCSamplingRecordInfo See also ActivityCudaEvent2 See also ActivityStream See also ActivitySynchronization2 See also ActivityInstructionCorrelation See also ActivityExternalCorrelation See also ActivityUnifiedMemoryCounter3 See also ActivityOpenAccData See also ActivityOpenAccLaunch See also ActivityOpenAccOther See also ActivityOpenMp See also ActivityNvLink See also ActivityNvLink2 See also ActivityNvLink3 See also ActivityNvLink4 See also ActivityNvLink5 See also ActivityPcie See also ActivityConfidentialComputeRotation See also ActivityComputeEngineCtxSwitch
const ( ActivityKindInvalid ActivityKind = 0 // The activity record is invalid. // ActivityKindMemcpy: A host<->host, host<->device, or device<->device memory copy. For peer to peer memory copy, use the kind [ActivityKindMemcpy2]. The corresponding activity record structure is [ActivityMemcpy7]. ActivityKindMemcpy ActivityKind = 1 // ActivityKindMemset: A memory set executing on the GPU. The corresponding activity record structure is [ActivityMemset5]. ActivityKindMemset ActivityKind = 2 // ActivityKindKernel: A kernel executing on the GPU. This activity kind may significantly change the overall performance characteristics of the application because all kernel executions are serialized on the GPU. Other activity kind for kernel [ActivityKindConcurrentKernel] doesn't break kernel concurrency. The corresponding activity record structure is [ActivityKernel13] ActivityKindKernel ActivityKind = 3 // ActivityKindDriver: A CUDA driver API function execution. The corresponding activity record structure is [ActivityAPI]. ActivityKindDriver ActivityKind = 4 // ActivityKindRuntime: A CUDA runtime API function execution. The corresponding activity record structure is [ActivityAPI]. ActivityKindRuntime ActivityKind = 5 // ActivityKindEvent: A performance counter (aka event) value. The corresponding activity record structure is [ActivityEvent]. This activity cannot be directly enabled or disabled. Information collected using the Event API. can be stored in the corresponding activity record. Starting with the CUDA 13.0 release, this enum is unsupported and should no longer be used. ActivityKindEvent ActivityKind = 6 // ActivityKindMetric: A performance metric value. The corresponding activity record structure is [ActivityMetric]. This activity cannot be directly enabled or disabled. Information collected using the Metric API. can be stored in the corresponding activity record. Starting with the CUDA 13.0 release, this enum is unsupported and should no longer be used. ActivityKindMetric ActivityKind = 7 // ActivityKindDevice: Information about a CUDA device. The corresponding activity record structure is [ActivityDevice6]. ActivityKindDevice ActivityKind = 8 // ActivityKindContext: Information about a CUDA context. The corresponding activity record structure is [ActivityContext4]. ActivityKindContext ActivityKind = 9 // ActivityKindConcurrentKernel: A kernel executing on the GPU. This activity kind doesn't break kernel concurrency. The corresponding activity record structure is [ActivityKernel13]. ActivityKindConcurrentKernel ActivityKind = 10 // ActivityKindName: Resource naming done via NVTX APIs for thread, device, context, etc. The corresponding activity record structure is [ActivityName]. ActivityKindName ActivityKind = 11 // ActivityKindMarker: Instantaneous, start, or end NVTX marker. The corresponding activity record structure is [ActivityMarker2]. ActivityKindMarker ActivityKind = 12 // ActivityKindMarkerData: Extended, optional, data about a NVTX marker. User must enable [ActivityKindMarker] as well to get records for marker data. The corresponding activity record structure is [ActivityMarkerData2]. ActivityKindMarkerData ActivityKind = 13 // ActivityKindSourceLocator: Source information about source level result. The corresponding activity record structure is [ActivitySourceLocator]. Starting with the CUDA 13.0 release, this enum is unsupported and should no longer be used. Enabling it will return the error code [ErrLegacyProfilerNotSupported]. Instead, use the SASS Metric APIs from the cupti_sass_metrics.h header. ActivityKindSourceLocator ActivityKind = 14 // ActivityKindGlobalAccess: Results for source-level global access. The corresponding activity record structure is [ActivityGlobalAccess3]. Starting with the CUDA 13.0 release, this enum is unsupported and should no longer be used. Enabling it will return the error code [ErrLegacyProfilerNotSupported]. Instead, use the SASS Metric APIs from the cupti_sass_metrics.h header. ActivityKindGlobalAccess ActivityKind = 15 // ActivityKindBranch: Results for source-level branch. The corresponding activity record structure is [ActivityBranch2]. Starting with the CUDA 13.0 release, this enum is unsupported and should no longer be used. Enabling it will return the error code [ErrLegacyProfilerNotSupported]. Instead, use the SASS Metric APIs from the cupti_sass_metrics.h header. ActivityKindBranch ActivityKind = 16 // ActivityKindOverhead: Overhead added by CUPTI, Compiler, CUDA driver etc. The corresponding activity record structure is [ActivityOverhead3]. ActivityKindOverhead ActivityKind = 17 // ActivityKindCdpKernel: A CDP (CUDA Dynamic Parallel) kernel executing on the GPU. The corresponding activity record structure is [ActivityCdpKernel]. This activity cannot be directly enabled or disabled. It is enabled and disabled through concurrent kernel activity i.e. _CONCURRENT_KERNEL. ActivityKindCdpKernel ActivityKind = 18 // ActivityKindPreemption: Preemption activity record indicating a preemption of a CDP (CUDA Dynamic Parallel) kernel executing on the GPU. The corresponding activity record structure is [ActivityPreemption]. ActivityKindPreemption ActivityKind = 19 // ActivityKindEnvironment: Environment activity records indicating power, clock, thermal, etc. levels of the GPU. The corresponding activity record structure is [ActivityEnvironment]. ActivityKindEnvironment ActivityKind = 20 // ActivityKindEventInstance: An performance counter value associated with a specific event domain instance. The corresponding activity record structure is [ActivityEventInstance]. This activity cannot be directly enabled or disabled. Information collected using the Event API. can be stored in the corresponding activity record. Starting with the CUDA 13.0 release, this enum is unsupported and should no longer be used. ActivityKindEventInstance ActivityKind = 21 // ActivityKindMemcpy2: A peer to peer memory copy. The corresponding activity record structure is [ActivityMemcpyPtoP4]. ActivityKindMemcpy2 ActivityKind = 22 // ActivityKindMetricInstance: A performance metric value associated with a specific metric domain instance. The corresponding activity record structure is [ActivityMetricInstance]. This activity cannot be directly enabled or disabled. Information collected using the Metric API. can be stored in the corresponding activity record. Starting with the CUDA 13.0 release, this enum is unsupported and should no longer be used. ActivityKindMetricInstance ActivityKind = 23 // ActivityKindInstructionExecution: Results for source-level instruction execution. The corresponding activity record structure is [ActivityInstructionExecution]. Starting with the CUDA 13.0 release, this enum is unsupported and should no longer be used. Enabling it will return the error code [ErrLegacyProfilerNotSupported]. Instead, use the SASS Metric APIs from the cupti_sass_metrics.h header. ActivityKindInstructionExecution ActivityKind = 24 // ActivityKindUnifiedMemoryCounter: Unified Memory counter record. The corresponding activity record structure is [ActivityUnifiedMemoryCounter3]. ActivityKindUnifiedMemoryCounter ActivityKind = 25 // ActivityKindFunction: Device global/function record. The corresponding activity record structure is [ActivityFunction]. ActivityKindFunction ActivityKind = 26 // ActivityKindModule: CUDA Module record. The corresponding activity record structure is [ActivityModule]. This activity cannot be directly enabled or disabled. Information collected using the module callback can be be stored in the corresponding activity record. ActivityKindModule ActivityKind = 27 // ActivityKindDeviceAttribute: A device attribute value. The corresponding activity record structure is . This activity cannot be directly enabled or disabled. Information collected using attributes [DeviceAttribute] or CUdevice_attribute can be stored in the corresponding activity record. ActivityKindDeviceAttribute ActivityKind = 28 ActivityKindSharedAccess ActivityKind = 29 // ActivityKindPcSampling: PC sampling information for kernels. This will serialize kernels. The corresponding activity record structure is [ActivityPCSampling3]. Starting with the CUDA 13.0 release, this enum is unsupported and should no longer be used. Enabling it will return the error code [ErrLegacyProfilerNotSupported]. Instead, use the PC Sampling API from the cupti_pcsampling.h header, which allows concurrent kernel execution. ActivityKindPcSampling ActivityKind = 30 // ActivityKindPcSamplingRecordInfo: Summary information about PC sampling records. The corresponding activity record structure is [ActivityPCSamplingRecordInfo]. Starting with the CUDA 13.0 release, this enum is unsupported and should no longer be used. Enabling it will return the error code [ErrLegacyProfilerNotSupported]. Instead, use the PC Sampling API from the cupti_pcsampling.h header. ActivityKindPcSamplingRecordInfo ActivityKind = 31 // ActivityKindInstructionCorrelation: SASS/Source line-by-line correlation record. This will generate sass/source correlation for functions that have source level analysis or pc sampling results. The records will be generated only when either of source level analysis or pc sampling activity is enabled. The corresponding activity record structure is [ActivityInstructionCorrelation]. Starting with the CUDA 13.0 release, this enum is unsupported and should no longer be used. Enabling it will return the error code [ErrLegacyProfilerNotSupported]. Instead, use the SASS Metric APIs from the cupti_sass_metrics.h header. ActivityKindInstructionCorrelation ActivityKind = 32 // ActivityKindOpenaccData: OpenACC data events. The corresponding activity record structure is [ActivityOpenAccData]. ActivityKindOpenaccData ActivityKind = 33 // ActivityKindOpenaccLaunch: OpenACC launch events. The corresponding activity record structure is [ActivityOpenAccLaunch]. ActivityKindOpenaccLaunch ActivityKind = 34 // ActivityKindOpenaccOther: OpenACC other events. The corresponding activity record structure is [ActivityOpenAccOther]. ActivityKindOpenaccOther ActivityKind = 35 // ActivityKindCudaEvent: Information about a CUDA event (cudaEvent). The corresponding activity record structure is [ActivityCudaEvent3]. ActivityKindCudaEvent ActivityKind = 36 // ActivityKindStream: Information about a CUDA stream. The corresponding activity record structure is [ActivityStream]. ActivityKindStream ActivityKind = 37 // ActivityKindSynchronization: Records for CUDA synchronization primitives. The corresponding activity record structure is [ActivitySynchronization2]. ActivityKindSynchronization ActivityKind = 38 // ActivityKindExternalCorrelation: Records for correlation of different programming APIs. The corresponding activity record structure is [ActivityExternalCorrelation]. ActivityKindExternalCorrelation ActivityKind = 39 // ActivityKindNvlink: NVLink topology information. The corresponding activity record structure is [ActivityNvLink5]. ActivityKindNvlink ActivityKind = 40 // ActivityKindInstantaneousEvent: Instantaneous Event information. The corresponding activity record structure is [ActivityInstantaneousEvent]. This activity can not be directly enabled or disabled. Information collected using the Event API can be stored in the corresponding activity record. Starting with the CUDA 13.0 release, this enum is unsupported and should no longer be used. ActivityKindInstantaneousEvent ActivityKind = 41 // ActivityKindInstantaneousEventInstance: Instantaneous Event information for a specific event domain instance. The corresponding activity record structure is [ActivityInstantaneousEventInstance]. This activity can not be directly enabled or disabled. Information collected using the Event API can be stored in the corresponding activity record. Starting with the CUDA 13.0 release, this enum is unsupported and should no longer be used. ActivityKindInstantaneousEventInstance ActivityKind = 42 // ActivityKindInstantaneousMetric: Instantaneous Metric information The corresponding activity record structure is [ActivityInstantaneousMetric]. This activity cannot be directly enabled or disabled. Information collected using the Metric API can be stored in the corresponding activity record. Starting with the CUDA 13.0 release, this enum is unsupported and should no longer be used. ActivityKindInstantaneousMetric ActivityKind = 43 // ActivityKindInstantaneousMetricInstance: Instantaneous Metric information for a specific metric domain instance. The corresponding activity record structure is [ActivityInstantaneousMetricInstance]. This activity cannot be directly enabled or disabled. Information collected using the Metric API can be stored in the corresponding activity record. Starting with the CUDA 13.0 release, this enum is unsupported and should no longer be used. ActivityKindInstantaneousMetricInstance ActivityKind = 44 // ActivityKindMemory: Memory activity tracking allocation and freeing of the memory The corresponding activity record structure is [ActivityMemory]. ActivityKindMemory ActivityKind = 45 // ActivityKindPcie: PCI devices information used for PCI topology. The corresponding activity record structure is [ActivityPcie]. ActivityKindPcie ActivityKind = 46 // ActivityKindOpenmp: OpenMP parallel events. The corresponding activity record structure is [ActivityOpenMp]. ActivityKindOpenmp ActivityKind = 47 // ActivityKindInternalLaunchApi: A CUDA driver kernel launch occurring outside of any public API function execution. Tools can handle these like records for driver API launch functions, although the cbid field is not used here. The corresponding activity record structure is [ActivityAPI]. ActivityKindInternalLaunchApi ActivityKind = 48 // ActivityKindMemory2: Memory activity tracking allocation and freeing of the memory The corresponding activity record structure is [ActivityMemory4]. ActivityKindMemory2 ActivityKind = 49 // ActivityKindMemoryPool: Memory pool activity tracking creation, destruction and trimming of the memory pool. The corresponding activity record structure is [ActivityMemoryPool3]. ActivityKindMemoryPool ActivityKind = 50 // ActivityKindGraphTrace: Activity record for graph-level information. Successfully enabling this activity selects graph-level tracing for the CUPTI session. Disabling the activity stops delivery of graph records but does not restore node level tracing of graph nodes. The corresponding activity record structure is [ActivityGraphTrace2]. ActivityKindGraphTrace ActivityKind = 51 // ActivityKindJit: JIT (Just-in-time) operation tracking. The corresponding activity record structure is [ActivityJit2]. ActivityKindJit ActivityKind = 52 // ActivityKindDeviceGraphTrace: This activity can not be directly enabled or disabled when using predefined records. It is enabled when [ActivityKindGraphTrace] is enabled and device graph trace is enabled through API [ActivityEnableDeviceGraph]. For user defined activity records, this activity kind must be explicitly enabled through API [Subscriber.ActivityEnableV2] The corresponding activity record structure is [ActivityDeviceGraphTrace]. ActivityKindDeviceGraphTrace ActivityKind = 53 // ActivityKindMemDecompress: Tracing batches of copies that are to be decompressed. The corresponding activity record structure is [ActivityMemDecompress]. ActivityKindMemDecompress ActivityKind = 54 // ActivityKindConfidentialComputeRotation: Tracing new overheads introduced on some hardware due when confidential computing is enabled. The corresponding activity record structure is [ActivityConfidentialComputeRotation]. ActivityKindConfidentialComputeRotation ActivityKind = 55 // ActivityKindGraphHostNode: Tracing of host execution nodes of the CUDA graph, i.e. nodes of type CU_GRAPH_NODE_TYPE_HOST. The corresponding activity record structure is [ActivityGraphHostNode]. ActivityKindGraphHostNode ActivityKind = 56 // ActivityKindComputeEngineCtxSwitch: An activity denoting the switching of Compute Engine contexts in/out of the GPU. The corresponding activity record structure is [ActivityComputeEngineCtxSwitch]. ActivityKindComputeEngineCtxSwitch ActivityKind = 57 // ActivityKindHostLaunch: An activity kind denoting the launch of a host function through cu(da)LaunchHostFunc API. The corresponding activity record structure is [ActivityHostLaunch]. ActivityKindHostLaunch ActivityKind = 58 // ActivityKindGreenContext: An activity kind denoting the allocation of a green context. The corresponding activity record structure is [ActivityGreenContext3]. ActivityKindGreenContext ActivityKind = 59 ActivityKindCount ActivityKind = 60 // Count of supported activity kinds. ActivityKindForceInt ActivityKind = 0x7fffffff )
func (ActivityKind) String ¶
func (e ActivityKind) String() string
String returns the constant name, or a numeric representation for unknown values.
type ActivityLaunchType ¶
type ActivityLaunchType int32
ActivityLaunchType represents the type of the CUDA kernel launch.
const ( ActivityLaunchTypeRegular ActivityLaunchType = 0 // The kernel was launched via a regular kernel call // ActivityLaunchTypeCooperativeSingleDevice: The kernel was launched via API cudaLaunchCooperativeKernel() or cuLaunchCooperativeKernel() ActivityLaunchTypeCooperativeSingleDevice ActivityLaunchType = 1 // ActivityLaunchTypeCooperativeMultiDevice: The kernel was launched via API cudaLaunchCooperativeKernelMultiDevice() or cuLaunchCooperativeKernelMultiDevice() ActivityLaunchTypeCooperativeMultiDevice ActivityLaunchType = 2 ActivityLaunchTypeCblCommandlist ActivityLaunchType = 3 // The kernel was launched as a CBL commandlist )
func (ActivityLaunchType) String ¶
func (e ActivityLaunchType) String() string
String returns the constant name, or a numeric representation for unknown values.
type ActivityMarker
deprecated
type ActivityMarker struct {
Kind ActivityKind
Flags ActivityFlag
Timestamp uint64
Id uint32
ObjectKind ActivityObjectKind
ObjectId ActivityObjectKindId
Pad uint32
Name uintptr
}
ActivityMarker represents the activity record providing a marker which is an instantaneous point in time.
The marker is specified with a descriptive name and unique id (ActivityKindMarker). Marker activity is now reported using the ActivityMarker2 activity record.
Deprecated: Deprecated in CUDA 8.0. Use ActivityMarker2 instead.
type ActivityMarker2 ¶
type ActivityMarker2 struct {
Kind ActivityKind
Flags ActivityFlag
Timestamp uint64
Id uint32
ObjectKind ActivityObjectKind
ObjectId ActivityObjectKindId
Pad uint32
Name uintptr
Domain uintptr
}
ActivityMarker2 represents the activity record providing a marker which is an instantaneous point in time.
The marker is specified with a descriptive name and unique id (ActivityKindMarker).
type ActivityMarkerData
deprecated
type ActivityMarkerData struct {
Kind ActivityKind
Flags ActivityFlag
Id uint32
PayloadKind MetricValueKind
Payload [1]uint64
Color uint32
Category uint32
}
ActivityMarkerData represents the activity record providing detailed information for a marker.
User must enable ActivityKindMarker as well to get records for marker data. The marker data contains color, payload, and category. (ActivityKindMarkerData).
Deprecated: Deprecated in CUDA 13.1. Use ActivityMarkerData2 instead. Structure deprecated in CUDA 13.1: Refer to ActivityMarkerData2 for the latest structure.
type ActivityMarkerData2 ¶
type ActivityMarkerData2 struct {
Kind ActivityKind
Flags ActivityFlag
Id uint32
PayloadKind MetricValueKind
Payload [1]uint64
Color uint32
Category uint32
CuptiDomainId uint32
Padding uint32
}
ActivityMarkerData2 represents the activity record providing detailed information for a marker.
User must enable ActivityKindMarker as well to get records for marker data. The marker data contains color, payload, and category. (ActivityKindMarkerData).
type ActivityMarkerDataFieldIds ¶
type ActivityMarkerDataFieldIds int32
ActivityMarkerDataFieldIds represents enum identifiers for fields to trace detailed information for a marker.
User must enable ActivityKindMarker as well to get records for marker data. These field IDs are used to reference specific fields when dynamically selecting or parsing activity records of ActivityKindMarkerData.
const ( // MarkerDataFieldKind: [ActivityKind] kind; Kind of this activity record. Always [ActivityKindMarkerData]. MarkerDataFieldKind ActivityMarkerDataFieldIds = 0 MarkerDataFieldFlags ActivityMarkerDataFieldIds = 1 // [ActivityFlag] flags; Flags associated with the marker. MarkerDataFieldId ActivityMarkerDataFieldIds = 2 // uint32_t id; Marker ID. // MarkerDataFieldPayloadKind: [MetricValueKind] payloadKind; Defines the payload format for the value associated with the marker. MarkerDataFieldPayloadKind ActivityMarkerDataFieldIds = 3 MarkerDataFieldPayload ActivityMarkerDataFieldIds = 4 // CUpti_MetricValue payload; The payload value. MarkerDataFieldColor ActivityMarkerDataFieldIds = 5 // uint32_t color; The color for the marker. MarkerDataFieldCategory ActivityMarkerDataFieldIds = 6 // uint32_t category; The category for the marker. // MarkerDataFieldCuptiDomainId: uint32_t cuptiDomainId; CUPTI maintained domain id required for NVTX extended payloads. MarkerDataFieldCuptiDomainId ActivityMarkerDataFieldIds = 7 )
func (ActivityMarkerDataFieldIds) String ¶
func (e ActivityMarkerDataFieldIds) String() string
String returns the constant name, or a numeric representation for unknown values.
type ActivityMarkerFieldIds ¶
type ActivityMarkerFieldIds int32
ActivityMarkerFieldIds represents enum identifiers for fields to trace NVTX markers/ranges.
These field IDs are used to reference specific fields when dynamically selecting or parsing activity records of ActivityKindMarker.
const ( // MarkerFieldKind: [ActivityKind] kind; Kind of this activity record. Always [ActivityKindMarker]. MarkerFieldKind ActivityMarkerFieldIds = 0 MarkerFieldFlags ActivityMarkerFieldIds = 1 // [ActivityFlag] flags; Flags associated with the marker. MarkerFieldTimestamp ActivityMarkerFieldIds = 2 // uint64_t timestamp; Timestamp for the marker (in ns). MarkerFieldId ActivityMarkerFieldIds = 3 // uint32_t id; Marker ID. // MarkerFieldProcessId: uint32_t processId; The process ID of the process where the overhead is occurring. MarkerFieldProcessId ActivityMarkerFieldIds = 4 // MarkerFieldThreadId: uint64_t threadId; The thread ID of the process where the overhead is occurring. MarkerFieldThreadId ActivityMarkerFieldIds = 5 // MarkerFieldName: const char *name; Marker name for an instantaneous or start marker. MarkerFieldName ActivityMarkerFieldIds = 6 // MarkerFieldDomain: const char *domain; Name of the domain to which this marker belongs. MarkerFieldDomain ActivityMarkerFieldIds = 7 )
func (ActivityMarkerFieldIds) String ¶
func (e ActivityMarkerFieldIds) String() string
String returns the constant name, or a numeric representation for unknown values.
type ActivityMemDecompress ¶
type ActivityMemDecompress struct {
Kind ActivityKind
DeviceId uint32
ContextId uint32
StreamId uint32
ChannelID uint32
ChannelType ChannelType
CorrelationId uint32
NumberOfOperations uint32
SourceBytes uint64
Reserved0 uintptr
Start uint64
End uint64
}
ActivityMemDecompress represents the activity record for trace of decompression operations.
This activity record represents execution for a batch of decompression operatios. The activity kind is ActivityKindMemDecompress
type ActivityMemDecompressFieldIds ¶
type ActivityMemDecompressFieldIds int32
ActivityMemDecompressFieldIds represents enum identifiers for fields to trace decompression operations.
These field IDs are used to reference specific fields when dynamically selecting or parsing activity records of ActivityKindMemDecompress.
const ( // MemDecompressFieldKind: [ActivityKind] kind; Kind of this activity record. Always [ActivityKindMemDecompress]. MemDecompressFieldKind ActivityMemDecompressFieldIds = 0 // MemDecompressFieldDeviceId: uint32_t deviceId; The ID of the device where the decompression operation was recorded. MemDecompressFieldDeviceId ActivityMemDecompressFieldIds = 1 // MemDecompressFieldContextId: uint32_t contextId; The ID of the context where the decompression operation was recorded. MemDecompressFieldContextId ActivityMemDecompressFieldIds = 2 // MemDecompressFieldStreamId: uint32_t streamId; The compute stream where the decompression operation was recorded. MemDecompressFieldStreamId ActivityMemDecompressFieldIds = 3 // MemDecompressFieldChannelId: uint32_t channelId; The ID of the HW channel on which the decompression operation was recorded. MemDecompressFieldChannelId ActivityMemDecompressFieldIds = 4 // MemDecompressFieldChannelType: [ChannelType] channelType; The type of the channel on which the decompression operation was recorded. MemDecompressFieldChannelType ActivityMemDecompressFieldIds = 5 // MemDecompressFieldCorrelationId: uint64_t correlationId; Correlation ID assigned to this decompression operation. Matches the correlation ID in the CUDA driver/runtime API activity record that launched it. MemDecompressFieldCorrelationId ActivityMemDecompressFieldIds = 6 // MemDecompressFieldNumberOfOperations: uint32_t numberOfOperations; The number of decompression operations in this batch. MemDecompressFieldNumberOfOperations ActivityMemDecompressFieldIds = 7 // MemDecompressFieldSourceBytes: uint64_t sourceBytes; The total number of bytes to be read and decompressed in the batch operation. MemDecompressFieldSourceBytes ActivityMemDecompressFieldIds = 8 // MemDecompressFieldStart: uint64_t start; Start timestamp of the decompression operation, in nanoseconds. MemDecompressFieldStart ActivityMemDecompressFieldIds = 9 // MemDecompressFieldEnd: uint64_t end; End timestamp of the decompression operation, in nanoseconds. MemDecompressFieldEnd ActivityMemDecompressFieldIds = 10 )
func (ActivityMemDecompressFieldIds) String ¶
func (e ActivityMemDecompressFieldIds) String() string
String returns the constant name, or a numeric representation for unknown values.
type ActivityMemcpy
deprecated
type ActivityMemcpy struct {
Kind ActivityKind
CopyKind uint8
SrcKind uint8
DstKind uint8
Flags uint8
Bytes uint64
Start uint64
End uint64
DeviceId uint32
ContextId uint32
StreamId uint32
CorrelationId uint32
RuntimeCorrelationId uint32
Pad uint32
Reserved0 uintptr
}
ActivityMemcpy represents the activity record for memory copies.
This activity record represents a memory copy (ActivityKindMemcpy).
Deprecated: Deprecated by NVIDIA.
type ActivityMemcpy2 ¶
type ActivityMemcpy2 struct {
Kind ActivityKind
CopyKind uint8
SrcKind uint8
DstKind uint8
Flags uint8
Bytes uint64
Start uint64
End uint64
DeviceId uint32
ContextId uint32
StreamId uint32
SrcDeviceId uint32
SrcContextId uint32
DstDeviceId uint32
DstContextId uint32
CorrelationId uint32
Reserved0 uintptr
}
ActivityMemcpy2 represents the activity record for peer-to-peer memory copies.
This activity record represents a peer-to-peer memory copy (ActivityKindMemcpy2) but is no longer generated by CUPTI. Peer-to-peer memory copy activities are now reported using the ActivityMemcpyPtoP2 activity record..
type ActivityMemcpy2FieldIds ¶
type ActivityMemcpy2FieldIds int32
ActivityMemcpy2FieldIds represents enum identifiers for fields to trace peer-to-peer memory copies.
These field IDs are used to reference specific fields when dynamically selecting or parsing activity records of ActivityKindMemcpy2.
const ( // Memcpy2FieldKind: [ActivityKind] kind; Kind of this activity record. Always [ActivityKindMemcpy2]. Memcpy2FieldKind ActivityMemcpy2FieldIds = 0 // Memcpy2FieldCopyKind: uint8_t copyKind; Type of memory copy. ALways CUPTI_ACTIVITY_MEMCPY_KIND_P2P. See also [ActivityMemcpyKind] Memcpy2FieldCopyKind ActivityMemcpy2FieldIds = 1 // Memcpy2FieldSrcKind: uint8_t srcKind; Kind of source memory used in the copy. See also [ActivityMemoryKind] Memcpy2FieldSrcKind ActivityMemcpy2FieldIds = 2 // Memcpy2FieldDstKind: uint8_t dstKind; Kind of destination memory used in the copy. See also [ActivityMemoryKind] Memcpy2FieldDstKind ActivityMemcpy2FieldIds = 3 // Memcpy2FieldFlags: uint8_t flags; Flags associated with the memory copy. See also [ActivityFlag] Memcpy2FieldFlags ActivityMemcpy2FieldIds = 4 // Memcpy2FieldBytes: uint64_t bytes; Number of bytes transferred during the memory copy. Memcpy2FieldBytes ActivityMemcpy2FieldIds = 5 // Memcpy2FieldStart: uint64_t start; Start timestamp for the memory copy (in nanoseconds). A value of 0 indicates timestamp couldn’t be collected. Memcpy2FieldStart ActivityMemcpy2FieldIds = 6 // Memcpy2FieldEnd: uint64_t end; End timestamp for the memory copy (in nanoseconds). A value of 0 indicates timestamp couldn’t be collected. Memcpy2FieldEnd ActivityMemcpy2FieldIds = 7 // Memcpy2FieldDeviceId: uint32_t deviceId; Device where the memory copy is occurring. Memcpy2FieldDeviceId ActivityMemcpy2FieldIds = 8 // Memcpy2FieldContextId: uint32_t contextId; CUDA context where the memory copy is occurring. Memcpy2FieldContextId ActivityMemcpy2FieldIds = 9 // Memcpy2FieldStreamId: uint32_t streamId; Stream in which the memory copy is occurring. Memcpy2FieldStreamId ActivityMemcpy2FieldIds = 10 // Memcpy2FieldSrcDeviceId: uint32_t srcDeviceId; Device from which memory is being copied. Memcpy2FieldSrcDeviceId ActivityMemcpy2FieldIds = 11 // Memcpy2FieldSrcContextId: uint32_t srcContextId; CUDA context owning the source memory. Memcpy2FieldSrcContextId ActivityMemcpy2FieldIds = 12 // Memcpy2FieldDstDeviceId: uint32_t dstDeviceId; Device to which memory is being copied. Memcpy2FieldDstDeviceId ActivityMemcpy2FieldIds = 13 // Memcpy2FieldDstContextId: uint32_t dstContextId; CUDA context owning the destination memory. Memcpy2FieldDstContextId ActivityMemcpy2FieldIds = 14 // Memcpy2FieldCorrelationId: uint64_t correlationId; Correlation ID assigned to this memory copy. Matches the correlation ID in the CUDA driver/runtime API activity record that launched it. Memcpy2FieldCorrelationId ActivityMemcpy2FieldIds = 15 // Memcpy2FieldGraphNodeId: uint64_t graphNodeId; ID of the graph node that launched this memcpy. 0 if not launched via a CUDA Graph. Memcpy2FieldGraphNodeId ActivityMemcpy2FieldIds = 16 // Memcpy2FieldGraphId: uint32_t graphId; ID of the CUDA Graph associated with this memory copy. 0 if not launched via a CUDA Graph. Memcpy2FieldGraphId ActivityMemcpy2FieldIds = 17 // Memcpy2FieldChannelId: uint32_t channelID; Hardware channel ID used for the memory copy. Memcpy2FieldChannelId ActivityMemcpy2FieldIds = 18 Memcpy2FieldChannelType ActivityMemcpy2FieldIds = 19 // [ChannelType] channelType; Type of the hardware channel. )
func (ActivityMemcpy2FieldIds) String ¶
func (e ActivityMemcpy2FieldIds) String() string
String returns the constant name, or a numeric representation for unknown values.
type ActivityMemcpy3
deprecated
type ActivityMemcpy3 struct {
Kind ActivityKind
CopyKind uint8
SrcKind uint8
DstKind uint8
Flags uint8
Bytes uint64
Start uint64
End uint64
DeviceId uint32
ContextId uint32
StreamId uint32
CorrelationId uint32
RuntimeCorrelationId uint32
Pad uint32
Reserved0 uintptr
GraphNodeId uint64
}
ActivityMemcpy3 represents the activity record for memory copies.
This activity record represents a memory copy (ActivityKindMemcpy).
Deprecated: Deprecated in CUDA 11.1.
type ActivityMemcpy4
deprecated
type ActivityMemcpy4 struct {
Kind ActivityKind
CopyKind uint8
SrcKind uint8
DstKind uint8
Flags uint8
Bytes uint64
Start uint64
End uint64
DeviceId uint32
ContextId uint32
StreamId uint32
CorrelationId uint32
RuntimeCorrelationId uint32
Pad uint32
Reserved0 uintptr
GraphNodeId uint64
GraphId uint32
Padding uint32
}
ActivityMemcpy4 represents the activity record for memory copies.
This activity record represents a memory copy (ActivityKindMemcpy).
Deprecated: Deprecated in CUDA 11.6.
type ActivityMemcpy5
deprecated
type ActivityMemcpy5 struct {
Kind ActivityKind
CopyKind uint8
SrcKind uint8
DstKind uint8
Flags uint8
Bytes uint64
Start uint64
End uint64
DeviceId uint32
ContextId uint32
StreamId uint32
CorrelationId uint32
RuntimeCorrelationId uint32
Pad uint32
Reserved0 uintptr
GraphNodeId uint64
GraphId uint32
ChannelID uint32
ChannelType ChannelType
Pad2 uint32
}
ActivityMemcpy5 represents the activity record for memory copies.
This activity record represents a memory copy (ActivityKindMemcpy).
Deprecated: Deprecated in CUDA 12.8. Use ActivityMemcpy6 instead. Structure deprecated in CUDA 12.8: Refer to ActivityMemcpy6 for the latest structure.
type ActivityMemcpy6
deprecated
type ActivityMemcpy6 struct {
Kind ActivityKind
CopyKind uint8
SrcKind uint8
DstKind uint8
Flags uint8
Bytes uint64
Start uint64
End uint64
DeviceId uint32
ContextId uint32
StreamId uint32
CorrelationId uint32
RuntimeCorrelationId uint32
Pad uint32
Reserved0 uintptr
GraphNodeId uint64
GraphId uint32
ChannelID uint32
ChannelType ChannelType
IsDeviceLaunched uint8
Pad2 [3]uint8
CopyCount uint64
}
ActivityMemcpy6 represents the activity record for memory copies (version 6).
This activity record represents a memory copy (ActivityKindMemcpy). ActivityMemcpy7
Deprecated: Deprecated by NVIDIA.
type ActivityMemcpy7 ¶
type ActivityMemcpy7 struct {
Kind ActivityKind
CopyKind uint8
SrcKind uint8
DstKind uint8
Flags uint8
Bytes uint64
Start uint64
End uint64
DeviceId uint32
ContextId uint32
StreamId uint32
CorrelationId uint32
RuntimeCorrelationId uint32
Pad uint32
Reserved0 uintptr
GraphNodeId uint64
GraphId uint32
ChannelID uint32
ChannelType ChannelType
IsDeviceLaunched uint8
Pad2 [3]uint8
CopyCount uint64
SourceGraphId uint32
Pad3 uint32
SourceGraphNodeId uint64
}
ActivityMemcpy7 represents the activity record for memory copies (version 7).
This activity record represents a memory copy (ActivityKindMemcpy).
type ActivityMemcpyFieldIds ¶
type ActivityMemcpyFieldIds int32
ActivityMemcpyFieldIds represents enum identifiers for fields to trace memory copies.
These field IDs are used to reference specific fields when dynamically selecting or parsing activity records of ActivityKindMemcpy.
const ( // MemcpyFieldKind: [ActivityKind] kind; Kind of this activity record. Always [ActivityKindMemcpy]. MemcpyFieldKind ActivityMemcpyFieldIds = 0 // MemcpyFieldCopyKind: uint8_t copyKind; Type of memory copy operation. See also [ActivityMemcpyKind] MemcpyFieldCopyKind ActivityMemcpyFieldIds = 1 // MemcpyFieldSrcKind: uint8_t srcKind; Memory kind of the source location. See also [ActivityMemoryKind] MemcpyFieldSrcKind ActivityMemcpyFieldIds = 2 // MemcpyFieldDstKind: uint8_t dstKind; Memory kind of the destination location. See also [ActivityMemoryKind] MemcpyFieldDstKind ActivityMemcpyFieldIds = 3 // MemcpyFieldFlags: uint8_t flags; Flags associated with the memory copy. See also [ActivityFlag] MemcpyFieldFlags ActivityMemcpyFieldIds = 4 // MemcpyFieldBytes: uint64_t bytes; Number of bytes copied during the memory operation. MemcpyFieldBytes ActivityMemcpyFieldIds = 5 // MemcpyFieldStart: uint64_t start; Start timestamp of the memory copy, in nanoseconds. A value of 0 indicates timestamp couldn’t be collected. MemcpyFieldStart ActivityMemcpyFieldIds = 6 // MemcpyFieldEnd: uint64_t end; End timestamp of the memory copy, in nanoseconds. A value of 0 indicates timestamp couldn’t be collected. MemcpyFieldEnd ActivityMemcpyFieldIds = 7 // MemcpyFieldDeviceId: uint32_t deviceId; ID of the device where the memory copy occurred. MemcpyFieldDeviceId ActivityMemcpyFieldIds = 8 // MemcpyFieldContextId: uint32_t contextId; ID of the CUDA context where the memory copy occurred. MemcpyFieldContextId ActivityMemcpyFieldIds = 9 // MemcpyFieldStreamId: uint32_t streamId; ID of the stream where the memory copy occurred. MemcpyFieldStreamId ActivityMemcpyFieldIds = 10 // MemcpyFieldCorrelationId: uint64_t correlationId; Correlation ID assigned to this memory copy. Matches the correlation ID in the CUDA driver/runtime API activity record that launched it. MemcpyFieldCorrelationId ActivityMemcpyFieldIds = 11 // MemcpyFieldGraphNodeId: uint64_t graphNodeId; ID of the CUDA Graph node that launched this memory copy. 0 if not launched via a CUDA Graph. MemcpyFieldGraphNodeId ActivityMemcpyFieldIds = 12 // MemcpyFieldGraphId: uint32_t graphId; ID of the CUDA Graph that launched this memory copy. 0 if not launched via a CUDA Graph. MemcpyFieldGraphId ActivityMemcpyFieldIds = 13 // MemcpyFieldChannelId: uint32_t channelID; ID of the hardware channel on which this memory copy was executed. MemcpyFieldChannelId ActivityMemcpyFieldIds = 14 // MemcpyFieldChannelType: [ChannelType] channelType; Type of the hardware channel used. MemcpyFieldChannelType ActivityMemcpyFieldIds = 15 // MemcpyFieldIsDeviceLaunched: uint8_t isDeviceLaunched; This field is set to 1 if the kernel is part of a device launched graph. MemcpyFieldIsDeviceLaunched ActivityMemcpyFieldIds = 16 // MemcpyFieldCopyCount: uint64_t copyCount; Number of individual memcpy operations traced in this record. MemcpyFieldCopyCount ActivityMemcpyFieldIds = 17 // MemcpyFieldSourceGraphId: uint32_t sourceGraphId; The unique graph ID of the node from which the memcpy node was instantiated or last updated. This field will be 0 if the memcpy is not launched through graph launch APIs. MemcpyFieldSourceGraphId ActivityMemcpyFieldIds = 18 // MemcpyFieldSourceGraphNodeId: uint64_t sourceGraphNodeId; The unique graph node ID of the node from which the memcpy node was instantiated or last updated. This field will be 0 if the memcpy is not launched through graph launch APIs. MemcpyFieldSourceGraphNodeId ActivityMemcpyFieldIds = 19 )
func (ActivityMemcpyFieldIds) String ¶
func (e ActivityMemcpyFieldIds) String() string
String returns the constant name, or a numeric representation for unknown values.
type ActivityMemcpyKind ¶
type ActivityMemcpyKind int32
ActivityMemcpyKind represents the kind of a memory copy, indicating the source and destination targets of the copy.
Each kind represents the source and destination targets of a memory copy. Targets are host, device, and array.
const ( ActivityMemcpyKindUnknown ActivityMemcpyKind = 0 // The memory copy kind is not known. ActivityMemcpyKindHtod ActivityMemcpyKind = 1 // A host to device memory copy. ActivityMemcpyKindDtoh ActivityMemcpyKind = 2 // A device to host memory copy. ActivityMemcpyKindHtoa ActivityMemcpyKind = 3 // A host to device array memory copy. ActivityMemcpyKindAtoh ActivityMemcpyKind = 4 // A device array to host memory copy. ActivityMemcpyKindAtoa ActivityMemcpyKind = 5 // A device array to device array memory copy. ActivityMemcpyKindAtod ActivityMemcpyKind = 6 // A device array to device memory copy. ActivityMemcpyKindDtoa ActivityMemcpyKind = 7 // A device to device array memory copy. ActivityMemcpyKindDtod ActivityMemcpyKind = 8 // A device to device memory copy on the same device. ActivityMemcpyKindHtoh ActivityMemcpyKind = 9 // A host to host memory copy. ActivityMemcpyKindPtop ActivityMemcpyKind = 10 // A peer to peer memory copy across different devices. ActivityMemcpyKindForceInt ActivityMemcpyKind = 0x7fffffff )
func (ActivityMemcpyKind) String ¶
func (e ActivityMemcpyKind) String() string
String returns the constant name, or a numeric representation for unknown values.
type ActivityMemcpyPtoP ¶
type ActivityMemcpyPtoP = ActivityMemcpy2
ActivityMemcpyPtoP is an alias for ActivityMemcpy2.
type ActivityMemcpyPtoP2
deprecated
type ActivityMemcpyPtoP2 struct {
Kind ActivityKind
CopyKind uint8
SrcKind uint8
DstKind uint8
Flags uint8
Bytes uint64
Start uint64
End uint64
DeviceId uint32
ContextId uint32
StreamId uint32
SrcDeviceId uint32
SrcContextId uint32
DstDeviceId uint32
DstContextId uint32
CorrelationId uint32
Reserved0 uintptr
GraphNodeId uint64
}
ActivityMemcpyPtoP2 represents the activity record for peer-to-peer memory copies.
This activity record represents a peer-to-peer memory copy (ActivityKindMemcpy2).
Deprecated: Deprecated in CUDA 11.1.
type ActivityMemcpyPtoP3
deprecated
type ActivityMemcpyPtoP3 struct {
Kind ActivityKind
CopyKind uint8
SrcKind uint8
DstKind uint8
Flags uint8
Bytes uint64
Start uint64
End uint64
DeviceId uint32
ContextId uint32
StreamId uint32
SrcDeviceId uint32
SrcContextId uint32
DstDeviceId uint32
DstContextId uint32
CorrelationId uint32
Reserved0 uintptr
GraphNodeId uint64
GraphId uint32
Padding uint32
}
ActivityMemcpyPtoP3 represents the activity record for peer-to-peer memory copies.
This activity record represents a peer-to-peer memory copy (ActivityKindMemcpy2).
Deprecated: Deprecated in CUDA 11.6.
type ActivityMemcpyPtoP4 ¶
type ActivityMemcpyPtoP4 struct {
Kind ActivityKind
CopyKind uint8
SrcKind uint8
DstKind uint8
Flags uint8
Bytes uint64
Start uint64
End uint64
DeviceId uint32
ContextId uint32
StreamId uint32
SrcDeviceId uint32
SrcContextId uint32
DstDeviceId uint32
DstContextId uint32
CorrelationId uint32
Reserved0 uintptr
GraphNodeId uint64
GraphId uint32
ChannelID uint32
ChannelType ChannelType
}
ActivityMemcpyPtoP4 represents the activity record for peer-to-peer memory copies.
This activity record represents a peer-to-peer memory copy (ActivityKindMemcpy2).
type ActivityMemory ¶
type ActivityMemory struct {
Kind ActivityKind
MemoryKind ActivityMemoryKind
Address uint64
Bytes uint64
Start uint64
End uint64
AllocPC uint64
FreePC uint64
ProcessId uint32
DeviceId uint32
ContextId uint32
Pad uint32
Name uintptr
}
ActivityMemory represents the activity record for memory.
This activity record represents a memory allocation and free operation (ActivityKindMemory). This activity record provides a single record for the memory allocation and memory release operations.
Note: It is recommended to move to the new activity record ActivityMemory4 enabled using the kind ActivityKindMemory2. ActivityMemory4 provides separate records for memory allocation and memory release operations. This allows to correlate the corresponding driver and runtime API activity record with the memory operation.
type ActivityMemory2 ¶
type ActivityMemory2 struct {
Kind ActivityKind
MemoryOperationType ActivityMemoryOperationType
MemoryKind ActivityMemoryKind
CorrelationId uint32
Address uint64
Bytes uint64
Timestamp uint64
PC uint64
ProcessId uint32
DeviceId uint32
ContextId uint32
StreamId uint32
Name uintptr
IsAsync uint32
Pad1 uint32
MemoryPoolConfig [4]uint64
}
ActivityMemory2 represents the activity record for memory.
This activity record represents a memory allocation and free operation (ActivityKindMemory2). This activity record provides separate records for memory allocation and memory release operations. This allows to correlate the corresponding driver and runtime API activity record with the memory operation.
Note: This activity record is an upgrade over ActivityMemory enabled using the kind ActivityKindMemory. ActivityMemory provides a single record for the memory allocation and memory release operations.
type ActivityMemory3 ¶
type ActivityMemory3 struct {
Kind ActivityKind
MemoryOperationType ActivityMemoryOperationType
MemoryKind ActivityMemoryKind
CorrelationId uint32
Address uint64
Bytes uint64
Timestamp uint64
PC uint64
ProcessId uint32
DeviceId uint32
ContextId uint32
StreamId uint32
Name uintptr
IsAsync uint32
Pad1 uint32
MemoryPoolConfig [5]uint64
}
ActivityMemory3 represents the activity record for memory.
This activity record represents a memory allocation and free operation (ActivityKindMemory2). This activity record provides separate records for memory allocation and memory release operations. This allows to correlate the corresponding driver and runtime API activity record with the memory operation.
Note: This activity record is an upgrade over ActivityMemory2 enabled using the kind ActivityKindMemory. ActivityMemory provides a single record for the memory allocation and memory release operations.
type ActivityMemory4 ¶
type ActivityMemory4 struct {
Kind ActivityKind
MemoryOperationType ActivityMemoryOperationType
MemoryKind ActivityMemoryKind
CorrelationId uint32
Address uint64
Bytes uint64
Timestamp uint64
PC uint64
ProcessId uint32
DeviceId uint32
ContextId uint32
StreamId uint32
Name uintptr
IsAsync uint32
Pad1 uint32
MemoryPoolConfig [5]uint64
Source uintptr
}
ActivityMemory4 represents the activity record for memory.
This activity record represents a memory allocation and free operation (ActivityKindMemory2). This activity record provides separate records for memory allocation and memory release operations. This allows to correlate the corresponding driver and runtime API activity record with the memory operation.
Note: This activity record is an upgrade over ActivityMemory enabled using the kind ActivityKindMemory. ActivityMemory provides a single record for the memory allocation and memory release operations.
type ActivityMemoryFieldIds ¶
type ActivityMemoryFieldIds int32
ActivityMemoryFieldIds represents enum identifiers for fields to trace memory allocation and free operation.
This activity record provides separate records for memory allocation and memory release operations. This allows to correlate the corresponding driver and runtime API activity record with the memory operation. These field IDs are used to reference specific fields when dynamically selecting or parsing activity records of ActivityKindMemory2.
const ( // MemoryFieldKind: [ActivityKind] kind; Kind of this activity record. Always [ActivityKindMemory2]. MemoryFieldKind ActivityMemoryFieldIds = 0 // MemoryFieldOperationType: [ActivityMemoryOperationType] memoryOperationType; The memory operation requested by the user. MemoryFieldOperationType ActivityMemoryFieldIds = 1 // MemoryFieldMemoryKind: [ActivityMemoryKind] memoryKind; The memory kind requested by the user. MemoryFieldMemoryKind ActivityMemoryFieldIds = 2 // MemoryFieldCorrelationId: uint64_t correlationId; Correlation ID of the memory operation. MemoryFieldCorrelationId ActivityMemoryFieldIds = 3 MemoryFieldAddress ActivityMemoryFieldIds = 4 // uint64_t address; Virtual address of the allocation. MemoryFieldBytes ActivityMemoryFieldIds = 5 // uint64_t bytes; Number of bytes of memory allocated. // MemoryFieldTimestamp: uint64_t timestamp; Start timestamp for the memory operation (in ns). MemoryFieldTimestamp ActivityMemoryFieldIds = 6 // MemoryFieldProcessId: uint32_t processId; ID of the process to which this record belongs. MemoryFieldProcessId ActivityMemoryFieldIds = 7 // MemoryFieldDeviceId: uint32_t deviceId; ID of the device where the memory operation is taking place. MemoryFieldDeviceId ActivityMemoryFieldIds = 8 MemoryFieldContextId ActivityMemoryFieldIds = 9 // uint32_t contextId; ID of the context. MemoryFieldStreamId ActivityMemoryFieldIds = 10 // uint32_t streamId; ID of the stream. // MemoryFieldIsAsync: uint32_t isAsync; Whether the memory operation happens through async memory APIs. MemoryFieldIsAsync ActivityMemoryFieldIds = 11 // MemoryFieldPoolType: [ActivityMemoryPoolType] memoryPoolConfig.memoryPoolType; Type of the memory pool. MemoryFieldPoolType ActivityMemoryFieldIds = 12 // MemoryFieldPoolAddress: uint64_t memoryPoolConfig.address; Base address of the memory pool. MemoryFieldPoolAddress ActivityMemoryFieldIds = 13 // MemoryFieldPoolReleaseThreshold: uint64_t memoryPoolConfig.releaseThreshold; Release threshold of the memory pool in bytes. MemoryFieldPoolReleaseThreshold ActivityMemoryFieldIds = 14 // MemoryFieldPoolSize: uint64_t memoryPoolConfig.pool.size; Size of memory pool in bytes. MemoryFieldPoolSize ActivityMemoryFieldIds = 15 // MemoryFieldPoolProcessId: uint64_t memoryPoolConfig.pool.processId; Process ID of the memory pools. MemoryFieldPoolProcessId ActivityMemoryFieldIds = 16 // MemoryFieldPoolUtilizedSize: uint64_t memoryPoolConfig.utilizedSize; Utilized size of the memory pool. MemoryFieldPoolUtilizedSize ActivityMemoryFieldIds = 17 // MemoryFieldSource: const char* source; Shared object or binary that the memory allocation request comes from. MemoryFieldSource ActivityMemoryFieldIds = 18 )
func (ActivityMemoryFieldIds) String ¶
func (e ActivityMemoryFieldIds) String() string
String returns the constant name, or a numeric representation for unknown values.
type ActivityMemoryKind ¶
type ActivityMemoryKind int32
ActivityMemoryKind represents the kinds of memory accessed by a memory operation/copy.
Each kind represents the type of the memory accessed by a memory operation/copy.
const ( ActivityMemoryKindUnknown ActivityMemoryKind = 0 // The memory kind is unknown. ActivityMemoryKindPageable ActivityMemoryKind = 1 // The memory is pageable. ActivityMemoryKindPinned ActivityMemoryKind = 2 // The memory is pinned. ActivityMemoryKindDevice ActivityMemoryKind = 3 // The memory is on the device. ActivityMemoryKindArray ActivityMemoryKind = 4 // The memory is an array. ActivityMemoryKindManaged ActivityMemoryKind = 5 // The memory is managed ActivityMemoryKindDeviceStatic ActivityMemoryKind = 6 // The memory is device static ActivityMemoryKindManagedStatic ActivityMemoryKind = 7 // The memory is managed static ActivityMemoryKindForceInt ActivityMemoryKind = 0x7fffffff )
func (ActivityMemoryKind) String ¶
func (e ActivityMemoryKind) String() string
String returns the constant name, or a numeric representation for unknown values.
type ActivityMemoryOperationType ¶
type ActivityMemoryOperationType int32
ActivityMemoryOperationType represents memory operation types.
Describes the type of memory operation, to be used with ActivityMemory4.
const ( ActivityMemoryOperationTypeInvalid ActivityMemoryOperationType = 0 // The operation is invalid. ActivityMemoryOperationTypeAllocation ActivityMemoryOperationType = 1 // Memory is allocated. ActivityMemoryOperationTypeRelease ActivityMemoryOperationType = 2 // Memory is released. ActivityMemoryOperationTypeForceInt ActivityMemoryOperationType = 0x7fffffff )
func (ActivityMemoryOperationType) String ¶
func (e ActivityMemoryOperationType) String() string
String returns the constant name, or a numeric representation for unknown values.
type ActivityMemoryPool ¶
type ActivityMemoryPool struct {
Kind ActivityKind
MemoryPoolOperationType ActivityMemoryPoolOperationType
MemoryPoolType ActivityMemoryPoolType
CorrelationId uint32
ProcessId uint32
DeviceId uint32
MinBytesToKeep uint
Address uint64
Size uint64
ReleaseThreshold uint64
Timestamp uint64
}
ActivityMemoryPool represents the activity record for memory pool.
This activity record represents a memory pool creation, destruction and trimming (ActivityKindMemoryPool). This activity record provides separate records for memory pool creation, destruction and trimming operations. This allows to correlate the corresponding driver and runtime API activity record with the memory pool operation.
type ActivityMemoryPool2 ¶
type ActivityMemoryPool2 struct {
Kind ActivityKind
MemoryPoolOperationType ActivityMemoryPoolOperationType
MemoryPoolType ActivityMemoryPoolType
CorrelationId uint32
ProcessId uint32
DeviceId uint32
MinBytesToKeep uint
Address uint64
Size uint64
ReleaseThreshold uint64
Timestamp uint64
UtilizedSize uint64
}
ActivityMemoryPool2 represents the activity record for memory pool.
This activity record represents a memory pool creation, destruction and trimming (ActivityKindMemoryPool). This activity record provides separate records for memory pool creation, destruction and trimming operations. This allows to correlate the corresponding driver and runtime API activity record with the memory pool operation.
type ActivityMemoryPool3 ¶
type ActivityMemoryPool3 struct {
Kind ActivityKind
MemoryPoolOperationType ActivityMemoryPoolOperationType
MemoryPoolType ActivityMemoryPoolType
CorrelationId uint32
ProcessId uint32
DeviceId uint32
MinBytesToKeep uint
Address uint64
Size uint64
ReleaseThreshold uint64
Timestamp uint64
UtilizedSize uint64
IsManagedPool uint8
Pad2 [7]uint8
}
ActivityMemoryPool3 represents the activity record for memory pool.
This activity record represents a memory pool creation, destruction and trimming (ActivityKindMemoryPool). This activity record provides separate records for memory pool creation, destruction and trimming operations. This allows to correlate the corresponding driver and runtime API activity record with the memory pool operation.
type ActivityMemoryPoolFieldIds ¶
type ActivityMemoryPoolFieldIds int32
ActivityMemoryPoolFieldIds represents enum identifiers for fields to trace CUDA memory pool creation, destruction and trimming.
This activity record provides separate records for memory pool creation, destruction and trimming operations. This allows to correlate the corresponding driver and runtime API activity record with the memory pool operation. These field IDs are used to reference specific fields when dynamically selecting or parsing activity records of ActivityKindMemoryPool.
const ( // MemoryPoolFieldKind: [ActivityKind] kind; Kind of this activity record. Always [ActivityKindMemoryPool]. MemoryPoolFieldKind ActivityMemoryPoolFieldIds = 0 // MemoryPoolFieldOperationType: [ActivityMemoryPoolOperationType] memoryPoolOperationType; The memory operation requested by the user. MemoryPoolFieldOperationType ActivityMemoryPoolFieldIds = 1 // MemoryPoolFieldPoolType: [ActivityMemoryPoolType] memoryPoolType; The type of the memory pool. MemoryPoolFieldPoolType ActivityMemoryPoolFieldIds = 2 // MemoryPoolFieldCorrelationId: uint64_t correlationId; Correlation ID assigned to this memory pool operation. Matches the correlation ID in the CUDA driver/runtime API activity record that launched it. MemoryPoolFieldCorrelationId ActivityMemoryPoolFieldIds = 3 // MemoryPoolFieldProcessId: uint32_t processId; ID of the process to which this record belongs. MemoryPoolFieldProcessId ActivityMemoryPoolFieldIds = 4 // MemoryPoolFieldDeviceId: uint32_t deviceId; ID of the device where the memory pool is created. MemoryPoolFieldDeviceId ActivityMemoryPoolFieldIds = 5 // MemoryPoolFieldMinBytesToKeep: size_t minBytesToKeep; Minimum bytes to keep of the memory pool. MemoryPoolFieldMinBytesToKeep ActivityMemoryPoolFieldIds = 6 MemoryPoolFieldAddress ActivityMemoryPoolFieldIds = 7 // uint64_t address; Virtual address of the allocation. MemoryPoolFieldSize ActivityMemoryPoolFieldIds = 8 // uint64_t size; Size of the memory pool operation in bytes. // MemoryPoolFieldReleaseThreshold: uint64_t releaseThreshold; Release threshold of the memory pool. MemoryPoolFieldReleaseThreshold ActivityMemoryPoolFieldIds = 9 // MemoryPoolFieldTimestamp: uint64_t timestamp; Start timestamp for the memory operation (in ns). MemoryPoolFieldTimestamp ActivityMemoryPoolFieldIds = 10 MemoryPoolFieldUtilizedSize ActivityMemoryPoolFieldIds = 11 // uint64_t utilizedSize; Utilized size of the memory pool. // MemoryPoolFieldIsManagedPool: uint8_t isManagedPool; Whether the pool is of managed memory allocation or pinned memory allocation. MemoryPoolFieldIsManagedPool ActivityMemoryPoolFieldIds = 12 )
func (ActivityMemoryPoolFieldIds) String ¶
func (e ActivityMemoryPoolFieldIds) String() string
String returns the constant name, or a numeric representation for unknown values.
type ActivityMemoryPoolOperationType ¶
type ActivityMemoryPoolOperationType int32
ActivityMemoryPoolOperationType represents memory pool operation types.
Describes the type of memory pool operation, to be used with ActivityMemoryPool2.
const ( ActivityMemoryPoolOperationTypeInvalid ActivityMemoryPoolOperationType = 0 // The operation is invalid. ActivityMemoryPoolOperationTypeCreated ActivityMemoryPoolOperationType = 1 // Memory pool is created. ActivityMemoryPoolOperationTypeDestroyed ActivityMemoryPoolOperationType = 2 // Memory pool is destroyed. ActivityMemoryPoolOperationTypeTrimmed ActivityMemoryPoolOperationType = 3 // Memory pool is trimmed. ActivityMemoryPoolOperationTypeForceInt ActivityMemoryPoolOperationType = 0x7fffffff )
func (ActivityMemoryPoolOperationType) String ¶
func (e ActivityMemoryPoolOperationType) String() string
String returns the constant name, or a numeric representation for unknown values.
type ActivityMemoryPoolType ¶
type ActivityMemoryPoolType int32
ActivityMemoryPoolType represents memory pool types.
Describes the type of memory pool, to be used with ActivityMemory4.
const ( ActivityMemoryPoolTypeInvalid ActivityMemoryPoolType = 0 // The operation is invalid. ActivityMemoryPoolTypeLocal ActivityMemoryPoolType = 1 // Memory pool is local to the process. ActivityMemoryPoolTypeImported ActivityMemoryPoolType = 2 // Memory pool is imported by the process. ActivityMemoryPoolTypeForceInt ActivityMemoryPoolType = 0x7fffffff )
func (ActivityMemoryPoolType) String ¶
func (e ActivityMemoryPoolType) String() string
String returns the constant name, or a numeric representation for unknown values.
type ActivityMemset
deprecated
type ActivityMemset struct {
Kind ActivityKind
Value uint32
Bytes uint64
Start uint64
End uint64
DeviceId uint32
ContextId uint32
StreamId uint32
CorrelationId uint32
Flags uint16
MemoryKind uint16
Pad uint32
Reserved0 uintptr
}
ActivityMemset represents the activity record for memset.
This activity record represents a memory set operation (ActivityKindMemset).
Deprecated: Deprecated by NVIDIA.
type ActivityMemset2
deprecated
type ActivityMemset2 struct {
Kind ActivityKind
Value uint32
Bytes uint64
Start uint64
End uint64
DeviceId uint32
ContextId uint32
StreamId uint32
CorrelationId uint32
Flags uint16
MemoryKind uint16
Pad uint32
Reserved0 uintptr
GraphNodeId uint64
}
ActivityMemset2 represents the activity record for memset.
This activity record represents a memory set operation (ActivityKindMemset).
Deprecated: Deprecated in CUDA 11.1.
type ActivityMemset3
deprecated
type ActivityMemset3 struct {
Kind ActivityKind
Value uint32
Bytes uint64
Start uint64
End uint64
DeviceId uint32
ContextId uint32
StreamId uint32
CorrelationId uint32
Flags uint16
MemoryKind uint16
Pad uint32
Reserved0 uintptr
GraphNodeId uint64
GraphId uint32
Padding uint32
}
ActivityMemset3 represents the activity record for memset.
This activity record represents a memory set operation (ActivityKindMemset).
Deprecated: Deprecated in CUDA 11.6.
type ActivityMemset4
deprecated
type ActivityMemset4 struct {
Kind ActivityKind
Value uint32
Bytes uint64
Start uint64
End uint64
DeviceId uint32
ContextId uint32
StreamId uint32
CorrelationId uint32
Flags uint16
MemoryKind uint16
Pad uint32
Reserved0 uintptr
GraphNodeId uint64
GraphId uint32
ChannelID uint32
ChannelType ChannelType
IsDeviceLaunched uint8
Pad2 [3]uint8
}
ActivityMemset4 represents the activity record for memset (version 4).
This activity record represents a memory set operation (ActivityKindMemset). ActivityMemset5
Deprecated: Deprecated by NVIDIA.
type ActivityMemset5 ¶
type ActivityMemset5 struct {
Kind ActivityKind
Value uint32
Bytes uint64
Start uint64
End uint64
DeviceId uint32
ContextId uint32
StreamId uint32
CorrelationId uint32
Flags uint16
MemoryKind uint16
Pad uint32
Reserved0 uintptr
GraphNodeId uint64
GraphId uint32
ChannelID uint32
ChannelType ChannelType
IsDeviceLaunched uint8
Pad2 [3]uint8
SourceGraphId uint32
Pad3 uint32
SourceGraphNodeId uint64
}
ActivityMemset5 represents the activity record for memset (version 5).
This activity record represents a memory set operation (ActivityKindMemset).
type ActivityMemsetFieldIds ¶
type ActivityMemsetFieldIds int32
ActivityMemsetFieldIds represents enum identifiers for fields to trace memset operations.
These field IDs are used to reference specific fields when dynamically selecting or parsing activity records of ActivityKindMemset.
const ( // MemsetFieldKind: [ActivityKind] kind; Kind of this activity record. Always [ActivityKindMemset]. MemsetFieldKind ActivityMemsetFieldIds = 0 MemsetFieldValue ActivityMemsetFieldIds = 1 // uint32_t value; Value being written to memory by the memset. MemsetFieldBytes ActivityMemsetFieldIds = 2 // uint64_t bytes; Number of bytes being set. // MemsetFieldStart: uint64_t start; Start timestamp for the memset operation (in nanoseconds). A value of 0 indicates timestamp couldn’t be collected. MemsetFieldStart ActivityMemsetFieldIds = 3 // MemsetFieldEnd: uint64_t end; End timestamp for the memset operation (in nanoseconds). A value of 0 indicates timestamp couldn’t be collected. MemsetFieldEnd ActivityMemsetFieldIds = 4 MemsetFieldDeviceId ActivityMemsetFieldIds = 5 // uint32_t deviceId; Device on which the memset is occurring. // MemsetFieldContextId: uint32_t contextId; CUDA context where the memset is occurring. MemsetFieldContextId ActivityMemsetFieldIds = 6 MemsetFieldStreamId ActivityMemsetFieldIds = 7 // uint32_t streamId; Stream where the memset is occurring. // MemsetFieldCorrelationId: uint64_t correlationId; Correlation ID assigned to this memset operation. Matches the correlation ID in the CUDA driver/runtime API activity record that launched it. MemsetFieldCorrelationId ActivityMemsetFieldIds = 8 // MemsetFieldFlags: uint16_t flags; Flags associated with the memset. See also [ActivityFlag] MemsetFieldFlags ActivityMemsetFieldIds = 9 // MemsetFieldMemoryKind: uint16_t memoryKind; Kind of memory being set. See also [ActivityMemoryKind] MemsetFieldMemoryKind ActivityMemsetFieldIds = 10 // MemsetFieldGraphNodeId: uint64_t graphNodeId; CUDA Graph node ID that executed this memset. MemsetFieldGraphNodeId ActivityMemsetFieldIds = 11 MemsetFieldGraphId ActivityMemsetFieldIds = 12 // uint32_t graphId; CUDA Graph ID that executed this memset. MemsetFieldChannelId ActivityMemsetFieldIds = 13 // uint32_t channelID; Hardware channel ID used by the memset. // MemsetFieldChannelType: [ChannelType] channelType; Type of hardware channel used by the memset. MemsetFieldChannelType ActivityMemsetFieldIds = 14 // MemsetFieldIsDeviceLaunched: uint8_t isDeviceLaunched; This field is set to 1 if the kernel is part of a device launched graph. MemsetFieldIsDeviceLaunched ActivityMemsetFieldIds = 15 // MemsetFieldSourceGraphId: uint32_t sourceGraphId; The unique graph ID of the node from which the memset node was instantiated or last updated. This field will be 0 if the memset is not launched through graph launch APIs. MemsetFieldSourceGraphId ActivityMemsetFieldIds = 16 // MemsetFieldSourceGraphNodeId: uint64_t sourceGraphNodeId; The unique graph node ID of the node from which the memset node was instantiated or last updated. This field will be 0 if the memset is not launched through graph launch APIs. MemsetFieldSourceGraphNodeId ActivityMemsetFieldIds = 17 )
func (ActivityMemsetFieldIds) String ¶
func (e ActivityMemsetFieldIds) String() string
String returns the constant name, or a numeric representation for unknown values.
type ActivityMetric ¶
type ActivityMetric struct {
Kind ActivityKind
Id uint32
Value [1]uint64
CorrelationId uint32
Flags uint8
Pad [3]uint8
}
ActivityMetric represents the activity record for a CUPTI metric.
This activity record represents the collection of a CUPTI metric value (ActivityKindMetric). This activity record kind is not produced by the activity API but is included for completeness and ease-of-use. Profile frameworks built on top of CUPTI that collect metric data may choose to use this type to store the collected metric data.
type ActivityMetricInstance ¶
type ActivityMetricInstance struct {
Kind ActivityKind
Id uint32
Value [1]uint64
Instance uint32
CorrelationId uint32
Flags uint8
Pad [7]uint8
}
ActivityMetricInstance represents the activity record for a CUPTI metric with instance information.
This activity record represents a CUPTI metric value for a specific metric domain instance (ActivityKindMetricInstance). This activity record kind is not produced by the activity API but is included for completeness and ease-of-use. Profile frameworks built on top of CUPTI that collect metric data may choose to use this type to store the collected metric data. This activity record should be used when metric domain instance information needs to be associated with the metric.
type ActivityModule ¶
type ActivityModule struct {
Kind ActivityKind
ContextId uint32
Id uint32
CubinSize uint32
Cubin uintptr
}
ActivityModule represents the activity record for a CUDA module.
This activity record represents a CUDA module (ActivityKindModule). This activity record kind is not produced by the activity API but is included for completeness and ease-of-use. Profile frameworks built on top of CUPTI that collect module data from the module callback may choose to use this type to store the collected module data.
type ActivityName ¶
type ActivityName struct {
Kind ActivityKind
ObjectKind ActivityObjectKind
ObjectId ActivityObjectKindId
Pad uint32
Name uintptr
}
ActivityName represents the activity record providing a name.
This activity record provides a name for a device, context, thread, etc. and other resource naming done via NVTX APIs (ActivityKindName).
type ActivityNameFieldIds ¶
type ActivityNameFieldIds int32
ActivityNameFieldIds represents enum identifiers for fields in ActivityName.
Each enum value corresponds to a field in ActivityName and describes the data type and purpose of that field.
const ( // NameFieldKind: [ActivityKind] kind; Kind of activity record: [ActivityKindName]. NameFieldKind ActivityNameFieldIds = 0 // NameFieldObjectKind: [ActivityObjectKind] objectKind; Kind of activity object being named. NameFieldObjectKind ActivityNameFieldIds = 1 // NameFieldObjectId: [ActivityObjectKindId] objectId; Identifier for the activity object being named. NameFieldObjectId ActivityNameFieldIds = 2 NameFieldName ActivityNameFieldIds = 3 // const char *name; The name. )
func (ActivityNameFieldIds) String ¶
func (e ActivityNameFieldIds) String() string
String returns the constant name, or a numeric representation for unknown values.
type ActivityNvLink
deprecated
type ActivityNvLink struct {
Kind ActivityKind
NvlinkVersion uint32
TypeDev0 DevType
TypeDev1 DevType
IdDev0 [4]uint32
IdDev1 [4]uint32
Flag uint32
PhysicalNvLinkCount uint32
PortDev0 [4]int8
PortDev1 [4]int8
Bandwidth uint64
}
ActivityNvLink represents NVLink information.
This structure gives capabilities of each logical NVLink connection between two devices, gpu<->gpu or gpu<->CPU which can be used to understand the topology. NVLink information are now reported using the ActivityNvLink5 activity record.
Deprecated: Deprecated in CUDA 9.0. Use ActivityNvLink5 instead.
type ActivityNvLink2
deprecated
type ActivityNvLink2 struct {
Kind ActivityKind
NvlinkVersion uint32
TypeDev0 DevType
TypeDev1 DevType
IdDev0 [4]uint32
IdDev1 [4]uint32
Flag uint32
PhysicalNvLinkCount uint32
PortDev0 [16]int8
PortDev1 [16]int8
Bandwidth uint64
}
ActivityNvLink2 represents NVLink information.
This structure gives capabilities of each logical NVLink connection between two devices, gpu<->gpu or gpu<->CPU which can be used to understand the topology. NvLink information is now reported using the ActivityNvLink5 activity record.
Its layout differs across the releases this package supports, and this type has the newest. No supported release produces it.
Deprecated: Deprecated in CUDA 10.0. Use ActivityNvLink5 instead.
type ActivityNvLink3 ¶
type ActivityNvLink3 struct {
Kind ActivityKind
NvlinkVersion uint32
TypeDev0 DevType
TypeDev1 DevType
IdDev0 [4]uint32
IdDev1 [4]uint32
Flag uint32
PhysicalNvLinkCount uint32
PortDev0 [16]int8
PortDev1 [16]int8
Bandwidth uint64
NvswitchConnected uint8
Pad [7]uint8
}
ActivityNvLink3 represents NVLink information.
This structure gives capabilities of each logical NVLink connection between two devices, gpu<->gpu or gpu<->CPU which can be used to understand the topology. NvLink information is now reported using the ActivityNvLink5 activity record.
Its layout differs across the releases this package supports, and this type has the newest. No supported release produces it.
type ActivityNvLink4
deprecated
type ActivityNvLink4 struct {
Kind ActivityKind
NvlinkVersion uint32
TypeDev0 DevType
TypeDev1 DevType
IdDev0 [4]uint32
IdDev1 [4]uint32
Flag uint32
PhysicalNvLinkCount uint32
PortDev0 [32]int8
PortDev1 [32]int8
Bandwidth uint64
NvswitchConnected uint8
Pad [7]uint8
}
ActivityNvLink4 represents NVLink information.
This structure gives capabilities of each logical NVLink connection between two devices, gpu<->gpu or gpu<->CPU which can be used to understand the topology. NvLink information is now reported using the ActivityNvLink5 activity record.
Deprecated: Deprecated in CUDA 13.2. Use ActivityNvLink5 instead.
type ActivityNvLink5 ¶
type ActivityNvLink5 struct {
Kind ActivityKind
NvlinkVersion uint32
TypeDev0 DevType
TypeDev1 DevType
IdDev0 [4]uint32
IdDev1 [4]uint32
Flag uint32
PhysicalNvLinkCount uint32
PortDev0 uintptr
PortDev1 uintptr
Bandwidth uint64
NvswitchConnected uint8
Pad [7]uint8
}
ActivityNvLink5 represents NVLink information.
This structure gives capabilities of each logical NVLink connection between two devices, gpu<->gpu or gpu<->CPU which can be used to understand the topology.
type ActivityNvLinkFieldIds ¶
type ActivityNvLinkFieldIds int32
ActivityNvLinkFieldIds represents enum identifiers for fields in ActivityNvLink5.
Each enum value corresponds to a field in ActivityNvLink5 and describes the data type and purpose of that field.
const ( // NvlinkFieldKind: [ActivityKind] kind; Kind of activity record: [ActivityKindNvlink]. NvlinkFieldKind ActivityNvLinkFieldIds = 0 NvlinkFieldNvlinkVersion ActivityNvLinkFieldIds = 1 // uint32_t nvlinkVersion; NvLink version. NvlinkFieldTypeDEV0 ActivityNvLinkFieldIds = 2 // [DevType] typeDev0; Type of device 0. NvlinkFieldTypeDEV1 ActivityNvLinkFieldIds = 3 // [DevType] typeDev1; Type of device 1. // NvlinkFieldIdDEV0: union idDev0; If typeDev0 is [DevTypeGpu], UUID for device 0. If typeDev0 is [DevTypeNpu], [ActivityNvLinkNpu] for NPU. NvlinkFieldIdDEV0 ActivityNvLinkFieldIds = 4 // NvlinkFieldIdDEV1: union idDev1; If typeDev1 is [DevTypeGpu], UUID for device 1. If typeDev1 is [DevTypeNpu], [ActivityNvLinkNpu] for NPU. NvlinkFieldIdDEV1 ActivityNvLinkFieldIds = 5 // NvlinkFieldFlag: uint32_t flag; Flag gives capabilities of the link ([LinkFlag]). NvlinkFieldFlag ActivityNvLinkFieldIds = 6 // NvlinkFieldPhysicalNvlinkCount: uint32_t physicalNvLinkCount; Number of physical NVLinks present between two devices. NvlinkFieldPhysicalNvlinkCount ActivityNvLinkFieldIds = 7 // NvlinkFieldPortDEV0: uint32_t* portDev0; Port numbers for NVLinks connected to device 0. NvlinkFieldPortDEV0 ActivityNvLinkFieldIds = 8 // NvlinkFieldPortDEV1: uint32_t* portDev1; Port numbers for NVLinks connected to device 1. NvlinkFieldPortDEV1 ActivityNvLinkFieldIds = 9 NvlinkFieldBandwidth ActivityNvLinkFieldIds = 10 // uint64_t bandwidth; Bandwidth of NVLink in kbytes/sec. // NvlinkFieldNvswitchConnected: uint8_t nvswitchConnected; NVSwitch is connected as an intermediate node. NvlinkFieldNvswitchConnected ActivityNvLinkFieldIds = 11 )
func (ActivityNvLinkFieldIds) String ¶
func (e ActivityNvLinkFieldIds) String() string
String returns the constant name, or a numeric representation for unknown values.
type ActivityNvLinkNpu ¶
ActivityNvLinkNpu represents NPU identifier for NVLink connections.
This structure identifies an NPU by index and domain ID.
type ActivityObjectKind ¶
type ActivityObjectKind int32
ActivityObjectKind represents the kinds of activity objects.
See also ActivityObjectKindId
const ( ActivityObjectUnknown ActivityObjectKind = 0 // The object kind is not known. ActivityObjectProcess ActivityObjectKind = 1 // A process. ActivityObjectThread ActivityObjectKind = 2 // A thread. ActivityObjectDevice ActivityObjectKind = 3 // A device. ActivityObjectContext ActivityObjectKind = 4 // A context. ActivityObjectStream ActivityObjectKind = 5 // A stream. ActivityObjectForceInt ActivityObjectKind = 0x7fffffff )
func (ActivityObjectKind) String ¶
func (e ActivityObjectKind) String() string
String returns the constant name, or a numeric representation for unknown values.
type ActivityObjectKindId ¶
type ActivityObjectKindId struct {
// Data stores the raw bytes of the underlying C union.
Data [3]uint32
}
ActivityObjectKindId represents identifiers for object kinds as specified by ActivityObjectKind.
func (*ActivityObjectKindId) Dcs ¶
func (a *ActivityObjectKindId) Dcs() *ActivityObjectKindIdDcs
Dcs returns a pointer to the dcs member of CUpti_ActivityObjectKindId, which shares its storage with every other member of the union.
func (*ActivityObjectKindId) Pt ¶
func (a *ActivityObjectKindId) Pt() *ActivityObjectKindIdPt
Pt returns a pointer to the pt member of CUpti_ActivityObjectKindId, which shares its storage with every other member of the union.
type ActivityObjectKindIdDcs ¶
ActivityObjectKindIdDcs is the type of the dcs member of ActivityObjectKindId.
type ActivityObjectKindIdPt ¶
ActivityObjectKindIdPt is the type of the pt member of ActivityObjectKindId.
type ActivityOpenAcc ¶
type ActivityOpenAcc struct {
Kind ActivityKind
EventKind OpenAccEventKind
ParentConstruct OpenAccConstructKind
Version uint32
Implicit uint32
DeviceType uint32
DeviceNumber uint32
ThreadId uint32
Async uint64
AsyncMap uint64
LineNo uint32
EndLineNo uint32
FuncLineNo uint32
FuncEndLineNo uint32
Start uint64
End uint64
CuDeviceId uint32
CuContextId uint32
CuStreamId uint32
CuProcessId uint32
CuThreadId uint32
ExternalId uint32
SrcFile uintptr
FuncName uintptr
}
ActivityOpenAcc represents the base activity record for OpenAcc records.
The OpenACC activity API part uses a ActivityOpenAcc as a generic representation for any OpenACC activity. The 'kind' field is used to determine the specific activity kind, and from that the ActivityOpenAcc object can be cast to the specific OpenACC activity record type appropriate for that kind. Note that all OpenACC activity record types are padded and aligned to ensure that each member of the record is naturally aligned. ActivityKind
type ActivityOpenAccData ¶
type ActivityOpenAccData struct {
Kind ActivityKind
EventKind OpenAccEventKind
ParentConstruct OpenAccConstructKind
Version uint32
Implicit uint32
DeviceType uint32
DeviceNumber uint32
ThreadId uint32
Async uint64
AsyncMap uint64
LineNo uint32
EndLineNo uint32
FuncLineNo uint32
FuncEndLineNo uint32
Start uint64
End uint64
CuDeviceId uint32
CuContextId uint32
CuStreamId uint32
CuProcessId uint32
CuThreadId uint32
ExternalId uint32
SrcFile uintptr
FuncName uintptr
Bytes uint64
HostPtr uint64
DevicePtr uint64
VarName uintptr
}
ActivityOpenAccData represents the activity record for OpenACC data.
type ActivityOpenAccDataFieldIds ¶
type ActivityOpenAccDataFieldIds int32
ActivityOpenAccDataFieldIds represents enum identifiers for fields in ActivityOpenAccData.
Each enum value corresponds to a field in ActivityOpenAccData and documents the exact meaning of that field.
const ( // OpenaccDataFieldKind: [ActivityKind] kind; The activity record kind. Must be [ActivityKindOpenaccData]. OpenaccDataFieldKind ActivityOpenAccDataFieldIds = 0 OpenaccDataFieldEventKind ActivityOpenAccDataFieldIds = 1 // [OpenAccEventKind] eventKind; CUPTI OpenACC event kind. // OpenaccDataFieldParentConstruct: [OpenAccConstructKind] parentConstruct; Parent OpenACC construct kind. For PGI OpenACC runtime < 16.1, this is always [OpenaccConstructKindUnknown]. OpenaccDataFieldParentConstruct ActivityOpenAccDataFieldIds = 2 OpenaccDataFieldVersion ActivityOpenAccDataFieldIds = 3 // uint32_t version; Version number. // OpenaccDataFieldImplicit: uint32_t implicit; 1 if this is an implicit event (e.g. implicit wait), 0 otherwise. OpenaccDataFieldImplicit ActivityOpenAccDataFieldIds = 4 OpenaccDataFieldDeviceType ActivityOpenAccDataFieldIds = 5 // uint32_t deviceType; OpenACC device type. OpenaccDataFieldDeviceNumber ActivityOpenAccDataFieldIds = 6 // uint32_t deviceNumber; OpenACC device number. OpenaccDataFieldThreadId ActivityOpenAccDataFieldIds = 7 // uint32_t threadId; Thread ID. // OpenaccDataFieldAsync: uint64_t async; Value of the async() clause of the corresponding directive. OpenaccDataFieldAsync ActivityOpenAccDataFieldIds = 8 OpenaccDataFieldAsyncMap ActivityOpenAccDataFieldIds = 9 // uint64_t asyncMap; Internal asynchronous queue number used. // OpenaccDataFieldLineNo: uint32_t lineNo; Line number of the directive or construct start. A non-positive value indicates unknown. OpenaccDataFieldLineNo ActivityOpenAccDataFieldIds = 10 // OpenaccDataFieldEndLineNo: uint32_t endLineNo; Line number of the end of the OpenACC construct. A non-positive value indicates unknown. OpenaccDataFieldEndLineNo ActivityOpenAccDataFieldIds = 11 // OpenaccDataFieldFuncLineNo: uint32_t funcLineNo; First line number of the function in which the event occurred. A non-positive value indicates unknown. OpenaccDataFieldFuncLineNo ActivityOpenAccDataFieldIds = 12 // OpenaccDataFieldFuncEndLineNo: uint32_t funcEndLineNo; Last line number of the function in which the event occurred. A non-positive value indicates unknown. OpenaccDataFieldFuncEndLineNo ActivityOpenAccDataFieldIds = 13 OpenaccDataFieldStart ActivityOpenAccDataFieldIds = 14 // uint64_t start; CUPTI start timestamp (in ns). OpenaccDataFieldEnd ActivityOpenAccDataFieldIds = 15 // uint64_t end; CUPTI end timestamp (in ns). // OpenaccDataFieldCuDeviceId: uint32_t cuDeviceId; CUDA device ID. Valid only if deviceType is acc_device_nvidia. OpenaccDataFieldCuDeviceId ActivityOpenAccDataFieldIds = 16 // OpenaccDataFieldCuContextId: uint32_t cuContextId; CUDA context ID. Valid only if deviceType is acc_device_nvidia. OpenaccDataFieldCuContextId ActivityOpenAccDataFieldIds = 17 // OpenaccDataFieldCuStreamId: uint32_t cuStreamId; CUDA stream ID. Valid only if deviceType is acc_device_nvidia. OpenaccDataFieldCuStreamId ActivityOpenAccDataFieldIds = 18 // OpenaccDataFieldCuProcessId: uint32_t cuProcessId; Process ID where the OpenACC activity is executing. OpenaccDataFieldCuProcessId ActivityOpenAccDataFieldIds = 19 // OpenaccDataFieldCuThreadId: uint64_t cuThreadId; Thread ID where the OpenACC activity is executing. OpenaccDataFieldCuThreadId ActivityOpenAccDataFieldIds = 20 // OpenaccDataFieldExternalId: uint32_t externalId; OpenACC correlation ID. Matches the externalId from the corresponding [ExternalCorrelationKindOpenacc] record. OpenaccDataFieldExternalId ActivityOpenAccDataFieldIds = 21 // OpenaccDataFieldSrcFile: const char* srcFile; Pointer to a null-terminated string containing the source file name or path, if known. OpenaccDataFieldSrcFile ActivityOpenAccDataFieldIds = 22 // OpenaccDataFieldFuncName: const char* funcName; Pointer to a null-terminated string containing the function name. OpenaccDataFieldFuncName ActivityOpenAccDataFieldIds = 23 OpenaccDataFieldBytes ActivityOpenAccDataFieldIds = 24 // uint64_t bytes; Number of bytes involved in the operation. OpenaccDataFieldHostPtr ActivityOpenAccDataFieldIds = 25 // uint64_t hostPtr; Host pointer, if available. OpenaccDataFieldDevicePtr ActivityOpenAccDataFieldIds = 26 // uint64_t devicePtr; Device pointer, if available. // OpenaccDataFieldVarName: const char* varName; Pointer to a null-terminated string containing the variable name for which this event is triggered. OpenaccDataFieldVarName ActivityOpenAccDataFieldIds = 27 )
func (ActivityOpenAccDataFieldIds) String ¶
func (e ActivityOpenAccDataFieldIds) String() string
String returns the constant name, or a numeric representation for unknown values.
type ActivityOpenAccLaunch ¶
type ActivityOpenAccLaunch struct {
Kind ActivityKind
EventKind OpenAccEventKind
ParentConstruct OpenAccConstructKind
Version uint32
Implicit uint32
DeviceType uint32
DeviceNumber uint32
ThreadId uint32
Async uint64
AsyncMap uint64
LineNo uint32
EndLineNo uint32
FuncLineNo uint32
FuncEndLineNo uint32
Start uint64
End uint64
CuDeviceId uint32
CuContextId uint32
CuStreamId uint32
CuProcessId uint32
CuThreadId uint32
ExternalId uint32
SrcFile uintptr
FuncName uintptr
NumGangs uint64
NumWorkers uint64
VectorLength uint64
KernelName uintptr
}
ActivityOpenAccLaunch represents the activity record for OpenACC launch.
type ActivityOpenAccLaunchFieldIds ¶
type ActivityOpenAccLaunchFieldIds int32
ActivityOpenAccLaunchFieldIds represents enum identifiers for fields in ActivityOpenAccLaunch.
Each enum value corresponds to a field in ActivityOpenAccLaunch and documents the exact meaning of that field.
const ( // OpenaccLaunchFieldKind: [ActivityKind] kind; The activity record kind, must be [ActivityKindOpenaccLaunch]. OpenaccLaunchFieldKind ActivityOpenAccLaunchFieldIds = 0 OpenaccLaunchFieldEventKind ActivityOpenAccLaunchFieldIds = 1 // [OpenAccEventKind] eventKind; CUPTI OpenACC event kind. // OpenaccLaunchFieldParentConstruct: [OpenAccConstructKind] parentConstruct; CUPTI OpenACC parent construct kind. OpenaccLaunchFieldParentConstruct ActivityOpenAccLaunchFieldIds = 2 OpenaccLaunchFieldVersion ActivityOpenAccLaunchFieldIds = 3 // uint32_t version; Version number. OpenaccLaunchFieldImplicit ActivityOpenAccLaunchFieldIds = 4 // uint32_t implicit; 1 for implicit event, 0 otherwise. OpenaccLaunchFieldDeviceType ActivityOpenAccLaunchFieldIds = 5 // uint32_t deviceType; Device type. OpenaccLaunchFieldDeviceNumber ActivityOpenAccLaunchFieldIds = 6 // uint32_t deviceNumber; Device number. OpenaccLaunchFieldThreadId ActivityOpenAccLaunchFieldIds = 7 // uint32_t threadId; Thread identifier. // OpenaccLaunchFieldAsync: uint64_t async; Value of async() clause of the corresponding directive. OpenaccLaunchFieldAsync ActivityOpenAccLaunchFieldIds = 8 OpenaccLaunchFieldAsyncMap ActivityOpenAccLaunchFieldIds = 9 // uint64_t asyncMap; Internal asynchronous queue number used. OpenaccLaunchFieldLineNo ActivityOpenAccLaunchFieldIds = 10 // uint32_t lineNo; Line number of the directive or construct. OpenaccLaunchFieldEndLineNo ActivityOpenAccLaunchFieldIds = 11 // uint32_t endLineNo; Line number of the end of the construct. OpenaccLaunchFieldFuncLineNo ActivityOpenAccLaunchFieldIds = 12 // uint32_t funcLineNo; Starting line number of the function. OpenaccLaunchFieldFuncEndLineNo ActivityOpenAccLaunchFieldIds = 13 // uint32_t funcEndLineNo; Ending line number of the function. OpenaccLaunchFieldStart ActivityOpenAccLaunchFieldIds = 14 // uint64_t start; CUPTI start timestamp. OpenaccLaunchFieldEnd ActivityOpenAccLaunchFieldIds = 15 // uint64_t end; CUPTI end timestamp. OpenaccLaunchFieldCuDeviceId ActivityOpenAccLaunchFieldIds = 16 // uint32_t cuDeviceId; CUDA device id. OpenaccLaunchFieldCuContextId ActivityOpenAccLaunchFieldIds = 17 // uint32_t cuContextId; CUDA context id. OpenaccLaunchFieldCuStreamId ActivityOpenAccLaunchFieldIds = 18 // uint32_t cuStreamId; CUDA stream id. // OpenaccLaunchFieldCuProcessId: uint32_t cuProcessId; Process id where the activity is executing. OpenaccLaunchFieldCuProcessId ActivityOpenAccLaunchFieldIds = 19 // OpenaccLaunchFieldCuThreadId: uint64_t cuThreadId; Thread id where the activity is executing. OpenaccLaunchFieldCuThreadId ActivityOpenAccLaunchFieldIds = 20 OpenaccLaunchFieldExternalId ActivityOpenAccLaunchFieldIds = 21 // uint32_t externalId; OpenACC correlation id. // OpenaccLaunchFieldSrcFile: const char *srcFile; Pointer to null-terminated string containing source file name or path. OpenaccLaunchFieldSrcFile ActivityOpenAccLaunchFieldIds = 22 // OpenaccLaunchFieldFuncName: const char *funcName; Pointer to null-terminated string containing function name. OpenaccLaunchFieldFuncName ActivityOpenAccLaunchFieldIds = 23 // OpenaccLaunchFieldNumGangs: uint64_t numGangs; Number of gangs created for this kernel launch. OpenaccLaunchFieldNumGangs ActivityOpenAccLaunchFieldIds = 24 // OpenaccLaunchFieldNumWorkers: uint64_t numWorkers; Number of workers created for this kernel launch. OpenaccLaunchFieldNumWorkers ActivityOpenAccLaunchFieldIds = 25 // OpenaccLaunchFieldVectorLength: uint64_t vectorLength; Number of vector lanes created for this kernel launch. OpenaccLaunchFieldVectorLength ActivityOpenAccLaunchFieldIds = 26 // OpenaccLaunchFieldKernelName: const char *kernelName; Pointer to null-terminated string containing kernel name. OpenaccLaunchFieldKernelName ActivityOpenAccLaunchFieldIds = 27 )
func (ActivityOpenAccLaunchFieldIds) String ¶
func (e ActivityOpenAccLaunchFieldIds) String() string
String returns the constant name, or a numeric representation for unknown values.
type ActivityOpenAccOther ¶
type ActivityOpenAccOther struct {
Kind ActivityKind
EventKind OpenAccEventKind
ParentConstruct OpenAccConstructKind
Version uint32
Implicit uint32
DeviceType uint32
DeviceNumber uint32
ThreadId uint32
Async uint64
AsyncMap uint64
LineNo uint32
EndLineNo uint32
FuncLineNo uint32
FuncEndLineNo uint32
Start uint64
End uint64
CuDeviceId uint32
CuContextId uint32
CuStreamId uint32
CuProcessId uint32
CuThreadId uint32
ExternalId uint32
SrcFile uintptr
FuncName uintptr
}
ActivityOpenAccOther represents the activity record for OpenACC other.
type ActivityOpenAccOtherFieldIds ¶
type ActivityOpenAccOtherFieldIds int32
ActivityOpenAccOtherFieldIds represents enum identifiers for fields in ActivityOpenAccOther.
Each enum value corresponds to a field in ActivityOpenAccOther and documents the exact meaning of that field.
const ( // OpenaccOtherFieldKind: [ActivityKind] kind; The activity record kind, must be [ActivityKindOpenaccOther]. OpenaccOtherFieldKind ActivityOpenAccOtherFieldIds = 0 OpenaccOtherFieldEventKind ActivityOpenAccOtherFieldIds = 1 // [OpenAccEventKind] eventKind; CUPTI OpenACC event kind. // OpenaccOtherFieldParentConstruct: [OpenAccConstructKind] parentConstruct; CUPTI OpenACC parent construct kind. OpenaccOtherFieldParentConstruct ActivityOpenAccOtherFieldIds = 2 OpenaccOtherFieldVersion ActivityOpenAccOtherFieldIds = 3 // uint32_t version; Version number. OpenaccOtherFieldImplicit ActivityOpenAccOtherFieldIds = 4 // uint32_t implicit; 1 for implicit event, 0 otherwise. OpenaccOtherFieldDeviceType ActivityOpenAccOtherFieldIds = 5 // uint32_t deviceType; Device type. OpenaccOtherFieldDeviceNumber ActivityOpenAccOtherFieldIds = 6 // uint32_t deviceNumber; Device number. OpenaccOtherFieldThreadId ActivityOpenAccOtherFieldIds = 7 // uint32_t threadId; Thread identifier. // OpenaccOtherFieldAsync: uint64_t async; Value of async() clause of the corresponding directive. OpenaccOtherFieldAsync ActivityOpenAccOtherFieldIds = 8 OpenaccOtherFieldAsyncMap ActivityOpenAccOtherFieldIds = 9 // uint64_t asyncMap; Internal asynchronous queue number used. OpenaccOtherFieldLineNo ActivityOpenAccOtherFieldIds = 10 // uint32_t lineNo; Line number of the directive or construct. OpenaccOtherFieldEndLineNo ActivityOpenAccOtherFieldIds = 11 // uint32_t endLineNo; Line number of the end of the construct. OpenaccOtherFieldFuncLineNo ActivityOpenAccOtherFieldIds = 12 // uint32_t funcLineNo; Starting line number of the function. OpenaccOtherFieldFuncEndLineNo ActivityOpenAccOtherFieldIds = 13 // uint32_t funcEndLineNo; Ending line number of the function. OpenaccOtherFieldStart ActivityOpenAccOtherFieldIds = 14 // uint64_t start; CUPTI start timestamp. OpenaccOtherFieldEnd ActivityOpenAccOtherFieldIds = 15 // uint64_t end; CUPTI end timestamp. OpenaccOtherFieldCuDeviceId ActivityOpenAccOtherFieldIds = 16 // uint32_t cuDeviceId; CUDA device id. OpenaccOtherFieldCuContextId ActivityOpenAccOtherFieldIds = 17 // uint32_t cuContextId; CUDA context id. OpenaccOtherFieldCuStreamId ActivityOpenAccOtherFieldIds = 18 // uint32_t cuStreamId; CUDA stream id. // OpenaccOtherFieldCuProcessId: uint32_t cuProcessId; Process id where the activity is executing. OpenaccOtherFieldCuProcessId ActivityOpenAccOtherFieldIds = 19 // OpenaccOtherFieldCuThreadId: uint64_t cuThreadId; Thread id where the activity is executing. OpenaccOtherFieldCuThreadId ActivityOpenAccOtherFieldIds = 20 OpenaccOtherFieldExternalId ActivityOpenAccOtherFieldIds = 21 // uint32_t externalId; OpenACC correlation id. // OpenaccOtherFieldSrcFile: const char *srcFile; Pointer to null-terminated string containing source file name or path. OpenaccOtherFieldSrcFile ActivityOpenAccOtherFieldIds = 22 // OpenaccOtherFieldFuncName: const char *funcName; Pointer to null-terminated string containing function name. OpenaccOtherFieldFuncName ActivityOpenAccOtherFieldIds = 23 )
func (ActivityOpenAccOtherFieldIds) String ¶
func (e ActivityOpenAccOtherFieldIds) String() string
String returns the constant name, or a numeric representation for unknown values.
type ActivityOpenMp ¶
type ActivityOpenMp struct {
Kind ActivityKind
EventKind OpenMpEventKind
Version uint32
ThreadId uint32
Start uint64
End uint64
CuProcessId uint32
CuThreadId uint32
}
ActivityOpenMp represents the base activity record for OpenMp records.
type ActivityOpenMpFieldIds ¶
type ActivityOpenMpFieldIds int32
ActivityOpenMpFieldIds represents enum identifiers for fields in ActivityOpenMp.
This activity record records OpenMP activity information.
const ( // OpenmpFieldKind: [ActivityKind] kind; Kind of this activity record. Always [ActivityKindOpenmp]. OpenmpFieldKind ActivityOpenMpFieldIds = 0 // OpenmpFieldEventKind: [OpenMpEventKind] eventKind; CUPTI OpenMP event kind (. See also [OpenMpEventKind]) OpenmpFieldEventKind ActivityOpenMpFieldIds = 1 OpenmpFieldStart ActivityOpenMpFieldIds = 2 // uint64_t start; CUPTI start timestamp OpenmpFieldEnd ActivityOpenMpFieldIds = 3 // uint64_t end; CUPTI end timestamp // OpenmpFieldCuThreadId: uint64_t cuThreadId; The ID of the thread where the OpenMP activity is executing. OpenmpFieldCuThreadId ActivityOpenMpFieldIds = 4 // OpenmpFieldCuProcessId: uint32_t cuProcessId; The ID of the process where the OpenMP activity is executing. OpenmpFieldCuProcessId ActivityOpenMpFieldIds = 5 )
func (ActivityOpenMpFieldIds) String ¶
func (e ActivityOpenMpFieldIds) String() string
String returns the constant name, or a numeric representation for unknown values.
type ActivityOverhead
deprecated
type ActivityOverhead struct {
Kind ActivityKind
OverheadKind ActivityOverheadKind
ObjectKind ActivityObjectKind
ObjectId ActivityObjectKindId
Start uint64
End uint64
}
ActivityOverhead represents the activity record for CUPTI and driver overheads.
This activity record provides CUPTI and driver overhead information (ActivityOverhead). These records are now reported using ActivityOverhead3
Deprecated: Deprecated in CUDA 12.2. Use ActivityOverhead3 instead.
type ActivityOverhead2 ¶
type ActivityOverhead2 struct {
Kind ActivityKind
OverheadKind ActivityOverheadKind
ObjectKind ActivityObjectKind
ObjectId ActivityObjectKindId
Start uint64
End uint64
CorrelationId uint32
Reserved0 uint32
}
ActivityOverhead2 represents the activity record for CUPTI and driver overheads.
This activity record provides CUPTI and driver overhead information (ActivityOverhead).
type ActivityOverhead3 ¶
type ActivityOverhead3 struct {
Kind ActivityKind
OverheadKind ActivityOverheadKind
ObjectKind ActivityObjectKind
ObjectId ActivityObjectKindId
Start uint64
End uint64
CorrelationId uint32
Reserved0 uint32
OverheadData uintptr
}
ActivityOverhead3 represents the activity record for CUPTI and driver overheads.
This activity record provides CUPTI and driver overhead information (ActivityKindOverhead).
type ActivityOverheadCommandBufferFullData ¶
type ActivityOverheadCommandBufferFullData struct {
CommandBufferLength uint32
ChannelID uint32
ChannelType uint32
}
ActivityOverheadCommandBufferFullData represents the structure to provide additional data for ActivityOverheadCommandBufferFull.
type ActivityOverheadFieldIds ¶
type ActivityOverheadFieldIds int32
ActivityOverheadFieldIds represents enum identifiers for fields to trace CUPTI and driver overhead information.
These field IDs are used to reference specific fields when dynamically selecting or parsing activity records of ActivityKindOverhead.
const ( // OverheadFieldKind: [ActivityKind] kind; Kind of this activity record. Always [ActivityKindOverhead]. OverheadFieldKind ActivityOverheadFieldIds = 0 // OverheadFieldOverheadKind: [ActivityOverheadKind] overheadKind; The kind of overhead, CUPTI, DRIVER, COMPILER etc. OverheadFieldOverheadKind ActivityOverheadFieldIds = 1 // OverheadFieldProcessId: uint32_t processId; The process ID of the process where the overhead is occurring. OverheadFieldProcessId ActivityOverheadFieldIds = 2 // OverheadFieldThreadId: uint64_t threadId; The thread ID of the process where the overhead is occurring. OverheadFieldThreadId ActivityOverheadFieldIds = 3 // OverheadFieldStart: uint64_t start; The start timestamp for the overhead, in nanoseconds. OverheadFieldStart ActivityOverheadFieldIds = 4 // OverheadFieldEnd: uint64_t end; The end timestamp for the overhead, in nanoseconds. OverheadFieldEnd ActivityOverheadFieldIds = 5 // OverheadFieldCorrelationId: uint64_t correlationId; Correlation ID assigned to this overhead record. Matches the correlation ID in the CUDA driver/runtime API activity record that launched it. OverheadFieldCorrelationId ActivityOverheadFieldIds = 6 // OverheadFieldOverheadData: void *overheadData; Pointer to the struct with additional details about the overhead. Refer [ActivityOverheadKind] enum and the corresponding structure to typecast and access additional overhead data. Client is responsible for freeing this memory using the free function when done. OverheadFieldOverheadData ActivityOverheadFieldIds = 7 )
func (ActivityOverheadFieldIds) String ¶
func (e ActivityOverheadFieldIds) String() string
String returns the constant name, or a numeric representation for unknown values.
type ActivityOverheadKind ¶
type ActivityOverheadKind int32
ActivityOverheadKind represents the kinds of activity overhead.
const ( ActivityOverheadUnknown ActivityOverheadKind = 0 // The overhead kind is not known. ActivityOverheadDriverCompiler ActivityOverheadKind = 1 // Compiler overhead. ActivityOverheadCuptiBufferFlush ActivityOverheadKind = 1 << 16 // Activity buffer flush overhead. ActivityOverheadCuptiInstrumentation ActivityOverheadKind = 2 << 16 // CUPTI instrumentation overhead. ActivityOverheadCuptiResource ActivityOverheadKind = 3 << 16 // CUPTI resource creation and destruction overhead. ActivityOverheadRuntimeTriggeredModuleLoading ActivityOverheadKind = 4 << 16 // CUDA Runtime triggered module loading overhead. ActivityOverheadLazyFunctionLoading ActivityOverheadKind = 5 << 16 // Lazy function loading overhead. // ActivityOverheadCommandBufferFull: Overhead due to lack of command buffer space. Refer [ActivityOverheadCommandBufferFullData] for more details. ActivityOverheadCommandBufferFull ActivityOverheadKind = 6 << 16 ActivityOverheadActivityBufferRequest ActivityOverheadKind = 7 << 16 // Overhead due to activity buffer request. ActivityOverheadUvmActivityInit ActivityOverheadKind = 8 << 16 // Overhead due to UVM activity initialization. ActivityOverheadForceInt ActivityOverheadKind = 0x7fffffff )
func (ActivityOverheadKind) String ¶
func (e ActivityOverheadKind) String() string
String returns the constant name, or a numeric representation for unknown values.
type ActivityPCSampling
deprecated
type ActivityPCSampling struct {
Kind ActivityKind
Flags ActivityFlag
SourceLocatorId uint32
CorrelationId uint32
FunctionId uint32
PcOffset uint32
Samples uint32
StallReason ActivityPCSamplingStallReason
// contains filtered or unexported fields
}
ActivityPCSampling represents the activity record for PC sampling.
This activity records information obtained by sampling PC (ActivityKindPcSampling). PC sampling activities are now reported using the ActivityPCSampling2 activity record.
Deprecated: Deprecated in CUDA 8.0. Use ActivityPCSampling2 instead.
type ActivityPCSampling2
deprecated
type ActivityPCSampling2 struct {
Kind ActivityKind
Flags ActivityFlag
SourceLocatorId uint32
CorrelationId uint32
FunctionId uint32
PcOffset uint32
LatencySamples uint32
Samples uint32
StallReason ActivityPCSamplingStallReason
Pad uint32
// contains filtered or unexported fields
}
ActivityPCSampling2 represents the activity record for PC sampling.
This activity records information obtained by sampling PC (ActivityKindPcSampling). PC sampling activities are now reported using the ActivityPCSampling3 activity record.
Deprecated: Deprecated in CUDA 9.0. Use ActivityPCSampling3 instead.
type ActivityPCSampling3 ¶
type ActivityPCSampling3 struct {
Kind ActivityKind
Flags ActivityFlag
SourceLocatorId uint32
CorrelationId uint32
FunctionId uint32
LatencySamples uint32
Samples uint32
StallReason ActivityPCSamplingStallReason
PcOffset uint64
}
ActivityPCSampling3 represents the activity record for PC sampling.
This activity records information obtained by sampling PC (ActivityKindPcSampling).
type ActivityPCSamplingConfig ¶
type ActivityPCSamplingConfig struct {
Size uint32
SamplingPeriod ActivityPCSamplingPeriod
SamplingPeriod2 uint32
// contains filtered or unexported fields
}
ActivityPCSamplingConfig represents PC sampling configuration structure.
This structure defines the pc sampling configuration. See function ActivityConfigurePCSampling
type ActivityPCSamplingPeriod ¶
type ActivityPCSamplingPeriod int32
ActivityPCSamplingPeriod represents sampling period for PC sampling method.
Sampling period can be set using ActivityConfigurePCSampling
const ( ActivityPcSamplingPeriodInvalid ActivityPCSamplingPeriod = 0 // The PC sampling period is not set. ActivityPcSamplingPeriodMin ActivityPCSamplingPeriod = 1 // Minimum sampling period available on the device. ActivityPcSamplingPeriodLow ActivityPCSamplingPeriod = 2 // Sampling period in lower range. ActivityPcSamplingPeriodMid ActivityPCSamplingPeriod = 3 // Medium sampling period. ActivityPcSamplingPeriodHigh ActivityPCSamplingPeriod = 4 // Sampling period in higher range. ActivityPcSamplingPeriodMax ActivityPCSamplingPeriod = 5 // Maximum sampling period available on the device. ActivityPcSamplingPeriodForceInt ActivityPCSamplingPeriod = 0x7fffffff )
func (ActivityPCSamplingPeriod) String ¶
func (e ActivityPCSamplingPeriod) String() string
String returns the constant name, or a numeric representation for unknown values.
type ActivityPCSamplingRecordInfo ¶
type ActivityPCSamplingRecordInfo struct {
Kind ActivityKind
CorrelationId uint32
TotalSamples uint64
DroppedSamples uint64
SamplingPeriodInCycles uint64
}
ActivityPCSamplingRecordInfo represents the activity record for record status for PC sampling.
This activity records information obtained by sampling PC (ActivityKindPcSamplingRecordInfo).
type ActivityPCSamplingStallReason ¶
type ActivityPCSamplingStallReason int32
ActivityPCSamplingStallReason represents the stall reason for PC sampling activity.
const ( ActivityPcSamplingStallInvalid ActivityPCSamplingStallReason = 0 // Invalid reason. ActivityPcSamplingStallNone ActivityPCSamplingStallReason = 1 // No stall, instruction is selected for issue // ActivityPcSamplingStallInstFetch: Warp is blocked because next instruction is not yet available, because of instruction cache miss, or because of branching effects ActivityPcSamplingStallInstFetch ActivityPCSamplingStallReason = 2 ActivityPcSamplingStallExecDependency ActivityPCSamplingStallReason = 3 // Instruction is waiting on an arithmetic dependency // ActivityPcSamplingStallMemoryDependency: Warp is blocked because it is waiting for a memory access to complete. ActivityPcSamplingStallMemoryDependency ActivityPCSamplingStallReason = 4 // ActivityPcSamplingStallTexture: Texture sub-system is fully utilized or has too many outstanding requests. ActivityPcSamplingStallTexture ActivityPCSamplingStallReason = 5 // ActivityPcSamplingStallSync: Warp is blocked as it is waiting at __syncthreads() or at memory barrier. ActivityPcSamplingStallSync ActivityPCSamplingStallReason = 6 // ActivityPcSamplingStallConstantMemoryDependency: Warp is blocked waiting for __constant__ memory and immediate memory access to complete. ActivityPcSamplingStallConstantMemoryDependency ActivityPCSamplingStallReason = 7 // ActivityPcSamplingStallPipeBusy: Compute operation cannot be performed due to the required resources not being available. ActivityPcSamplingStallPipeBusy ActivityPCSamplingStallReason = 8 // ActivityPcSamplingStallMemoryThrottle: Warp is blocked because there are too many pending memory operations. ActivityPcSamplingStallMemoryThrottle ActivityPCSamplingStallReason = 9 ActivityPcSamplingStallNotSelected ActivityPCSamplingStallReason = 10 // Warp was ready to issue, but some other warp issued instead. ActivityPcSamplingStallOther ActivityPCSamplingStallReason = 11 // Miscellaneous reasons ActivityPcSamplingStallSleeping ActivityPCSamplingStallReason = 12 // Sleeping. ActivityPcSamplingStallForceInt ActivityPCSamplingStallReason = 0x7fffffff )
func (ActivityPCSamplingStallReason) String ¶
func (e ActivityPCSamplingStallReason) String() string
String returns the constant name, or a numeric representation for unknown values.
type ActivityPartitionedGlobalCacheConfig ¶
type ActivityPartitionedGlobalCacheConfig int32
ActivityPartitionedGlobalCacheConfig represents partitioned global caching option.
const ( ActivityPartitionedGlobalCacheConfigUnknown ActivityPartitionedGlobalCacheConfig = 0 // Partitioned global cache config unknown. ActivityPartitionedGlobalCacheConfigNotSupported ActivityPartitionedGlobalCacheConfig = 1 // Partitioned global cache not supported. ActivityPartitionedGlobalCacheConfigOff ActivityPartitionedGlobalCacheConfig = 2 // Partitioned global cache config off. ActivityPartitionedGlobalCacheConfigOn ActivityPartitionedGlobalCacheConfig = 3 // Partitioned global cache config on. ActivityPartitionedGlobalCacheConfigForceInt ActivityPartitionedGlobalCacheConfig = 0x7fffffff )
func (ActivityPartitionedGlobalCacheConfig) String ¶
func (e ActivityPartitionedGlobalCacheConfig) String() string
String returns the constant name, or a numeric representation for unknown values.
type ActivityPcie ¶
type ActivityPcie struct {
Kind ActivityKind
Type PcieDeviceType
Id [1]uint32
Domain uint32
PcieGeneration uint16
LinkRate uint16
LinkWidth uint16
UpstreamBus uint16
Attr [36]uint32
// contains filtered or unexported fields
}
ActivityPcie represents PCI devices information required to construct topology.
This structure gives capabilities of GPU and PCI bridge connected to the PCIE bus which can be used to understand the topology.
type ActivityPcieBridgeAttr ¶
type ActivityPcieBridgeAttr struct {
SecondaryBus uint16
DeviceId uint16
VendorId uint16
Pad0 uint16
}
ActivityPcieBridgeAttr represents attributes for more information about PCI Bridge (bridgeAttr).
type ActivityPcieFieldIds ¶
type ActivityPcieFieldIds int32
ActivityPcieFieldIds represents enum identifiers for fields in ActivityPcie.
Each enum value corresponds to a field in ActivityPcie and describes the data type and purpose of that field.
const ( // PcieFieldKind: [ActivityKind] kind; Kind of activity record: [ActivityKindPcie]. PcieFieldKind ActivityPcieFieldIds = 0 // PcieFieldType: [PcieDeviceType] type; Type of device in topology, [PcieDeviceType]. PcieFieldType ActivityPcieFieldIds = 1 // PcieFieldId: union id; A unique identifier for GPU or Bridge in Topology. CUdevice devId if type is [PcieDeviceTypeGpu] uint32_t bridgeId if type is [PcieDeviceTypeBridge] PcieFieldId ActivityPcieFieldIds = 2 // PcieFieldDomain: uint32_t domain; Domain for the GPU or Bridge, required to identify which PCIE bus it belongs to in multiple NUMA systems. PcieFieldDomain ActivityPcieFieldIds = 3 PcieFieldPcieGeneration ActivityPcieFieldIds = 4 // uint16_t pcieGeneration; PCIE Generation of GPU or Bridge. // PcieFieldLinkRate: uint16_t linkRate; Link rate of the GPU or bridge in gigatransfers per second (GT/s). PcieFieldLinkRate ActivityPcieFieldIds = 5 PcieFieldLinkWidth ActivityPcieFieldIds = 6 // uint16_t linkWidth; Link width of the GPU or bridge. // PcieFieldUpstreamBus: uint16_t upstreamBus; Upstream bus ID for the GPU or PCI bridge. Required to identify which bus it is connected to in the topology. PcieFieldUpstreamBus ActivityPcieFieldIds = 7 // PcieFieldAttr: union attr; Attributes for more information about GPU (gpuAttr) or PCI Bridge (bridgeAttr). [ActivityPcieGpuAttr] gpuAttr if type is [PcieDeviceTypeGpu] [ActivityPcieBridgeAttr] bridgeAttr if type is [PcieDeviceTypeBridge] The size of this field is determined by the largest structure among the possible types it can hold. PcieFieldAttr ActivityPcieFieldIds = 8 )
func (ActivityPcieFieldIds) String ¶
func (e ActivityPcieFieldIds) String() string
String returns the constant name, or a numeric representation for unknown values.
type ActivityPcieGpuAttr ¶
ActivityPcieGpuAttr represents attributes for more information about GPU (gpuAttr).
type ActivityPreemption ¶
type ActivityPreemption struct {
Kind ActivityKind
PreemptionKind ActivityPreemptionKind
Timestamp uint64
GridId int64
Block Dim3
Pad uint32
}
ActivityPreemption represents the activity record for a preemption of a CDP kernel.
This activity record represents a preemption of a CDP kernel.
type ActivityPreemptionKind ¶
type ActivityPreemptionKind int32
ActivityPreemptionKind represents the kind of a preemption activity.
const ( ActivityPreemptionKindUnknown ActivityPreemptionKind = 0 // The preemption kind is not known. ActivityPreemptionKindSave ActivityPreemptionKind = 1 // Preemption to save CDP block. ActivityPreemptionKindRestore ActivityPreemptionKind = 2 // Preemption to restore CDP block. ActivityPreemptionKindForceInt ActivityPreemptionKind = 0x7fffffff )
func (ActivityPreemptionKind) String ¶
func (e ActivityPreemptionKind) String() string
String returns the constant name, or a numeric representation for unknown values.
type ActivityRecordLayout ¶
type ActivityRecordLayout struct {
StructSize uint
PEntries uintptr
NumFields uint
RecordSize uint
}
ActivityRecordLayout represents CUpti_ActivityRecordLayout.
type ActivitySharedAccess ¶
type ActivitySharedAccess struct {
}
ActivitySharedAccess represents the activity record for source-level shared access.
This activity records the locations of the shared accesses in the source (ActivityKindSharedAccess).
type ActivitySourceLocator ¶
type ActivitySourceLocator struct {
Kind ActivityKind
Id uint32
LineNumber uint32
Pad uint32
FileName uintptr
}
ActivitySourceLocator represents the activity record for source locator.
This activity record represents a source locator (ActivityKindSourceLocator).
type ActivityStream ¶
type ActivityStream struct {
Kind ActivityKind
ContextId uint32
StreamId uint32
Priority uint32
Flag ActivityStreamFlag
CorrelationId uint32
// contains filtered or unexported fields
}
ActivityStream represents the activity record for CUDA stream.
This activity is used to track created streams. (ActivityKindStream).
type ActivityStreamFieldIds ¶
type ActivityStreamFieldIds int32
ActivityStreamFieldIds represents enum identifiers for fields to trace CUDA Stream operations.
These field IDs are used to reference specific fields when dynamically selecting or parsing activity records of ActivityKindStream.
const ( // StreamFieldKind: [ActivityKind] kind; Kind of this activity record. Always [ActivityKindStream]. StreamFieldKind ActivityStreamFieldIds = 0 // StreamFieldContextId: uint32_t contextId; The ID of the context where the stream was created. StreamFieldContextId ActivityStreamFieldIds = 1 // StreamFieldStreamId: uint32_t streamId; A unique stream ID to identify the stream. StreamFieldStreamId ActivityStreamFieldIds = 2 StreamFieldPriority ActivityStreamFieldIds = 3 // int32_t priority; The clamped priority for the stream. StreamFieldFlag ActivityStreamFieldIds = 4 // [ActivityStreamFlag] flag; Flags associated with the stream. // StreamFieldCorrelationId: uint64_t correlationId; Correlation ID assigned to this CUDA Stream operation. StreamFieldCorrelationId ActivityStreamFieldIds = 5 )
func (ActivityStreamFieldIds) String ¶
func (e ActivityStreamFieldIds) String() string
String returns the constant name, or a numeric representation for unknown values.
type ActivityStreamFlag ¶
type ActivityStreamFlag int32
ActivityStreamFlag represents stream type.
The types of stream to be used with ActivityStream.
const ( ActivityStreamCreateFlagUnknown ActivityStreamFlag = 0 // Unknown data. ActivityStreamCreateFlagDefault ActivityStreamFlag = 1 // Default stream. ActivityStreamCreateFlagNonBlocking ActivityStreamFlag = 2 // Non-blocking stream. ActivityStreamCreateFlagNull ActivityStreamFlag = 3 // Null stream. ActivityStreamCreateMask ActivityStreamFlag = 0xFFFF // Stream create Mask. ActivityStreamCreateFlagForceInt ActivityStreamFlag = 0x7fffffff )
func (ActivityStreamFlag) String ¶
func (e ActivityStreamFlag) String() string
String returns the constant name, or a numeric representation for unknown values.
type ActivitySynchronization
deprecated
type ActivitySynchronization struct {
Kind ActivityKind
Type ActivitySynchronizationType
Start uint64
End uint64
CorrelationId uint32
ContextId uint32
StreamId uint32
CudaEventId uint32
}
ActivitySynchronization represents the activity record for synchronization management.
This activity is used to track various CUDA synchronization APIs. (ActivityKindSynchronization).
Deprecated: Deprecated in CUDA 12.8. Use ActivitySynchronization2 instead. Structure deprecated in CUDA 12.8: Refer to ActivitySynchronization2 for the latest structure.
type ActivitySynchronization2 ¶
type ActivitySynchronization2 struct {
Kind ActivityKind
Type ActivitySynchronizationType
Start uint64
End uint64
CorrelationId uint32
ContextId uint32
StreamId uint32
CudaEventId uint32
CudaEventSyncId uint64
ReturnValue uint32
Pad uint32
}
ActivitySynchronization2 represents the activity record for synchronization management.
This activity is used to track various CUDA synchronization APIs. (ActivityKindSynchronization).
type ActivitySynchronizationFieldIds ¶
type ActivitySynchronizationFieldIds int32
ActivitySynchronizationFieldIds represents enum identifiers for fields to trace various CUDA synchronization APIs.
These field IDs are used to reference specific fields when dynamically selecting or parsing activity records of ActivityKindSynchronization.
const ( // SynchronizationFieldKind: [ActivityKind] kind; Kind of this activity record. Always [ActivityKindSynchronization]. SynchronizationFieldKind ActivitySynchronizationFieldIds = 0 // SynchronizationFieldType: [ActivitySynchronizationType] type; The type of synchronization operation. SynchronizationFieldType ActivitySynchronizationFieldIds = 1 // SynchronizationFieldStart: uint64_t start; The start timestamp for the synchronization operation (in nanoseconds). SynchronizationFieldStart ActivitySynchronizationFieldIds = 2 // SynchronizationFieldEnd: uint64_t start; The start timestamp for the synchronization operation (in nanoseconds). SynchronizationFieldEnd ActivitySynchronizationFieldIds = 3 // SynchronizationFieldCorrelationId: uint64_t correlationId; Correlation ID assigned to this synchronization operation. Matches the correlation ID in the CUDA driver/runtime API activity record that launched it. SynchronizationFieldCorrelationId ActivitySynchronizationFieldIds = 4 // SynchronizationFieldContextId: uint32_t contextId; CUDA context where the operation is occurring. SynchronizationFieldContextId ActivitySynchronizationFieldIds = 5 // SynchronizationFieldStreamId: uint32_t streamId; The compute stream where the synchronization operation is occurring. CUPTI_SYNCHRONIZATION_INVALID_VALUE indicates that the field is not applicable for this record. SynchronizationFieldStreamId ActivitySynchronizationFieldIds = 6 // SynchronizationFieldCudaEventId: uint64_t cudaEventId; The CUDA event ID for which the synchronization operation is called. CUPTI_SYNCHRONIZATION_INVALID_VALUE indicates that the field is not applicable for this record. SynchronizationFieldCudaEventId ActivitySynchronizationFieldIds = 7 // SynchronizationFieldCudaEventSyncId: uint64_t cudaEventSyncId; A unique ID to associate event synchronization records with the latest CUDA Event record. Similar field is added in [ActivityCudaEventFieldIds] to associate synchronization record to the CUDA Event record. The same CUDA event can be used multiple times, so the event id will not be unique to correlate the synchronization record with the latest CUDA Event record. This field will be unique and can be used to do the required correlation. A CUPTI_SYNCHRONIZATION_INVALID_VALUE value indicates that the field is not applicable for this record. Valid only for synchronization records related to CUDA Events. SynchronizationFieldCudaEventSyncId ActivitySynchronizationFieldIds = 8 // SynchronizationFieldReturnValue: uint32_t returnValue; The return value for the synchronization operation. Use [ActivityEnableAllSyncRecords] API to enable/disable collection of synchronization records with return value being non-zero. This will be a CUresult value. SynchronizationFieldReturnValue ActivitySynchronizationFieldIds = 9 )
func (ActivitySynchronizationFieldIds) String ¶
func (e ActivitySynchronizationFieldIds) String() string
String returns the constant name, or a numeric representation for unknown values.
type ActivitySynchronizationType ¶
type ActivitySynchronizationType int32
ActivitySynchronizationType represents synchronization type.
The types of synchronization to be used with ActivitySynchronization2.
const ( ActivitySynchronizationTypeUnknown ActivitySynchronizationType = 0 // Unknown data. ActivitySynchronizationTypeEventSynchronize ActivitySynchronizationType = 1 // Event synchronize API. ActivitySynchronizationTypeStreamWaitEvent ActivitySynchronizationType = 2 // Stream wait event API. ActivitySynchronizationTypeStreamSynchronize ActivitySynchronizationType = 3 // Stream synchronize API. ActivitySynchronizationTypeContextSynchronize ActivitySynchronizationType = 4 // Context synchronize API. ActivitySynchronizationTypeForceInt ActivitySynchronizationType = 0x7fffffff )
func (ActivitySynchronizationType) String ¶
func (e ActivitySynchronizationType) String() string
String returns the constant name, or a numeric representation for unknown values.
type ActivityThreadIdType ¶
type ActivityThreadIdType int32
ActivityThreadIdType represents Thread-Id types.
CUPTI uses different methods to obtain the thread-id depending on the support and the underlying platform. This enum documents these methods for each type. APIs SetThreadIdType and GetThreadIdType can be used to set and get the thread-id type.
const ( // ActivityThreadIdTypeDefault: Default type Windows uses API GetCurrentThreadId() Linux/Mac/Android/QNX use POSIX pthread API pthread_self() ActivityThreadIdTypeDefault ActivityThreadIdType = 0 // ActivityThreadIdTypeSystem: This type is based on the system API available on the underlying platform and thread-id obtained is supposed to be unique for the process lifetime. Windows uses API GetCurrentThreadId() Linux uses syscall SYS_gettid Mac uses syscall SYS_thread_selfid Android/QNX use gettid() ActivityThreadIdTypeSystem ActivityThreadIdType = 1 ActivityThreadIdTypeSize ActivityThreadIdType = 2 // Add new enums before this field. ActivityThreadIdTypeForceInt ActivityThreadIdType = 0x7fffffff )
func (ActivityThreadIdType) String ¶
func (e ActivityThreadIdType) String() string
String returns the constant name, or a numeric representation for unknown values.
type ActivityUnifiedMemoryAccessType ¶
type ActivityUnifiedMemoryAccessType int32
ActivityUnifiedMemoryAccessType represents memory access type for unified memory page faults.
This is valid for ActivityUnifiedMemoryCounterKindGpuPageFault and ActivityUnifiedMemoryCounterKindCpuPageFaultCount
const ( ActivityUnifiedMemoryAccessTypeUnknown ActivityUnifiedMemoryAccessType = 0 // The unified memory access type is not known ActivityUnifiedMemoryAccessTypeRead ActivityUnifiedMemoryAccessType = 1 // The page fault was triggered by read memory instruction ActivityUnifiedMemoryAccessTypeWrite ActivityUnifiedMemoryAccessType = 2 // The page fault was triggered by write memory instruction ActivityUnifiedMemoryAccessTypeAtomic ActivityUnifiedMemoryAccessType = 3 // The page fault was triggered by atomic memory instruction ActivityUnifiedMemoryAccessTypePrefetch ActivityUnifiedMemoryAccessType = 4 // The page fault was triggered by memory prefetch operation. )
func (ActivityUnifiedMemoryAccessType) String ¶
func (e ActivityUnifiedMemoryAccessType) String() string
String returns the constant name, or a numeric representation for unknown values.
type ActivityUnifiedMemoryCounter
deprecated
type ActivityUnifiedMemoryCounter struct {
Kind ActivityKind
CounterKind ActivityUnifiedMemoryCounterKind
Scope ActivityUnifiedMemoryCounterScope
DeviceId uint32
Value uint64
Timestamp uint64
ProcessId uint32
Pad uint32
}
ActivityUnifiedMemoryCounter represents the activity record for Unified Memory counters.
This activity record represents a Unified Memory counter (ActivityKindUnifiedMemoryCounter).
Deprecated: Deprecated in CUDA 7.0.
type ActivityUnifiedMemoryCounter2
deprecated
type ActivityUnifiedMemoryCounter2 struct {
Kind ActivityKind
CounterKind ActivityUnifiedMemoryCounterKind
Value uint64
Start uint64
End uint64
Address uint64
SrcId uint32
DstId uint32
StreamId uint32
ProcessId uint32
Flags uint32
Pad uint32
}
ActivityUnifiedMemoryCounter2 represents the activity record for Unified Memory counters.
This activity record represents a Unified Memory counter (ActivityKindUnifiedMemoryCounter).
Deprecated: Deprecated in 12.8.
type ActivityUnifiedMemoryCounter3 ¶
type ActivityUnifiedMemoryCounter3 struct {
Kind ActivityKind
CounterKind ActivityUnifiedMemoryCounterKind
Value uint64
Start uint64
End uint64
Address uint64
SrcId uint32
DstId uint32
StreamId uint32
ProcessId uint32
Flags uint32
Pad uint32
Processors [5]uint64
}
ActivityUnifiedMemoryCounter3 represents the activity record for Unified Memory counters (CUDA 7.0 and beyond).
This activity record represents a Unified Memory counter (ActivityKindUnifiedMemoryCounter).
type ActivityUnifiedMemoryCounterConfig ¶
type ActivityUnifiedMemoryCounterConfig struct {
Scope ActivityUnifiedMemoryCounterScope
Kind ActivityUnifiedMemoryCounterKind
DeviceId uint32
Enable uint32
// contains filtered or unexported fields
}
ActivityUnifiedMemoryCounterConfig represents unified Memory counters configuration structure.
This structure controls the enable/disable of the various Unified Memory counters consisting of scope, kind and other parameters. See function ActivityConfigureUnifiedMemoryCounter
type ActivityUnifiedMemoryCounterKind ¶
type ActivityUnifiedMemoryCounterKind int32
ActivityUnifiedMemoryCounterKind represents kind of the Unified Memory counter.
Many activities are associated with Unified Memory mechanism; among them are transfers from host to device, device to host, page fault at host side.
const ( ActivityUnifiedMemoryCounterKindUnknown ActivityUnifiedMemoryCounterKind = 0 // The unified memory counter kind is not known. ActivityUnifiedMemoryCounterKindBytesTransferHtod ActivityUnifiedMemoryCounterKind = 1 // Number of bytes transferred from host to device ActivityUnifiedMemoryCounterKindBytesTransferDtoh ActivityUnifiedMemoryCounterKind = 2 // Number of bytes transferred from device to host // ActivityUnifiedMemoryCounterKindCpuPageFaultCount: Number of CPU page faults, this is only supported on 64 bit Linux and Mac platforms ActivityUnifiedMemoryCounterKindCpuPageFaultCount ActivityUnifiedMemoryCounterKind = 3 // ActivityUnifiedMemoryCounterKindGpuPageFault: Number of GPU page faults, this is only supported on devices with compute capability 6.0 and higher and 64 bit Linux platforms ActivityUnifiedMemoryCounterKindGpuPageFault ActivityUnifiedMemoryCounterKind = 4 // ActivityUnifiedMemoryCounterKindThrashing: Thrashing occurs when data is frequently accessed by multiple processors and has to be constantly migrated around to achieve data locality. In this case the overhead of migration may exceed the benefits of locality. This is only supported on 64 bit Linux platforms. ActivityUnifiedMemoryCounterKindThrashing ActivityUnifiedMemoryCounterKind = 5 // ActivityUnifiedMemoryCounterKindThrottling: Throttling is a prevention technique used by the driver to avoid further thrashing. Here, the driver doesn't service the fault for one of the contending processors for a specific period of time, so that the other processor can run at full-speed. This is only supported on 64 bit Linux platforms. ActivityUnifiedMemoryCounterKindThrottling ActivityUnifiedMemoryCounterKind = 6 // ActivityUnifiedMemoryCounterKindRemoteMap: In case throttling does not help, the driver tries to pin the memory to a processor for a specific period of time. One of the contending processors will have slow access to the memory, while the other will have fast access. This is only supported on 64 bit Linux platforms. ActivityUnifiedMemoryCounterKindRemoteMap ActivityUnifiedMemoryCounterKind = 7 // ActivityUnifiedMemoryCounterKindBytesTransferDtod: Number of bytes transferred from one device to another device. This is only supported on 64 bit Linux platforms. ActivityUnifiedMemoryCounterKindBytesTransferDtod ActivityUnifiedMemoryCounterKind = 8 ActivityUnifiedMemoryCounterKindCount ActivityUnifiedMemoryCounterKind = 9 ActivityUnifiedMemoryCounterKindForceInt ActivityUnifiedMemoryCounterKind = 0x7fffffff )
func (ActivityUnifiedMemoryCounterKind) String ¶
func (e ActivityUnifiedMemoryCounterKind) String() string
String returns the constant name, or a numeric representation for unknown values.
type ActivityUnifiedMemoryCounterScope
deprecated
type ActivityUnifiedMemoryCounterScope int32
ActivityUnifiedMemoryCounterScope represents scope of the unified memory counter.
Deprecated: Deprecated in CUDA 7.0.
const ( ActivityUnifiedMemoryCounterScopeUnknown ActivityUnifiedMemoryCounterScope = 0 // The unified memory counter scope is not known. // ActivityUnifiedMemoryCounterScopeProcessSingleDevice: Collect unified memory counter for single process on one device ActivityUnifiedMemoryCounterScopeProcessSingleDevice ActivityUnifiedMemoryCounterScope = 1 // ActivityUnifiedMemoryCounterScopeProcessAllDevices: Collect unified memory counter for single process across all devices ActivityUnifiedMemoryCounterScopeProcessAllDevices ActivityUnifiedMemoryCounterScope = 2 ActivityUnifiedMemoryCounterScopeCount ActivityUnifiedMemoryCounterScope = 3 ActivityUnifiedMemoryCounterScopeForceInt ActivityUnifiedMemoryCounterScope = 0x7fffffff )
func (ActivityUnifiedMemoryCounterScope) String ¶
func (e ActivityUnifiedMemoryCounterScope) String() string
String returns the constant name, or a numeric representation for unknown values.
type ActivityUnifiedMemoryMigrationCause ¶
type ActivityUnifiedMemoryMigrationCause int32
ActivityUnifiedMemoryMigrationCause represents migration cause of the Unified Memory counter.
This is valid for ActivityUnifiedMemoryCounterKindBytesTransferHtod and ActivityUnifiedMemoryCounterKindBytesTransferDtoh and ActivityUnifiedMemoryCounterKindBytesTransferDtod
const ( ActivityUnifiedMemoryMigrationCauseUnknown ActivityUnifiedMemoryMigrationCause = 0 // The unified memory migration cause is not known // ActivityUnifiedMemoryMigrationCauseUser: The unified memory migrated due to an explicit call from the user e.g. cudaMemPrefetchAsync ActivityUnifiedMemoryMigrationCauseUser ActivityUnifiedMemoryMigrationCause = 1 // ActivityUnifiedMemoryMigrationCauseCoherence: The unified memory migrated to guarantee data coherence e.g. CPU/GPU faults on Pascal+ and kernel launch on pre-Pascal GPUs ActivityUnifiedMemoryMigrationCauseCoherence ActivityUnifiedMemoryMigrationCause = 2 // ActivityUnifiedMemoryMigrationCausePrefetch: The unified memory was speculatively migrated by the UVM driver before being accessed by the destination processor to improve performance ActivityUnifiedMemoryMigrationCausePrefetch ActivityUnifiedMemoryMigrationCause = 3 // ActivityUnifiedMemoryMigrationCauseEviction: The unified memory migrated to the CPU because it was evicted to make room for another block of memory on the GPU ActivityUnifiedMemoryMigrationCauseEviction ActivityUnifiedMemoryMigrationCause = 4 // ActivityUnifiedMemoryMigrationCauseAccessCounters: The unified memory migrated to another processor because of access counter notifications. Only frequently accessed pages are migrated between CPU and GPU, or between peer GPUs. ActivityUnifiedMemoryMigrationCauseAccessCounters ActivityUnifiedMemoryMigrationCause = 5 )
func (ActivityUnifiedMemoryMigrationCause) String ¶
func (e ActivityUnifiedMemoryMigrationCause) String() string
String returns the constant name, or a numeric representation for unknown values.
type ActivityUnifiedMemoryRemoteMapCause ¶
type ActivityUnifiedMemoryRemoteMapCause int32
ActivityUnifiedMemoryRemoteMapCause represents remote memory map cause of the Unified Memory counter.
This is valid for ActivityUnifiedMemoryCounterKindRemoteMap
const ( ActivityUnifiedMemoryRemoteMapCauseUnknown ActivityUnifiedMemoryRemoteMapCause = 0 // The cause of mapping to remote memory was unknown // ActivityUnifiedMemoryRemoteMapCauseCoherence: Mapping to remote memory was added to maintain data coherence. ActivityUnifiedMemoryRemoteMapCauseCoherence ActivityUnifiedMemoryRemoteMapCause = 1 // ActivityUnifiedMemoryRemoteMapCauseThrashing: Mapping to remote memory was added to prevent further thrashing ActivityUnifiedMemoryRemoteMapCauseThrashing ActivityUnifiedMemoryRemoteMapCause = 2 // ActivityUnifiedMemoryRemoteMapCausePolicy: Mapping to remote memory was added to enforce the hints specified by the programmer or by performance heuristics of the UVM driver ActivityUnifiedMemoryRemoteMapCausePolicy ActivityUnifiedMemoryRemoteMapCause = 3 // ActivityUnifiedMemoryRemoteMapCauseOutOfMemory: Mapping to remote memory was added because there is no more memory available on the processor and eviction was not possible ActivityUnifiedMemoryRemoteMapCauseOutOfMemory ActivityUnifiedMemoryRemoteMapCause = 4 // ActivityUnifiedMemoryRemoteMapCauseEviction: Mapping to remote memory was added after the memory was evicted to make room for another block of memory on the GPU ActivityUnifiedMemoryRemoteMapCauseEviction ActivityUnifiedMemoryRemoteMapCause = 5 )
func (ActivityUnifiedMemoryRemoteMapCause) String ¶
func (e ActivityUnifiedMemoryRemoteMapCause) String() string
String returns the constant name, or a numeric representation for unknown values.
type ActivityUvmCounterFieldIds ¶
type ActivityUvmCounterFieldIds int32
ActivityUvmCounterFieldIds represents enum identifiers for fields in ActivityUnifiedMemoryCounter3.
Each enum value corresponds to a field in ActivityUnifiedMemoryCounter3 and describes the data type and purpose of that field.
const ( // UvmCounterFieldKind: [ActivityKind] kind; Kind of activity record: [ActivityKindUnifiedMemoryCounter]. UvmCounterFieldKind ActivityUvmCounterFieldIds = 0 // UvmCounterFieldCounterKind: [ActivityUnifiedMemoryCounterKind] counterKind; The Unified Memory counter kind. UvmCounterFieldCounterKind ActivityUvmCounterFieldIds = 1 UvmCounterFieldValue ActivityUvmCounterFieldIds = 2 // uint64_t value; Value of the counter. UvmCounterFieldStart ActivityUvmCounterFieldIds = 3 // uint64_t start; Start timestamp of the counter (in ns). UvmCounterFieldEnd ActivityUvmCounterFieldIds = 4 // uint64_t end; End timestamp of the counter (in ns). // UvmCounterFieldAddress: uint64_t address; Virtual base address of the page/s being transferred. UvmCounterFieldAddress ActivityUvmCounterFieldIds = 5 UvmCounterFieldSrcId ActivityUvmCounterFieldIds = 6 // uint32_t srcId; ID of the source CPU/device. UvmCounterFieldDstId ActivityUvmCounterFieldIds = 7 // uint32_t dstId; ID of the destination CPU/device. UvmCounterFieldStreamId ActivityUvmCounterFieldIds = 8 // uint32_t streamId; ID of the stream causing the transfer. // UvmCounterFieldProcessId: uint32_t processId; ID of the process to which this record belongs. UvmCounterFieldProcessId ActivityUvmCounterFieldIds = 9 UvmCounterFieldFlags ActivityUvmCounterFieldIds = 10 // uint32_t flags; Flags associated with this record. // UvmCounterFieldProcessors: uint64_t processors[5]; Bitmask of devices involved in the operation. UvmCounterFieldProcessors ActivityUvmCounterFieldIds = 11 )
func (ActivityUvmCounterFieldIds) String ¶
func (e ActivityUvmCounterFieldIds) String() string
String returns the constant name, or a numeric representation for unknown values.
type ApiCallbackSite ¶
type ApiCallbackSite int32
ApiCallbackSite specifies the point in an API call that a callback is issued.
Specifies the point in an API call that a callback is issued. This value is communicated to the callback function via CallbackData.callbackSite.
const ( ApiEnter ApiCallbackSite = 0 // The callback is at the entry of the API call. ApiExit ApiCallbackSite = 1 // The callback is at the exit of the API call. ApiCbsiteForceInt ApiCallbackSite = 0x7fffffff )
func (ApiCallbackSite) String ¶
func (e ApiCallbackSite) String() string
String returns the constant name, or a numeric representation for unknown values.
type BindFailure ¶
BindFailure names a symbol the loaded library exports but that could not be bound, and why.
func BindFailures ¶
func BindFailures() []BindFailure
BindFailures returns the symbols the loaded library exports that could not be bound, sorted by symbol name, or nil if every exported symbol bound. Calling one of these reports *SymbolError with the same Err.
A load that reports no error can still leave symbols unbound: the library is fine and the signatures are not representable here. Call this after Load to find that out at once rather than one call site at a time. It does not trigger a load, and returns nil if none has happened.
type BufferCallbackCompleteInfo ¶
type BufferCallbackCompleteInfo struct {
StructSize uint
ThreadId uint64
PpRecordLayouts uintptr
NumRecordLayouts uint
}
BufferCallbackCompleteInfo represents CUpti_BufferCallbackCompleteInfo.
type BufferCallbackRequestInfo ¶
type BufferCallbackRequestInfo struct {
StructSize uint
}
BufferCallbackRequestInfo represents CUpti_BufferCallbackRequestInfo.
type BuffersCallbackCompleteFunc ¶
type BuffersCallbackCompleteFunc func(context driver.Context, streamId uint32, buffer uintptr, size uint, validSize uint)
BuffersCallbackCompleteFunc is the Go form of CUpti_BuffersCallbackCompleteFunc.
It corresponds to the C signature
typedef void (CUPTIAPI *CUpti_BuffersCallbackCompleteFunc)(CUcontext context, uint32_t streamId, uint8_t *buffer, size_t size, size_t validSize);
Pass one to the API by converting it with purego.NewCallback, which is why every pointer argument is a uintptr rather than a Go pointer: the memory belongs to the C library and must not be traced by the collector.
type BuffersCallbackCompleteFuncV2 ¶
type BuffersCallbackCompleteFuncV2 func(buffer uintptr, size uint, validSize uint, pBufferCompleteInfo uintptr)
BuffersCallbackCompleteFuncV2 is the Go form of CUpti_BuffersCallbackCompleteFunc_v2.
It corresponds to the C signature
typedef void (CUPTIAPI *CUpti_BuffersCallbackCompleteFunc_v2)(uint8_t *buffer, size_t size, size_t validSize, CUpti_BufferCallbackCompleteInfo *pBufferCompleteInfo);
Pass one to the API by converting it with purego.NewCallback, which is why every pointer argument is a uintptr rather than a Go pointer: the memory belongs to the C library and must not be traced by the collector.
type BuffersCallbackRequestFunc ¶
BuffersCallbackRequestFunc is the Go form of CUpti_BuffersCallbackRequestFunc.
It corresponds to the C signature
typedef void (CUPTIAPI *CUpti_BuffersCallbackRequestFunc)(uint8_t **buffer, size_t *size, size_t *maxNumRecords);
Pass one to the API by converting it with purego.NewCallback, which is why every pointer argument is a uintptr rather than a Go pointer: the memory belongs to the C library and must not be traced by the collector.
type BuffersCallbackRequestFuncV2 ¶
type BuffersCallbackRequestFuncV2 func(buffer uintptr, size uintptr, maxNumRecords uintptr, pBufferRequestInfo uintptr)
BuffersCallbackRequestFuncV2 is the Go form of CUpti_BuffersCallbackRequestFunc_v2.
It corresponds to the C signature
typedef void (CUPTIAPI *CUpti_BuffersCallbackRequestFunc_v2)(uint8_t **buffer, size_t *size, size_t *maxNumRecords, CUpti_BufferCallbackRequestInfo *pBufferRequestInfo);
Pass one to the API by converting it with purego.NewCallback, which is why every pointer argument is a uintptr rather than a Go pointer: the memory belongs to the C library and must not be traced by the collector.
type CacheControlMode ¶
type CacheControlMode int32
CacheControlMode represents cache control modes for Range Profiler replay passes.
Cache control resets supported GPU cache state before each profiling pass so replayed passes start from comparable cache state. The default is NONE so zero-initialized enable parameters preserve previous behavior. Currently, L2 cache state is supported. Since CUDA 13.4.
const ( // CacheControlModeNone: Disable cache control. Replay passes may observe cache state from earlier passes, matching behavior before this field was added. CacheControlModeNone CacheControlMode = 0 // CacheControlModeAll: Reset all cache state supported by this CUPTI version before each pass. Currently, this resets supported L2 cache state. CacheControlModeAll CacheControlMode = 1 CacheControlModeL2 CacheControlMode = 2 // Reset supported L2 cache state before each pass. CacheControlModeForceInt CacheControlMode = 0x7fffffff )
func (CacheControlMode) String ¶
func (e CacheControlMode) String() string
String returns the constant name, or a numeric representation for unknown values.
type CallError ¶
CallError reports that a library call returned a failure result.
Unwrap returns Result, so errors.Is(err, c) reports whether the call returned the Result constant c, and errors.As(err, &r) with r of type Result recovers the code.
type CallbackData ¶
type CallbackData struct {
CallbackSite ApiCallbackSite
FunctionName uintptr
// Points to the parameter layout of the loaded CUDA release. In CUDA 13.0, cudaGraphKernelNodeCopyAttributes_v11000_params swaps hSrc and hDst.
FunctionParams uintptr
FunctionReturnValue uintptr
SymbolName uintptr
Context driver.Context
ContextUid uint32
CorrelationData uintptr
CorrelationId uint32
}
CallbackData represents data passed into a runtime or driver API callback function.
Data passed into a runtime or driver API callback function as the cbdata argument to CallbackFunc. The cbdata will be this type for domain equal to CbDomainDriverApi or CbDomainRuntimeApi. The callback data is valid only within the invocation of the callback function that is passed the data. If you need to retain some data for use outside of the callback, you must make a copy of that data. For example, if you make a shallow copy of CallbackData within a callback, you cannot dereference functionParams outside of that callback to access the function parameters. functionName is an exception: the string pointed to by functionName is a global constant and so may be accessed outside of the callback.
type CallbackDomain ¶
type CallbackDomain int32
CallbackDomain represents callback domains.
Callback domains. Each domain represents callback points for a group of related API functions or CUDA driver activity.
const ( CbDomainInvalid CallbackDomain = 0 // Invalid domain. // CbDomainDriverApi: Domain containing callback points for all driver API functions. CbDomainDriverApi CallbackDomain = 1 // CbDomainRuntimeApi: Domain containing callback points for all runtime API functions. CbDomainRuntimeApi CallbackDomain = 2 // CbDomainResource: Domain containing callback points for CUDA resource tracking. CbDomainResource CallbackDomain = 3 CbDomainSynchronize CallbackDomain = 4 // Domain containing callback points for CUDA synchronization. CbDomainNvtx CallbackDomain = 5 // Domain containing callback points for NVTX API functions. CbDomainState CallbackDomain = 6 // Domain containing callback points for various states. CbDomainSize CallbackDomain = 7 CbDomainForceInt CallbackDomain = 0x7fffffff )
func (CallbackDomain) String ¶
func (e CallbackDomain) String() string
String returns the constant name, or a numeric representation for unknown values.
type CallbackFunc ¶
type CallbackFunc func(userdata uintptr, domain CallbackDomain, cbid uint32, cbdata uintptr)
CallbackFunc is the Go form of CUpti_CallbackFunc.
It corresponds to the C signature
typedef void (CUPTIAPI *CUpti_CallbackFunc)(void *userdata, CUpti_CallbackDomain domain, CUpti_CallbackId cbid, const void *cbdata);
Pass one to the API by converting it with purego.NewCallback, which is why every pointer argument is a uintptr rather than a Go pointer: the memory belongs to the C library and must not be traced by the collector.
type CallbackIdResource ¶
type CallbackIdResource int32
CallbackIdResource represents callback IDs for resource domain.
Callback IDs for resource domain, CbDomainResource. This value is communicated to the callback function via the cbid parameter.
const ( CbidResourceInvalid CallbackIdResource = 0 // Invalid resource callback ID. CbidResourceContextCreated CallbackIdResource = 1 // A new context has been created. CbidResourceContextDestroyStarting CallbackIdResource = 2 // A context is about to be destroyed. CbidResourceStreamCreated CallbackIdResource = 3 // A new stream has been created. CbidResourceStreamDestroyStarting CallbackIdResource = 4 // A stream is about to be destroyed. CbidResourceCuInitFinished CallbackIdResource = 5 // The driver has finished initializing. CbidResourceModuleLoaded CallbackIdResource = 6 // A module has been loaded. CbidResourceModuleUnloadStarting CallbackIdResource = 7 // A module is about to be unloaded. CbidResourceModuleProfiled CallbackIdResource = 8 // The current module which is being profiled. CbidResourceGraphCreated CallbackIdResource = 9 // CUDA graph has been created. CbidResourceGraphDestroyStarting CallbackIdResource = 10 // CUDA graph is about to be destroyed. CbidResourceGraphCloned CallbackIdResource = 11 // CUDA graph is cloned. CbidResourceGraphnodeCreateStarting CallbackIdResource = 12 // CUDA graph node is about to be created CbidResourceGraphnodeCreated CallbackIdResource = 13 // CUDA graph node is created. CbidResourceGraphnodeDestroyStarting CallbackIdResource = 14 // CUDA graph node is about to be destroyed. CbidResourceGraphnodeDependencyCreated CallbackIdResource = 15 // Dependency on a CUDA graph node is created. CbidResourceGraphnodeDependencyDestroyStarting CallbackIdResource = 16 // Dependency on a CUDA graph node is destroyed. CbidResourceGraphexecCreateStarting CallbackIdResource = 17 // An executable CUDA graph is about to be created. CbidResourceGraphexecCreated CallbackIdResource = 18 // An executable CUDA graph is created. CbidResourceGraphexecDestroyStarting CallbackIdResource = 19 // An executable CUDA graph is about to be destroyed. CbidResourceGraphnodeCloned CallbackIdResource = 20 // CUDA graph node is cloned. CbidResourceStreamAttributeChanged CallbackIdResource = 21 // CUDA stream attribute is changed. CbidResourceGraphNodeUpdated CallbackIdResource = 22 // CUDA graph node is updated. // CbidResourceGraphNodeSetParams: Params are set for the CUDA graph node in the executable graph. CbidResourceGraphNodeSetParams CallbackIdResource = 23 // CbidResourceLogicalEndpointCreated: A logical endpoint has been created. The resource data is of type [LogicalEndpointResourceData]. CbidResourceLogicalEndpointCreated CallbackIdResource = 24 // CbidResourceLogicalEndpointDestroyed: A logical endpoint is about to be destroyed. The resource data is of type [LogicalEndpointResourceData]. CbidResourceLogicalEndpointDestroyed CallbackIdResource = 25 CbidResourceSize CallbackIdResource = 26 CbidResourceForceInt CallbackIdResource = 0x7fffffff )
func (CallbackIdResource) String ¶
func (e CallbackIdResource) String() string
String returns the constant name, or a numeric representation for unknown values.
type CallbackIdState ¶
type CallbackIdState int32
CallbackIdState represents callback IDs for state domain.
Callback IDs for state domain, CbDomainState. This value is communicated to the callback function via the cbid parameter.
const ( CbidStateInvalid CallbackIdState = 0 // Invalid state callback ID. // CbidStateFatalError: Notification of fatal errors - high impact, non-recoverable When encountered, CUPTI automatically invokes [Finalize] User can control behavior of the application in future from receiving this callback - such as continuing without profiling, or terminating the whole application. CbidStateFatalError CallbackIdState = 1 // CbidStateError: Notification of non fatal errors - high impact, but recoverable CbidStateError CallbackIdState = 2 // CbidStateWarning: Notification of warnings - low impact, recoverable. This callback can be invoked on CUPTI's internal worker thread, since some warnings are raised while that thread populates activity records. The handler should not call CUPTI APIs which block until an activity flush completes, such as [ActivityFlushAll]. When the handler runs on the worker thread, such a call cannot wait for the thread which invoked it, so the flush is only requested and may not have happened by the time the call returns. CbidStateWarning CallbackIdState = 3 CbidStateSize CallbackIdState = 4 CbidStateForceInt CallbackIdState = 0x7fffffff )
func (CallbackIdState) String ¶
func (e CallbackIdState) String() string
String returns the constant name, or a numeric representation for unknown values.
type CallbackIdSync ¶
type CallbackIdSync int32
CallbackIdSync represents callback IDs for synchronization domain.
Callback IDs for synchronization domain, CbDomainSynchronize. This value is communicated to the callback function via the cbid parameter.
const ( CbidSynchronizeInvalid CallbackIdSync = 0 // Invalid synchronize callback ID. CbidSynchronizeStreamSynchronized CallbackIdSync = 1 // Stream synchronization has completed for the stream. CbidSynchronizeContextSynchronized CallbackIdSync = 2 // Context synchronization has completed for the context. CbidSynchronizeSize CallbackIdSync = 3 CbidSynchronizeForceInt CallbackIdSync = 0x7fffffff )
func (CallbackIdSync) String ¶
func (e CallbackIdSync) String() string
String returns the constant name, or a numeric representation for unknown values.
type ChannelType ¶
type ChannelType int32
ChannelType specifies the channel type (CUpti_ChannelType).
const ( ChannelTypeInvalid ChannelType = 0 ChannelTypeCompute ChannelType = 1 // Channel is used for standard work launch and tracking // ChannelTypeAsyncMemcpy: Channel is used by an asynchronous copy engine For confidential compute configurations, work launch and completion are done using the copy engines. ChannelTypeAsyncMemcpy ChannelType = 2 ChannelTypeDecomp ChannelType = 3 // Channel is used for memory decompression operations. ChannelTypeForceInt ChannelType = 0x7fffffff )
func (ChannelType) String ¶
func (e ChannelType) String() string
String returns the constant name, or a numeric representation for unknown values.
type Checkpoint ¶
type Checkpoint struct {
StructSize uint
Ctx driver.Context
ReserveDeviceMB uint
ReserveHostMB uint
AllowOverwrite uint8
Optimizations uint8
PPriv uintptr
}
Checkpoint represents configuration and handle for a CUPTI Checkpoint.
A CUptiCheckpoint object should be initialized with desired options prior to passing into any CUPTI Checkpoint API function. The first call into a Checkpoint API function will initialize internal state based on these options. Subsequent changes to these options will not have any effect. Checkpoint data is saved in device, host, and filesystem space. There are options to reserve memory at each level (device, host, filesystem) which are intended to allow a guarantee that a certain amount of memory will remain free for use after the checkpoint is saved. Note, however, that falling back to slower levels of memory (host, and then filesystem) to save the checkpoint will result in performance degradation. Currently, the filesystem limitation is not implemented. Note that falling back to filesystem storage may significantly impact the performance for saving and restoring a checkpoint.
type CheckpointOptimizations ¶
type CheckpointOptimizations int32
CheckpointOptimizations specifies optimization options for a checkpoint, may be OR'd together to specify multiple options.
const ( CheckpointOptNone CheckpointOptimizations = 0 // Default behavior // CheckpointOptTransfer: Determine which mem blocks have changed, and only restore those. This optimization is cached, which means [CheckpointRestore] must always be called at the same point in the application when this option is enabled, or the result may be incorrect. CheckpointOptTransfer CheckpointOptimizations = 1 )
func (CheckpointOptimizations) String ¶
func (e CheckpointOptimizations) String() string
String returns the constant name, or a numeric representation for unknown values.
type ClockControlMode ¶
type ClockControlMode int32
ClockControlMode represents clock control modes.
Determines the frequency to which GPU clocks are pinned for a profiling session. Locking clocks produces reproducible metric values across kernel launches and replay passes. Clock locking is device-global -- affects all contexts on the GPU. It is not supported on platforms where the underlying driver clock-control operation is unavailable, such as MIG-partitioned devices. Clock control is currently supported on Windows and Linux desktop platforms; on all other platforms the clock-control APIs return ErrNotSupported. Tegra SoC GPUs do not support clock control either, and report the same error regardless of which platform build of CUPTI is used to profile them. To skip clock locking entirely, simply do not call ClockControlLock. Numeric values start at 1 so that an uninitialized / zero-valued ClockControlMode is rejected with ErrInvalidParameter rather than silently locking clocks. \since CUDA 13.4.
const ( // ClockControlModeBase: Lock GPU clocks to the base (rated TDP) frequency. Exact clock domains that are pinned may depend on the driver and board configuration. ClockControlModeBase ClockControlMode = 1 // ClockControlModeBoost: Lock GPU clocks to the boost frequency. Returns an error if boost locking is not supported by the driver or platform -- no automatic fallback to base. Clients that want a fallback can retry with [ClockControlModeBase] on error. ClockControlModeBoost ClockControlMode = 2 ClockControlModeForceInt ClockControlMode = 0x7fffffff )
func (ClockControlMode) String ¶
func (e ClockControlMode) String() string
String returns the constant name, or a numeric representation for unknown values.
type ClockControlStatus ¶
type ClockControlStatus int32
ClockControlStatus represents device clock-control status.
This status describes the device-global clock-control state reported by the driver for the GPU associated with a CUDA context. It does not describe CUPTI ownership. For example, ClockControlStatusLocked can be returned for a lock created by CUPTI, by another profiling tool, or by an administrator through an external mechanism such as nvidia-smi. Tools can query this state before calling ClockControlLock to make an informed policy decision. A common use case is MIG: CUPTI cannot create a new clock lock on MIG-partitioned devices, but a tool may still choose to run if this API reports that clocks are already externally locked. A status of ClockControlStatusUnlocked only means the driver currently reports no explicit clock lock. It does not guarantee fixed, deterministic, or non-boosting clocks. \since CUDA 13.4.
const ( ClockControlStatusUnlocked ClockControlStatus = 1 // The driver reports no explicit clock lock for this device. // ClockControlStatusLocked: The driver reports that clocks are locked to a fixed level. This may be a CUPTI-owned lock or an externally-created lock. ClockControlStatusLocked ClockControlStatus = 2 // ClockControlStatusLockedToFloor: The driver reports that clocks are locked to a floor/minimum level. ClockControlStatusLockedToFloor ClockControlStatus = 3 // ClockControlStatusBoostEnabled: The driver reports that boost behavior is enabled by clock control. ClockControlStatusBoostEnabled ClockControlStatus = 4 // ClockControlStatusBoostDisabled: The driver reports that boost behavior is disabled by clock control. ClockControlStatusBoostDisabled ClockControlStatus = 5 ClockControlStatusForceInt ClockControlStatus = 0x7fffffff )
func (ClockControlStatus) String ¶
func (e ClockControlStatus) String() string
String returns the constant name, or a numeric representation for unknown values.
type ComputeCrcCallbackFunc ¶
ComputeCrcCallbackFunc is the Go form of CUpti_ComputeCrcCallbackFunc.
It corresponds to the C signature
typedef void (CUPTIAPI *CUpti_ComputeCrcCallbackFunc)(const void* cubin, size_t cubinSize, uint64_t *cubinCrc);
Pass one to the API by converting it with purego.NewCallback, which is why every pointer argument is a uintptr rather than a Go pointer: the memory belongs to the C library and must not be traced by the collector.
type ComputeEngineCtxSwitchOperationType ¶
type ComputeEngineCtxSwitchOperationType int32
ComputeEngineCtxSwitchOperationType represents the operation type of CUDA context switch event records.
const ( ComputeEngineCtxSwitchOperationInvalid ComputeEngineCtxSwitchOperationType = 0 ComputeEngineCtxSwitchOperationStart ComputeEngineCtxSwitchOperationType = 1 // The start of the CUDA context switch operation. ComputeEngineCtxSwitchOperationEnd ComputeEngineCtxSwitchOperationType = 2 // The end of the CUDA context switch operation. ComputeEngineCtxSwitchOperationCount ComputeEngineCtxSwitchOperationType = 0x7fffffff )
func (ComputeEngineCtxSwitchOperationType) String ¶
func (e ComputeEngineCtxSwitchOperationType) String() string
String returns the constant name, or a numeric representation for unknown values.
type ConfidentialComputeRotationEventType ¶
type ConfidentialComputeRotationEventType int32
ConfidentialComputeRotationEventType specifies the confidential compute rotation event type (CUpti_ConfidentialComputeRotationEventType).
const ( ConfidentialComputeInvalidRotationEvent ConfidentialComputeRotationEventType = 0 // ConfidentialComputeKeyRotationChannelBlocked: This channel has been blocked from accepting new CUDA work so a key rotation can be done. ConfidentialComputeKeyRotationChannelBlocked ConfidentialComputeRotationEventType = 1 // ConfidentialComputeKeyRotationChannelDrained: This channel remains blocked and all queued CUDA work has completed. Other clients or channels may cause delays in starting the key rotation. ConfidentialComputeKeyRotationChannelDrained ConfidentialComputeRotationEventType = 2 ConfidentialComputeKeyRotationChannelUnblocked ConfidentialComputeRotationEventType = 3 // Key rotations have completed and this channel is unblocked. ConfidentialComputeEventTypeForceInt ConfidentialComputeRotationEventType = 0x7fffffff )
func (ConfidentialComputeRotationEventType) String ¶
func (e ConfidentialComputeRotationEventType) String() string
String returns the constant name, or a numeric representation for unknown values.
type ContextCigMode ¶
type ContextCigMode int32
ContextCigMode represents CIG (CUDA in Graphics) Modes.
Describes the CIG modes associated with the CUDA context.
const ( ContextCigModeNone ContextCigMode = 0 // Regular (non-CIG) mode ContextCigModeCig ContextCigMode = 1 // CIG mode. ContextCigModeCigFallback ContextCigMode = 2 // CIG fallback mode. ContextCigModeForceInt ContextCigMode = 0x7fffffff )
func (ContextCigMode) String ¶
func (e ContextCigMode) String() string
String returns the constant name, or a numeric representation for unknown values.
type DevType ¶
type DevType int32
DevType represents the device type for device connected to NVLink.
type DeviceAttribute ¶
type DeviceAttribute int32
DeviceAttribute represents device attributes.
CUPTI device attributes. These attributes can be read using DeviceGetAttribute.
const ( DeviceAttrMaxEventId DeviceAttribute = 1 // Number of event IDs for a device. Value is a uint32_t. // DeviceAttrMaxEventDomainId: Number of event domain IDs for a device. Value is a uint32_t. DeviceAttrMaxEventDomainId DeviceAttribute = 2 // DeviceAttrGlobalMemoryBandwidth: Get global memory bandwidth in Kbytes/sec. Value is a uint64_t. DeviceAttrGlobalMemoryBandwidth DeviceAttribute = 3 // DeviceAttrInstructionPerCycle: Get theoretical maximum number of instructions per cycle. Value is a uint32_t. DeviceAttrInstructionPerCycle DeviceAttribute = 4 // DeviceAttrInstructionThroughputSinglePrecision: Get theoretical maximum number of single precision instructions that can be executed per second. Value is a uint64_t. DeviceAttrInstructionThroughputSinglePrecision DeviceAttribute = 5 DeviceAttrMaxFrameBuffers DeviceAttribute = 6 // Get number of frame buffers for device. Value is a uint64_t. // DeviceAttrPcieLinkRate: Get PCIE link rate in Mega bits/sec for device. Return 0 if bus-type is non-PCIE. Value is a uint64_t. DeviceAttrPcieLinkRate DeviceAttribute = 7 // DeviceAttrPcieLinkWidth: Get PCIE link width for device. Return 0 if bus-type is non-PCIE. Value is a uint64_t. DeviceAttrPcieLinkWidth DeviceAttribute = 8 // DeviceAttrPcieGen: Get PCIE generation for device. Return 0 if bus-type is non-PCIE. Value is a uint64_t. DeviceAttrPcieGen DeviceAttribute = 9 // DeviceAttrDeviceClass: Get the class for the device. Value is a [DeviceAttributeDeviceClass]. DeviceAttrDeviceClass DeviceAttribute = 10 // DeviceAttrFlopSpPerCycle: Get the peak single precision flop per cycle. Value is a uint64_t. DeviceAttrFlopSpPerCycle DeviceAttribute = 11 // DeviceAttrFlopDpPerCycle: Get the peak double precision flop per cycle. Value is a uint64_t. DeviceAttrFlopDpPerCycle DeviceAttribute = 12 DeviceAttrMaxL2Units DeviceAttribute = 13 // Get number of L2 units. Value is a uint64_t. DeviceAttrMaxSharedMemoryCacheConfigPreferShared DeviceAttribute = 14 DeviceAttrMaxSharedMemoryCacheConfigPreferL1 DeviceAttribute = 15 DeviceAttrMaxSharedMemoryCacheConfigPreferEqual DeviceAttribute = 16 // DeviceAttrFlopHpPerCycle: Get the peak half precision flop per cycle. Value is a uint64_t. DeviceAttrFlopHpPerCycle DeviceAttribute = 17 // DeviceAttrNvlinkPresent: Check if Nvlink is connected to device. Returns 1, if at least one Nvlink is connected to the device, returns 0 otherwise. Value is a uint32_t. DeviceAttrNvlinkPresent DeviceAttribute = 18 // DeviceAttrGpuCpuNvlinkBw: Check if Nvlink is present between GPU and CPU. Returns Bandwidth, in Bytes/sec, if Nvlink is present, returns 0 otherwise. Value is a uint64_t. DeviceAttrGpuCpuNvlinkBw DeviceAttribute = 19 // DeviceAttrNvswitchPresent: Check if NVSwitch is present in the underlying topology. Returns 1, if present, returns 0 otherwise. Value is a uint32_t. DeviceAttrNvswitchPresent DeviceAttribute = 20 DeviceAttrForceInt DeviceAttribute = 0x7fffffff )
func (DeviceAttribute) String ¶
func (e DeviceAttribute) String() string
String returns the constant name, or a numeric representation for unknown values.
type DeviceAttributeDeviceClass ¶
type DeviceAttributeDeviceClass int32
DeviceAttributeDeviceClass represents device class.
Enumeration of device classes for device attribute DeviceAttrDeviceClass.
const ( DeviceAttrDeviceClassTesla DeviceAttributeDeviceClass = 0 DeviceAttrDeviceClassQuadro DeviceAttributeDeviceClass = 1 DeviceAttrDeviceClassGeforce DeviceAttributeDeviceClass = 2 DeviceAttrDeviceClassTegra DeviceAttributeDeviceClass = 3 )
func (DeviceAttributeDeviceClass) String ¶
func (e DeviceAttributeDeviceClass) String() string
String returns the constant name, or a numeric representation for unknown values.
type DeviceGetChipNameParams ¶
type DeviceGetChipNameParams struct {
StructSize uint
PPriv uintptr
DeviceIndex uint
PChipName uintptr
}
DeviceGetChipNameParams represents CUpti_Device_GetChipName_Params.
type DeviceGraphLaunchMode ¶
type DeviceGraphLaunchMode int32
DeviceGraphLaunchMode represents the launch mode for device graph execution.
const ( DeviceGraphLaunchModeInvalid DeviceGraphLaunchMode = 0 DeviceGraphLaunchModeFireAndForget DeviceGraphLaunchMode = 1 DeviceGraphLaunchModeTail DeviceGraphLaunchMode = 2 DeviceGraphLaunchModeFireAndForgetAsSibling DeviceGraphLaunchMode = 3 )
func (DeviceGraphLaunchMode) String ¶
func (e DeviceGraphLaunchMode) String() string
String returns the constant name, or a numeric representation for unknown values.
type Dim3 ¶
type Dim3 struct {
X, Y, Z uint32
}
Dim3 is an extent along X, Y and Z, such as the size of a grid in blocks or of a block in threads. It has the layout of three consecutive unsigned int members.
type DriverTraceCBID ¶
type DriverTraceCBID int32
DriverTraceCBID specifies the driver trace cbid (CUpti_driver_api_trace_cbid).
const ( DriverCBIDInvalid DriverTraceCBID = 0 DriverCBIDCuInit DriverTraceCBID = 1 DriverCBIDCuDriverGetVersion DriverTraceCBID = 2 DriverCBIDCuDeviceGet DriverTraceCBID = 3 DriverCBIDCuDeviceGetCount DriverTraceCBID = 4 DriverCBIDCuDeviceGetName DriverTraceCBID = 5 DriverCBIDCuDeviceComputeCapability DriverTraceCBID = 6 DriverCBIDCuDeviceTotalMem DriverTraceCBID = 7 DriverCBIDCuDeviceGetProperties DriverTraceCBID = 8 DriverCBIDCuDeviceGetAttribute DriverTraceCBID = 9 DriverCBIDCuCtxCreate DriverTraceCBID = 10 DriverCBIDCuCtxDestroy DriverTraceCBID = 11 DriverCBIDCuCtxAttach DriverTraceCBID = 12 DriverCBIDCuCtxDetach DriverTraceCBID = 13 DriverCBIDCuCtxPushCurrent DriverTraceCBID = 14 DriverCBIDCuCtxPopCurrent DriverTraceCBID = 15 DriverCBIDCuCtxGetDevice DriverTraceCBID = 16 DriverCBIDCuCtxSynchronize DriverTraceCBID = 17 DriverCBIDCuModuleLoad DriverTraceCBID = 18 DriverCBIDCuModuleLoadData DriverTraceCBID = 19 DriverCBIDCuModuleLoadDataEx DriverTraceCBID = 20 DriverCBIDCuModuleLoadFatBinary DriverTraceCBID = 21 DriverCBIDCuModuleUnload DriverTraceCBID = 22 DriverCBIDCuModuleGetFunction DriverTraceCBID = 23 DriverCBIDCuModuleGetGlobal DriverTraceCBID = 24 DriverCBIDCuda25 DriverTraceCBID = 25 DriverCBIDCuModuleGetTexRef DriverTraceCBID = 26 DriverCBIDCuMemGetInfo DriverTraceCBID = 27 DriverCBIDCuda28 DriverTraceCBID = 28 DriverCBIDCuMemAlloc DriverTraceCBID = 29 DriverCBIDCuda30 DriverTraceCBID = 30 DriverCBIDCuMemAllocPitch DriverTraceCBID = 31 DriverCBIDCuda32 DriverTraceCBID = 32 DriverCBIDCuMemFree DriverTraceCBID = 33 DriverCBIDCuda34 DriverTraceCBID = 34 DriverCBIDCuMemGetAddressRange DriverTraceCBID = 35 DriverCBIDCuda36 DriverTraceCBID = 36 DriverCBIDCuMemAllocHost DriverTraceCBID = 37 DriverCBIDCuMemFreeHost DriverTraceCBID = 38 DriverCBIDCuMemHostAlloc DriverTraceCBID = 39 DriverCBIDCuMemHostGetDevicePointer DriverTraceCBID = 40 DriverCBIDCuda41 DriverTraceCBID = 41 DriverCBIDCuMemHostGetFlags DriverTraceCBID = 42 DriverCBIDCuMemcpyHtoD DriverTraceCBID = 43 DriverCBIDCuda44 DriverTraceCBID = 44 DriverCBIDCuMemcpyDtoH DriverTraceCBID = 45 DriverCBIDCuda46 DriverTraceCBID = 46 DriverCBIDCuMemcpyDtoD DriverTraceCBID = 47 DriverCBIDCuda48 DriverTraceCBID = 48 DriverCBIDCuMemcpyDtoA DriverTraceCBID = 49 DriverCBIDCuda50 DriverTraceCBID = 50 DriverCBIDCuMemcpyAtoD DriverTraceCBID = 51 DriverCBIDCuda52 DriverTraceCBID = 52 DriverCBIDCuMemcpyHtoA DriverTraceCBID = 53 DriverCBIDCuMemcpyAtoH DriverTraceCBID = 54 DriverCBIDCuMemcpyAtoA DriverTraceCBID = 55 DriverCBIDCuMemcpy2D DriverTraceCBID = 56 DriverCBIDCuMemcpy2DUnaligned DriverTraceCBID = 57 DriverCBIDCuMemcpy3D DriverTraceCBID = 58 DriverCBIDCuda59 DriverTraceCBID = 59 DriverCBIDCuMemcpyHtoDAsync DriverTraceCBID = 60 DriverCBIDCuda61 DriverTraceCBID = 61 DriverCBIDCuMemcpyDtoHAsync DriverTraceCBID = 62 DriverCBIDCuda63 DriverTraceCBID = 63 DriverCBIDCuMemcpyDtoDAsync DriverTraceCBID = 64 DriverCBIDCuda65 DriverTraceCBID = 65 DriverCBIDCuMemcpyHtoAAsync DriverTraceCBID = 66 DriverCBIDCuMemcpyAtoHAsync DriverTraceCBID = 67 DriverCBIDCuMemcpy2DAsync DriverTraceCBID = 68 DriverCBIDCuMemcpy3DAsync DriverTraceCBID = 69 DriverCBIDCuda70 DriverTraceCBID = 70 DriverCBIDCuMemsetD8 DriverTraceCBID = 71 DriverCBIDCuda72 DriverTraceCBID = 72 DriverCBIDCuMemsetD16 DriverTraceCBID = 73 DriverCBIDCuda74 DriverTraceCBID = 74 DriverCBIDCuMemsetD32 DriverTraceCBID = 75 DriverCBIDCuda76 DriverTraceCBID = 76 DriverCBIDCuMemsetD2D8 DriverTraceCBID = 77 DriverCBIDCuda78 DriverTraceCBID = 78 DriverCBIDCuMemsetD2D16 DriverTraceCBID = 79 DriverCBIDCuda80 DriverTraceCBID = 80 DriverCBIDCuMemsetD2D32 DriverTraceCBID = 81 DriverCBIDCuda82 DriverTraceCBID = 82 DriverCBIDCuFuncSetBlockShape DriverTraceCBID = 83 DriverCBIDCuFuncGetAttribute DriverTraceCBID = 85 DriverCBIDCuFuncSetCacheConfig DriverTraceCBID = 86 DriverCBIDCuArrayCreate DriverTraceCBID = 87 DriverCBIDCuArrayGetDescriptor DriverTraceCBID = 88 DriverCBIDCuArrayDestroy DriverTraceCBID = 89 DriverCBIDCuArray3DCreate DriverTraceCBID = 90 DriverCBIDCuArray3DGetDescriptor DriverTraceCBID = 91 DriverCBIDCuTexRefCreate DriverTraceCBID = 92 DriverCBIDCuTexRefDestroy DriverTraceCBID = 93 DriverCBIDCuTexRefSetArray DriverTraceCBID = 94 DriverCBIDCuTexRefSetAddress DriverTraceCBID = 95 DriverCBIDCuda96 DriverTraceCBID = 96 DriverCBIDCuTexRefSetAddress2D DriverTraceCBID = 97 DriverCBIDCuda98 DriverTraceCBID = 98 DriverCBIDCuTexRefSetFormat DriverTraceCBID = 99 DriverCBIDCuTexRefSetAddressMode DriverTraceCBID = 100 DriverCBIDCuTexRefSetFilterMode DriverTraceCBID = 101 DriverCBIDCuTexRefSetFlags DriverTraceCBID = 102 DriverCBIDCuTexRefGetAddress DriverTraceCBID = 103 DriverCBIDCuda104 DriverTraceCBID = 104 DriverCBIDCuTexRefGetArray DriverTraceCBID = 105 DriverCBIDCuTexRefGetAddressMode DriverTraceCBID = 106 DriverCBIDCuTexRefGetFilterMode DriverTraceCBID = 107 DriverCBIDCuTexRefGetFormat DriverTraceCBID = 108 DriverCBIDCuTexRefGetFlags DriverTraceCBID = 109 DriverCBIDCuParamSetSize DriverTraceCBID = 110 DriverCBIDCuParamSeti DriverTraceCBID = 111 DriverCBIDCuParamSetf DriverTraceCBID = 112 DriverCBIDCuParamSetv DriverTraceCBID = 113 DriverCBIDCuParamSetTexRef DriverTraceCBID = 114 DriverCBIDCuLaunch DriverTraceCBID = 115 DriverCBIDCuLaunchGrid DriverTraceCBID = 116 DriverCBIDCuLaunchGridAsync DriverTraceCBID = 117 DriverCBIDCuEventCreate DriverTraceCBID = 118 DriverCBIDCuEventRecord DriverTraceCBID = 119 DriverCBIDCuEventQuery DriverTraceCBID = 120 DriverCBIDCuEventSynchronize DriverTraceCBID = 121 DriverCBIDCuEventDestroy DriverTraceCBID = 122 DriverCBIDCuEventElapsedTime DriverTraceCBID = 123 DriverCBIDCuStreamCreate DriverTraceCBID = 124 DriverCBIDCuStreamQuery DriverTraceCBID = 125 DriverCBIDCuStreamSynchronize DriverTraceCBID = 126 DriverCBIDCuStreamDestroy DriverTraceCBID = 127 DriverCBIDCuGraphicsUnregisterResource DriverTraceCBID = 128 DriverCBIDCuGraphicsSubResourceGetMappedArray DriverTraceCBID = 129 DriverCBIDCuGraphicsResourceGetMappedPointer DriverTraceCBID = 130 DriverCBIDCuda131 DriverTraceCBID = 131 DriverCBIDCuGraphicsResourceSetMapFlags DriverTraceCBID = 132 DriverCBIDCuGraphicsMapResources DriverTraceCBID = 133 DriverCBIDCuGraphicsUnmapResources DriverTraceCBID = 134 DriverCBIDCuGetExportTable DriverTraceCBID = 135 DriverCBIDCuCtxSetLimit DriverTraceCBID = 136 DriverCBIDCuCtxGetLimit DriverTraceCBID = 137 DriverCBIDCuD3D10GetDevice DriverTraceCBID = 138 DriverCBIDCuD3D10CtxCreate DriverTraceCBID = 139 DriverCBIDCuGraphicsD3D10RegisterResource DriverTraceCBID = 140 DriverCBIDCuD3D10RegisterResource DriverTraceCBID = 141 DriverCBIDCuD3D10UnregisterResource DriverTraceCBID = 142 DriverCBIDCuD3D10MapResources DriverTraceCBID = 143 DriverCBIDCuD3D10UnmapResources DriverTraceCBID = 144 DriverCBIDCuD3D10ResourceSetMapFlags DriverTraceCBID = 145 DriverCBIDCuD3D10ResourceGetMappedArray DriverTraceCBID = 146 DriverCBIDCuD3D10ResourceGetMappedPointer DriverTraceCBID = 147 DriverCBIDCuD3D10ResourceGetMappedSize DriverTraceCBID = 148 DriverCBIDCuD3D10ResourceGetMappedPitch DriverTraceCBID = 149 DriverCBIDCuD3D10ResourceGetSurfaceDimensions DriverTraceCBID = 150 DriverCBIDCuD3D11GetDevice DriverTraceCBID = 151 DriverCBIDCuD3D11CtxCreate DriverTraceCBID = 152 DriverCBIDCuGraphicsD3D11RegisterResource DriverTraceCBID = 153 DriverCBIDCuD3D9GetDevice DriverTraceCBID = 154 DriverCBIDCuD3D9CtxCreate DriverTraceCBID = 155 DriverCBIDCuGraphicsD3D9RegisterResource DriverTraceCBID = 156 DriverCBIDCuD3D9GetDirect3DDevice DriverTraceCBID = 157 DriverCBIDCuD3D9RegisterResource DriverTraceCBID = 158 DriverCBIDCuD3D9UnregisterResource DriverTraceCBID = 159 DriverCBIDCuD3D9MapResources DriverTraceCBID = 160 DriverCBIDCuD3D9UnmapResources DriverTraceCBID = 161 DriverCBIDCuD3D9ResourceSetMapFlags DriverTraceCBID = 162 DriverCBIDCuD3D9ResourceGetSurfaceDimensions DriverTraceCBID = 163 DriverCBIDCuD3D9ResourceGetMappedArray DriverTraceCBID = 164 DriverCBIDCuD3D9ResourceGetMappedPointer DriverTraceCBID = 165 DriverCBIDCuD3D9ResourceGetMappedSize DriverTraceCBID = 166 DriverCBIDCuD3D9ResourceGetMappedPitch DriverTraceCBID = 167 DriverCBIDCuD3D9Begin DriverTraceCBID = 168 DriverCBIDCuD3D9End DriverTraceCBID = 169 DriverCBIDCuD3D9RegisterVertexBuffer DriverTraceCBID = 170 DriverCBIDCuD3D9MapVertexBuffer DriverTraceCBID = 171 DriverCBIDCuD3D9UnmapVertexBuffer DriverTraceCBID = 172 DriverCBIDCuD3D9UnregisterVertexBuffer DriverTraceCBID = 173 DriverCBIDCuGLCtxCreate DriverTraceCBID = 174 DriverCBIDCuGraphicsGLRegisterBuffer DriverTraceCBID = 175 DriverCBIDCuGraphicsGLRegisterImage DriverTraceCBID = 176 DriverCBIDCuWGLGetDevice DriverTraceCBID = 177 DriverCBIDCuGLInit DriverTraceCBID = 178 DriverCBIDCuGLRegisterBufferObject DriverTraceCBID = 179 DriverCBIDCuGLMapBufferObject DriverTraceCBID = 180 DriverCBIDCuGLUnmapBufferObject DriverTraceCBID = 181 DriverCBIDCuGLUnregisterBufferObject DriverTraceCBID = 182 DriverCBIDCuGLSetBufferObjectMapFlags DriverTraceCBID = 183 DriverCBIDCuGLMapBufferObjectAsync DriverTraceCBID = 184 DriverCBIDCuGLUnmapBufferObjectAsync DriverTraceCBID = 185 DriverCBIDCuVDPAUGetDevice DriverTraceCBID = 186 DriverCBIDCuVDPAUCtxCreate DriverTraceCBID = 187 DriverCBIDCuGraphicsVDPAURegisterVideoSurface DriverTraceCBID = 188 DriverCBIDCuGraphicsVDPAURegisterOutputSurface DriverTraceCBID = 189 DriverCBIDCuModuleGetSurfRef DriverTraceCBID = 190 DriverCBIDCuda191 DriverTraceCBID = 191 DriverCBIDCuda192 DriverTraceCBID = 192 DriverCBIDCuda193 DriverTraceCBID = 193 DriverCBIDCuSurfRefSetArray DriverTraceCBID = 194 DriverCBIDCuda195 DriverTraceCBID = 195 DriverCBIDCuSurfRefGetArray DriverTraceCBID = 196 DriverCBIDCuda197 DriverTraceCBID = 197 DriverCBIDCuda198 DriverTraceCBID = 198 DriverCBIDCuda199 DriverTraceCBID = 199 DriverCBIDCuda200 DriverTraceCBID = 200 DriverCBIDCuda201 DriverTraceCBID = 201 DriverCBIDCuda202 DriverTraceCBID = 202 DriverCBIDCuda203 DriverTraceCBID = 203 DriverCBIDCuda204 DriverTraceCBID = 204 DriverCBIDCuda205 DriverTraceCBID = 205 DriverCBIDCuda206 DriverTraceCBID = 206 DriverCBIDCuda207 DriverTraceCBID = 207 DriverCBIDCuda208 DriverTraceCBID = 208 DriverCBIDCuD3D11GetDevices DriverTraceCBID = 209 DriverCBIDCuD3D11CtxCreateOnDevice DriverTraceCBID = 210 DriverCBIDCuD3D10GetDevices DriverTraceCBID = 211 DriverCBIDCuD3D10CtxCreateOnDevice DriverTraceCBID = 212 DriverCBIDCuD3D9GetDevices DriverTraceCBID = 213 DriverCBIDCuD3D9CtxCreateOnDevice DriverTraceCBID = 214 DriverCBIDCuda215 DriverTraceCBID = 215 DriverCBIDCuMemsetD8Async DriverTraceCBID = 216 DriverCBIDCuda217 DriverTraceCBID = 217 DriverCBIDCuMemsetD16Async DriverTraceCBID = 218 DriverCBIDCuda219 DriverTraceCBID = 219 DriverCBIDCuMemsetD32Async DriverTraceCBID = 220 DriverCBIDCuda221 DriverTraceCBID = 221 DriverCBIDCuMemsetD2D8Async DriverTraceCBID = 222 DriverCBIDCuda223 DriverTraceCBID = 223 DriverCBIDCuMemsetD2D16Async DriverTraceCBID = 224 DriverCBIDCuda225 DriverTraceCBID = 225 DriverCBIDCuMemsetD2D32Async DriverTraceCBID = 226 DriverCBIDCuda227 DriverTraceCBID = 227 DriverCBIDCuda228 DriverTraceCBID = 228 DriverCBIDCuda229 DriverTraceCBID = 229 DriverCBIDCuda230 DriverTraceCBID = 230 DriverCBIDCuda231 DriverTraceCBID = 231 DriverCBIDCuda232 DriverTraceCBID = 232 DriverCBIDCuda233 DriverTraceCBID = 233 DriverCBIDCuda234 DriverTraceCBID = 234 DriverCBIDCuCtxCreateV2 DriverTraceCBID = 235 DriverCBIDCuD3D10CtxCreateV2 DriverTraceCBID = 236 DriverCBIDCuD3D11CtxCreateV2 DriverTraceCBID = 237 DriverCBIDCuD3D9CtxCreateV2 DriverTraceCBID = 238 DriverCBIDCuGLCtxCreateV2 DriverTraceCBID = 239 DriverCBIDCuVDPAUCtxCreateV2 DriverTraceCBID = 240 DriverCBIDCuModuleGetGlobalV2 DriverTraceCBID = 241 DriverCBIDCuMemGetInfoV2 DriverTraceCBID = 242 DriverCBIDCuMemAllocV2 DriverTraceCBID = 243 DriverCBIDCuMemAllocPitchV2 DriverTraceCBID = 244 DriverCBIDCuMemFreeV2 DriverTraceCBID = 245 DriverCBIDCuMemGetAddressRangeV2 DriverTraceCBID = 246 DriverCBIDCuMemHostGetDevicePointerV2 DriverTraceCBID = 247 DriverCBIDCuda248 DriverTraceCBID = 248 DriverCBIDCuMemsetD8V2 DriverTraceCBID = 249 DriverCBIDCuMemsetD16V2 DriverTraceCBID = 250 DriverCBIDCuMemsetD32V2 DriverTraceCBID = 251 DriverCBIDCuMemsetD2D8V2 DriverTraceCBID = 252 DriverCBIDCuMemsetD2D16V2 DriverTraceCBID = 253 DriverCBIDCuMemsetD2D32V2 DriverTraceCBID = 254 DriverCBIDCuTexRefSetAddressV2 DriverTraceCBID = 255 DriverCBIDCuTexRefSetAddress2DV2 DriverTraceCBID = 256 DriverCBIDCuTexRefGetAddressV2 DriverTraceCBID = 257 DriverCBIDCuGraphicsResourceGetMappedPointerV2 DriverTraceCBID = 258 DriverCBIDCuDeviceTotalMemV2 DriverTraceCBID = 259 DriverCBIDCuD3D10ResourceGetMappedPointerV2 DriverTraceCBID = 260 DriverCBIDCuD3D10ResourceGetMappedSizeV2 DriverTraceCBID = 261 DriverCBIDCuD3D10ResourceGetMappedPitchV2 DriverTraceCBID = 262 DriverCBIDCuD3D10ResourceGetSurfaceDimensionsV2 DriverTraceCBID = 263 DriverCBIDCuD3D9ResourceGetSurfaceDimensionsV2 DriverTraceCBID = 264 DriverCBIDCuD3D9ResourceGetMappedPointerV2 DriverTraceCBID = 265 DriverCBIDCuD3D9ResourceGetMappedSizeV2 DriverTraceCBID = 266 DriverCBIDCuD3D9ResourceGetMappedPitchV2 DriverTraceCBID = 267 DriverCBIDCuD3D9MapVertexBufferV2 DriverTraceCBID = 268 DriverCBIDCuGLMapBufferObjectV2 DriverTraceCBID = 269 DriverCBIDCuGLMapBufferObjectAsyncV2 DriverTraceCBID = 270 DriverCBIDCuda271 DriverTraceCBID = 271 DriverCBIDCuArrayCreateV2 DriverTraceCBID = 272 DriverCBIDCuArrayGetDescriptorV2 DriverTraceCBID = 273 DriverCBIDCuArray3DCreateV2 DriverTraceCBID = 274 DriverCBIDCuArray3DGetDescriptorV2 DriverTraceCBID = 275 DriverCBIDCuMemcpyHtoDV2 DriverTraceCBID = 276 DriverCBIDCuMemcpyHtoDAsyncV2 DriverTraceCBID = 277 DriverCBIDCuMemcpyDtoHV2 DriverTraceCBID = 278 DriverCBIDCuMemcpyDtoHAsyncV2 DriverTraceCBID = 279 DriverCBIDCuMemcpyDtoDV2 DriverTraceCBID = 280 DriverCBIDCuMemcpyDtoDAsyncV2 DriverTraceCBID = 281 DriverCBIDCuMemcpyAtoHV2 DriverTraceCBID = 282 DriverCBIDCuMemcpyAtoHAsyncV2 DriverTraceCBID = 283 DriverCBIDCuMemcpyAtoDV2 DriverTraceCBID = 284 DriverCBIDCuMemcpyDtoAV2 DriverTraceCBID = 285 DriverCBIDCuMemcpyAtoAV2 DriverTraceCBID = 286 DriverCBIDCuMemcpy2DV2 DriverTraceCBID = 287 DriverCBIDCuMemcpy2DUnalignedV2 DriverTraceCBID = 288 DriverCBIDCuMemcpy2DAsyncV2 DriverTraceCBID = 289 DriverCBIDCuMemcpy3DV2 DriverTraceCBID = 290 DriverCBIDCuMemcpy3DAsyncV2 DriverTraceCBID = 291 DriverCBIDCuMemcpyHtoAV2 DriverTraceCBID = 292 DriverCBIDCuMemcpyHtoAAsyncV2 DriverTraceCBID = 293 DriverCBIDCuMemAllocHostV2 DriverTraceCBID = 294 DriverCBIDCuStreamWaitEvent DriverTraceCBID = 295 DriverCBIDCuCtxGetApiVersion DriverTraceCBID = 296 DriverCBIDCuD3D10GetDirect3DDevice DriverTraceCBID = 297 DriverCBIDCuD3D11GetDirect3DDevice DriverTraceCBID = 298 DriverCBIDCuCtxGetCacheConfig DriverTraceCBID = 299 DriverCBIDCuCtxSetCacheConfig DriverTraceCBID = 300 DriverCBIDCuMemHostRegister DriverTraceCBID = 301 DriverCBIDCuMemHostUnregister DriverTraceCBID = 302 DriverCBIDCuCtxSetCurrent DriverTraceCBID = 303 DriverCBIDCuCtxGetCurrent DriverTraceCBID = 304 DriverCBIDCuMemcpy DriverTraceCBID = 305 DriverCBIDCuMemcpyAsync DriverTraceCBID = 306 DriverCBIDCuLaunchKernel DriverTraceCBID = 307 DriverCBIDCuProfilerStart DriverTraceCBID = 308 DriverCBIDCuProfilerStop DriverTraceCBID = 309 DriverCBIDCuPointerGetAttribute DriverTraceCBID = 310 DriverCBIDCuProfilerInitialize DriverTraceCBID = 311 DriverCBIDCuDeviceCanAccessPeer DriverTraceCBID = 312 DriverCBIDCuCtxEnablePeerAccess DriverTraceCBID = 313 DriverCBIDCuCtxDisablePeerAccess DriverTraceCBID = 314 DriverCBIDCuda315 DriverTraceCBID = 315 DriverCBIDCuda316 DriverTraceCBID = 316 DriverCBIDCuda317 DriverTraceCBID = 317 DriverCBIDCuMemcpyPeer DriverTraceCBID = 318 DriverCBIDCuMemcpyPeerAsync DriverTraceCBID = 319 DriverCBIDCuMemcpy3DPeer DriverTraceCBID = 320 DriverCBIDCuMemcpy3DPeerAsync DriverTraceCBID = 321 DriverCBIDCuCtxDestroyV2 DriverTraceCBID = 322 DriverCBIDCuCtxPushCurrentV2 DriverTraceCBID = 323 DriverCBIDCuCtxPopCurrentV2 DriverTraceCBID = 324 DriverCBIDCuEventDestroyV2 DriverTraceCBID = 325 DriverCBIDCuStreamDestroyV2 DriverTraceCBID = 326 DriverCBIDCuTexRefSetAddress2DV3 DriverTraceCBID = 327 DriverCBIDCuIpcGetMemHandle DriverTraceCBID = 328 DriverCBIDCuIpcOpenMemHandle DriverTraceCBID = 329 DriverCBIDCuIpcCloseMemHandle DriverTraceCBID = 330 DriverCBIDCuDeviceGetByPCIBusId DriverTraceCBID = 331 DriverCBIDCuDeviceGetPCIBusId DriverTraceCBID = 332 DriverCBIDCuGLGetDevices DriverTraceCBID = 333 DriverCBIDCuIpcGetEventHandle DriverTraceCBID = 334 DriverCBIDCuIpcOpenEventHandle DriverTraceCBID = 335 DriverCBIDCuTexObjectCreate DriverTraceCBID = 339 DriverCBIDCuTexObjectDestroy DriverTraceCBID = 340 DriverCBIDCuTexObjectGetResourceDesc DriverTraceCBID = 341 DriverCBIDCuTexObjectGetTextureDesc DriverTraceCBID = 342 DriverCBIDCuSurfObjectCreate DriverTraceCBID = 343 DriverCBIDCuSurfObjectDestroy DriverTraceCBID = 344 DriverCBIDCuSurfObjectGetResourceDesc DriverTraceCBID = 345 DriverCBIDCuStreamAddCallback DriverTraceCBID = 346 DriverCBIDCuMipmappedArrayCreate DriverTraceCBID = 347 DriverCBIDCuMipmappedArrayGetLevel DriverTraceCBID = 348 DriverCBIDCuMipmappedArrayDestroy DriverTraceCBID = 349 DriverCBIDCuTexRefSetMipmappedArray DriverTraceCBID = 350 DriverCBIDCuTexRefSetMipmapFilterMode DriverTraceCBID = 351 DriverCBIDCuTexRefSetMipmapLevelBias DriverTraceCBID = 352 DriverCBIDCuTexRefSetMipmapLevelClamp DriverTraceCBID = 353 DriverCBIDCuTexRefSetMaxAnisotropy DriverTraceCBID = 354 DriverCBIDCuTexRefGetMipmappedArray DriverTraceCBID = 355 DriverCBIDCuTexRefGetMipmapFilterMode DriverTraceCBID = 356 DriverCBIDCuTexRefGetMipmapLevelBias DriverTraceCBID = 357 DriverCBIDCuTexRefGetMipmapLevelClamp DriverTraceCBID = 358 DriverCBIDCuTexRefGetMaxAnisotropy DriverTraceCBID = 359 DriverCBIDCuGraphicsResourceGetMappedMipmappedArray DriverTraceCBID = 360 DriverCBIDCuTexObjectGetResourceViewDesc DriverTraceCBID = 361 DriverCBIDCuLinkCreate DriverTraceCBID = 362 DriverCBIDCuLinkAddData DriverTraceCBID = 363 DriverCBIDCuLinkAddFile DriverTraceCBID = 364 DriverCBIDCuLinkComplete DriverTraceCBID = 365 DriverCBIDCuLinkDestroy DriverTraceCBID = 366 DriverCBIDCuStreamCreateWithPriority DriverTraceCBID = 367 DriverCBIDCuStreamGetPriority DriverTraceCBID = 368 DriverCBIDCuStreamGetFlags DriverTraceCBID = 369 DriverCBIDCuCtxGetStreamPriorityRange DriverTraceCBID = 370 DriverCBIDCuMemAllocManaged DriverTraceCBID = 371 DriverCBIDCuGetErrorString DriverTraceCBID = 372 DriverCBIDCuGetErrorName DriverTraceCBID = 373 DriverCBIDCuOccupancyMaxActiveBlocksPerMultiprocessor DriverTraceCBID = 374 DriverCBIDCuda375 DriverTraceCBID = 375 DriverCBIDCuda376 DriverTraceCBID = 376 DriverCBIDCuStreamAttachMemAsync DriverTraceCBID = 377 DriverCBIDCuPointerSetAttribute DriverTraceCBID = 378 DriverCBIDCuMemHostRegisterV2 DriverTraceCBID = 379 DriverCBIDCuGraphicsResourceSetMapFlagsV2 DriverTraceCBID = 380 DriverCBIDCuLinkCreateV2 DriverTraceCBID = 381 DriverCBIDCuLinkAddDataV2 DriverTraceCBID = 382 DriverCBIDCuLinkAddFileV2 DriverTraceCBID = 383 DriverCBIDCuOccupancyMaxPotentialBlockSize DriverTraceCBID = 384 DriverCBIDCuGLGetDevicesV2 DriverTraceCBID = 385 DriverCBIDCuDevicePrimaryCtxRetain DriverTraceCBID = 386 DriverCBIDCuDevicePrimaryCtxRelease DriverTraceCBID = 387 DriverCBIDCuDevicePrimaryCtxSetFlags DriverTraceCBID = 388 DriverCBIDCuDevicePrimaryCtxReset DriverTraceCBID = 389 DriverCBIDCuGraphicsEGLRegisterImage DriverTraceCBID = 390 DriverCBIDCuCtxGetFlags DriverTraceCBID = 391 DriverCBIDCuDevicePrimaryCtxGetState DriverTraceCBID = 392 DriverCBIDCuEGLStreamConsumerConnect DriverTraceCBID = 393 DriverCBIDCuEGLStreamConsumerDisconnect DriverTraceCBID = 394 DriverCBIDCuEGLStreamConsumerAcquireFrame DriverTraceCBID = 395 DriverCBIDCuEGLStreamConsumerReleaseFrame DriverTraceCBID = 396 DriverCBIDCuMemcpyHtoDV2Ptds DriverTraceCBID = 397 DriverCBIDCuMemcpyDtoHV2Ptds DriverTraceCBID = 398 DriverCBIDCuMemcpyDtoDV2Ptds DriverTraceCBID = 399 DriverCBIDCuMemcpyDtoAV2Ptds DriverTraceCBID = 400 DriverCBIDCuMemcpyAtoDV2Ptds DriverTraceCBID = 401 DriverCBIDCuMemcpyHtoAV2Ptds DriverTraceCBID = 402 DriverCBIDCuMemcpyAtoHV2Ptds DriverTraceCBID = 403 DriverCBIDCuMemcpyAtoAV2Ptds DriverTraceCBID = 404 DriverCBIDCuMemcpy2DV2Ptds DriverTraceCBID = 405 DriverCBIDCuMemcpy2DUnalignedV2Ptds DriverTraceCBID = 406 DriverCBIDCuMemcpy3DV2Ptds DriverTraceCBID = 407 DriverCBIDCuMemcpyPtds DriverTraceCBID = 408 DriverCBIDCuMemcpyPeerPtds DriverTraceCBID = 409 DriverCBIDCuMemcpy3DPeerPtds DriverTraceCBID = 410 DriverCBIDCuMemsetD8V2Ptds DriverTraceCBID = 411 DriverCBIDCuMemsetD16V2Ptds DriverTraceCBID = 412 DriverCBIDCuMemsetD32V2Ptds DriverTraceCBID = 413 DriverCBIDCuMemsetD2D8V2Ptds DriverTraceCBID = 414 DriverCBIDCuMemsetD2D16V2Ptds DriverTraceCBID = 415 DriverCBIDCuMemsetD2D32V2Ptds DriverTraceCBID = 416 DriverCBIDCuGLMapBufferObjectV2Ptds DriverTraceCBID = 417 DriverCBIDCuMemcpyAsyncPtsz DriverTraceCBID = 418 DriverCBIDCuMemcpyHtoAAsyncV2Ptsz DriverTraceCBID = 419 DriverCBIDCuMemcpyAtoHAsyncV2Ptsz DriverTraceCBID = 420 DriverCBIDCuMemcpyHtoDAsyncV2Ptsz DriverTraceCBID = 421 DriverCBIDCuMemcpyDtoHAsyncV2Ptsz DriverTraceCBID = 422 DriverCBIDCuMemcpyDtoDAsyncV2Ptsz DriverTraceCBID = 423 DriverCBIDCuMemcpy2DAsyncV2Ptsz DriverTraceCBID = 424 DriverCBIDCuMemcpy3DAsyncV2Ptsz DriverTraceCBID = 425 DriverCBIDCuMemcpyPeerAsyncPtsz DriverTraceCBID = 426 DriverCBIDCuMemcpy3DPeerAsyncPtsz DriverTraceCBID = 427 DriverCBIDCuMemsetD8AsyncPtsz DriverTraceCBID = 428 DriverCBIDCuMemsetD16AsyncPtsz DriverTraceCBID = 429 DriverCBIDCuMemsetD32AsyncPtsz DriverTraceCBID = 430 DriverCBIDCuMemsetD2D8AsyncPtsz DriverTraceCBID = 431 DriverCBIDCuMemsetD2D16AsyncPtsz DriverTraceCBID = 432 DriverCBIDCuMemsetD2D32AsyncPtsz DriverTraceCBID = 433 DriverCBIDCuStreamGetPriorityPtsz DriverTraceCBID = 434 DriverCBIDCuStreamGetFlagsPtsz DriverTraceCBID = 435 DriverCBIDCuStreamWaitEventPtsz DriverTraceCBID = 436 DriverCBIDCuStreamAddCallbackPtsz DriverTraceCBID = 437 DriverCBIDCuStreamAttachMemAsyncPtsz DriverTraceCBID = 438 DriverCBIDCuStreamQueryPtsz DriverTraceCBID = 439 DriverCBIDCuStreamSynchronizePtsz DriverTraceCBID = 440 DriverCBIDCuEventRecordPtsz DriverTraceCBID = 441 DriverCBIDCuLaunchKernelPtsz DriverTraceCBID = 442 DriverCBIDCuGraphicsMapResourcesPtsz DriverTraceCBID = 443 DriverCBIDCuGraphicsUnmapResourcesPtsz DriverTraceCBID = 444 DriverCBIDCuGLMapBufferObjectAsyncV2Ptsz DriverTraceCBID = 445 DriverCBIDCuEGLStreamProducerConnect DriverTraceCBID = 446 DriverCBIDCuEGLStreamProducerDisconnect DriverTraceCBID = 447 DriverCBIDCuEGLStreamProducerPresentFrame DriverTraceCBID = 448 DriverCBIDCuGraphicsResourceGetMappedEglFrame DriverTraceCBID = 449 DriverCBIDCuPointerGetAttributes DriverTraceCBID = 450 DriverCBIDCuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags DriverTraceCBID = 451 DriverCBIDCuOccupancyMaxPotentialBlockSizeWithFlags DriverTraceCBID = 452 DriverCBIDCuEGLStreamProducerReturnFrame DriverTraceCBID = 453 DriverCBIDCuDeviceGetP2PAttribute DriverTraceCBID = 454 DriverCBIDCuTexRefSetBorderColor DriverTraceCBID = 455 DriverCBIDCuTexRefGetBorderColor DriverTraceCBID = 456 DriverCBIDCuMemAdvise DriverTraceCBID = 457 DriverCBIDCuStreamWaitValue32 DriverTraceCBID = 458 DriverCBIDCuStreamWaitValue32Ptsz DriverTraceCBID = 459 DriverCBIDCuStreamWriteValue32 DriverTraceCBID = 460 DriverCBIDCuStreamWriteValue32Ptsz DriverTraceCBID = 461 DriverCBIDCuStreamBatchMemOp DriverTraceCBID = 462 DriverCBIDCuStreamBatchMemOpPtsz DriverTraceCBID = 463 DriverCBIDCuda464 DriverTraceCBID = 464 DriverCBIDCuda465 DriverTraceCBID = 465 DriverCBIDCuNNSetAllocator DriverTraceCBID = 466 DriverCBIDCuMemPrefetchAsync DriverTraceCBID = 467 DriverCBIDCuMemPrefetchAsyncPtsz DriverTraceCBID = 468 DriverCBIDCuda469 DriverTraceCBID = 469 DriverCBIDCuEGLStreamConsumerConnectWithFlags DriverTraceCBID = 470 DriverCBIDCuMemRangeGetAttribute DriverTraceCBID = 471 DriverCBIDCuMemRangeGetAttributes DriverTraceCBID = 472 DriverCBIDCuStreamWaitValue64 DriverTraceCBID = 473 DriverCBIDCuStreamWaitValue64Ptsz DriverTraceCBID = 474 DriverCBIDCuStreamWriteValue64 DriverTraceCBID = 475 DriverCBIDCuStreamWriteValue64Ptsz DriverTraceCBID = 476 DriverCBIDCuLaunchCooperativeKernel DriverTraceCBID = 477 DriverCBIDCuLaunchCooperativeKernelPtsz DriverTraceCBID = 478 DriverCBIDCuEventCreateFromEGLSync DriverTraceCBID = 479 DriverCBIDCuLaunchCooperativeKernelMultiDevice DriverTraceCBID = 480 DriverCBIDCuFuncSetAttribute DriverTraceCBID = 481 DriverCBIDCuDeviceGetUuid DriverTraceCBID = 482 DriverCBIDCuStreamGetCtx DriverTraceCBID = 483 DriverCBIDCuStreamGetCtxPtsz DriverTraceCBID = 484 DriverCBIDCuImportExternalMemory DriverTraceCBID = 485 DriverCBIDCuExternalMemoryGetMappedBuffer DriverTraceCBID = 486 DriverCBIDCuExternalMemoryGetMappedMipmappedArray DriverTraceCBID = 487 DriverCBIDCuDestroyExternalMemory DriverTraceCBID = 488 DriverCBIDCuImportExternalSemaphore DriverTraceCBID = 489 DriverCBIDCuSignalExternalSemaphoresAsync DriverTraceCBID = 490 DriverCBIDCuSignalExternalSemaphoresAsyncPtsz DriverTraceCBID = 491 DriverCBIDCuWaitExternalSemaphoresAsync DriverTraceCBID = 492 DriverCBIDCuWaitExternalSemaphoresAsyncPtsz DriverTraceCBID = 493 DriverCBIDCuDestroyExternalSemaphore DriverTraceCBID = 494 DriverCBIDCuStreamBeginCapture DriverTraceCBID = 495 DriverCBIDCuStreamBeginCapturePtsz DriverTraceCBID = 496 DriverCBIDCuStreamEndCapture DriverTraceCBID = 497 DriverCBIDCuStreamEndCapturePtsz DriverTraceCBID = 498 DriverCBIDCuStreamIsCapturing DriverTraceCBID = 499 DriverCBIDCuStreamIsCapturingPtsz DriverTraceCBID = 500 DriverCBIDCuGraphCreate DriverTraceCBID = 501 DriverCBIDCuGraphAddKernelNode DriverTraceCBID = 502 DriverCBIDCuGraphKernelNodeGetParams DriverTraceCBID = 503 DriverCBIDCuGraphAddMemcpyNode DriverTraceCBID = 504 DriverCBIDCuGraphMemcpyNodeGetParams DriverTraceCBID = 505 DriverCBIDCuGraphAddMemsetNode DriverTraceCBID = 506 DriverCBIDCuGraphMemsetNodeGetParams DriverTraceCBID = 507 DriverCBIDCuGraphMemsetNodeSetParams DriverTraceCBID = 508 DriverCBIDCuGraphNodeGetType DriverTraceCBID = 509 DriverCBIDCuGraphGetRootNodes DriverTraceCBID = 510 DriverCBIDCuGraphNodeGetDependencies DriverTraceCBID = 511 DriverCBIDCuGraphNodeGetDependentNodes DriverTraceCBID = 512 DriverCBIDCuGraphInstantiate DriverTraceCBID = 513 DriverCBIDCuGraphLaunch DriverTraceCBID = 514 DriverCBIDCuGraphLaunchPtsz DriverTraceCBID = 515 DriverCBIDCuGraphExecDestroy DriverTraceCBID = 516 DriverCBIDCuGraphDestroy DriverTraceCBID = 517 DriverCBIDCuGraphAddDependencies DriverTraceCBID = 518 DriverCBIDCuGraphRemoveDependencies DriverTraceCBID = 519 DriverCBIDCuGraphMemcpyNodeSetParams DriverTraceCBID = 520 DriverCBIDCuGraphKernelNodeSetParams DriverTraceCBID = 521 DriverCBIDCuGraphDestroyNode DriverTraceCBID = 522 DriverCBIDCuGraphClone DriverTraceCBID = 523 DriverCBIDCuGraphNodeFindInClone DriverTraceCBID = 524 DriverCBIDCuGraphAddChildGraphNode DriverTraceCBID = 525 DriverCBIDCuGraphAddEmptyNode DriverTraceCBID = 526 DriverCBIDCuLaunchHostFunc DriverTraceCBID = 527 DriverCBIDCuLaunchHostFuncPtsz DriverTraceCBID = 528 DriverCBIDCuGraphChildGraphNodeGetGraph DriverTraceCBID = 529 DriverCBIDCuGraphAddHostNode DriverTraceCBID = 530 DriverCBIDCuGraphHostNodeGetParams DriverTraceCBID = 531 DriverCBIDCuDeviceGetLuid DriverTraceCBID = 532 DriverCBIDCuGraphHostNodeSetParams DriverTraceCBID = 533 DriverCBIDCuGraphGetNodes DriverTraceCBID = 534 DriverCBIDCuGraphGetEdges DriverTraceCBID = 535 DriverCBIDCuStreamGetCaptureInfo DriverTraceCBID = 536 DriverCBIDCuStreamGetCaptureInfoPtsz DriverTraceCBID = 537 DriverCBIDCuGraphExecKernelNodeSetParams DriverTraceCBID = 538 DriverCBIDCuStreamBeginCaptureV2 DriverTraceCBID = 539 DriverCBIDCuStreamBeginCaptureV2Ptsz DriverTraceCBID = 540 DriverCBIDCuThreadExchangeStreamCaptureMode DriverTraceCBID = 541 DriverCBIDCuDeviceGetNvSciSyncAttributes DriverTraceCBID = 542 DriverCBIDCuOccupancyAvailableDynamicSMemPerBlock DriverTraceCBID = 543 DriverCBIDCuDevicePrimaryCtxReleaseV2 DriverTraceCBID = 544 DriverCBIDCuDevicePrimaryCtxResetV2 DriverTraceCBID = 545 DriverCBIDCuDevicePrimaryCtxSetFlagsV2 DriverTraceCBID = 546 DriverCBIDCuMemAddressReserve DriverTraceCBID = 547 DriverCBIDCuMemAddressFree DriverTraceCBID = 548 DriverCBIDCuMemCreate DriverTraceCBID = 549 DriverCBIDCuMemRelease DriverTraceCBID = 550 DriverCBIDCuMemMap DriverTraceCBID = 551 DriverCBIDCuMemUnmap DriverTraceCBID = 552 DriverCBIDCuMemSetAccess DriverTraceCBID = 553 DriverCBIDCuMemGetAllocationGranularity DriverTraceCBID = 556 DriverCBIDCuMemGetAllocationPropertiesFromHandle DriverTraceCBID = 557 DriverCBIDCuMemGetAccess DriverTraceCBID = 558 DriverCBIDCuda559 DriverTraceCBID = 559 DriverCBIDCuda560 DriverTraceCBID = 560 DriverCBIDCuGraphExecUpdate DriverTraceCBID = 561 DriverCBIDCuGraphExecMemcpyNodeSetParams DriverTraceCBID = 562 DriverCBIDCuGraphExecMemsetNodeSetParams DriverTraceCBID = 563 DriverCBIDCuGraphExecHostNodeSetParams DriverTraceCBID = 564 DriverCBIDCuMemRetainAllocationHandle DriverTraceCBID = 565 DriverCBIDCuFuncGetModule DriverTraceCBID = 566 DriverCBIDCuIpcOpenMemHandleV2 DriverTraceCBID = 567 DriverCBIDCuCtxResetPersistingL2Cache DriverTraceCBID = 568 DriverCBIDCuGraphKernelNodeCopyAttributes DriverTraceCBID = 569 DriverCBIDCuGraphKernelNodeGetAttribute DriverTraceCBID = 570 DriverCBIDCuGraphKernelNodeSetAttribute DriverTraceCBID = 571 DriverCBIDCuStreamCopyAttributes DriverTraceCBID = 572 DriverCBIDCuStreamCopyAttributesPtsz DriverTraceCBID = 573 DriverCBIDCuStreamGetAttribute DriverTraceCBID = 574 DriverCBIDCuStreamGetAttributePtsz DriverTraceCBID = 575 DriverCBIDCuStreamSetAttribute DriverTraceCBID = 576 DriverCBIDCuStreamSetAttributePtsz DriverTraceCBID = 577 DriverCBIDCuGraphInstantiateV2 DriverTraceCBID = 578 DriverCBIDCuDeviceGetTexture1DLinearMaxWidth DriverTraceCBID = 579 DriverCBIDCuGraphUpload DriverTraceCBID = 580 DriverCBIDCuGraphUploadPtsz DriverTraceCBID = 581 DriverCBIDCuArrayGetSparseProperties DriverTraceCBID = 582 DriverCBIDCuMipmappedArrayGetSparseProperties DriverTraceCBID = 583 DriverCBIDCuMemMapArrayAsync DriverTraceCBID = 584 DriverCBIDCuMemMapArrayAsyncPtsz DriverTraceCBID = 585 DriverCBIDCuGraphExecChildGraphNodeSetParams DriverTraceCBID = 586 DriverCBIDCuEventRecordWithFlags DriverTraceCBID = 587 DriverCBIDCuEventRecordWithFlagsPtsz DriverTraceCBID = 588 DriverCBIDCuGraphAddEventRecordNode DriverTraceCBID = 589 DriverCBIDCuGraphAddEventWaitNode DriverTraceCBID = 590 DriverCBIDCuGraphEventRecordNodeGetEvent DriverTraceCBID = 591 DriverCBIDCuGraphEventWaitNodeGetEvent DriverTraceCBID = 592 DriverCBIDCuGraphEventRecordNodeSetEvent DriverTraceCBID = 593 DriverCBIDCuGraphEventWaitNodeSetEvent DriverTraceCBID = 594 DriverCBIDCuGraphExecEventRecordNodeSetEvent DriverTraceCBID = 595 DriverCBIDCuGraphExecEventWaitNodeSetEvent DriverTraceCBID = 596 DriverCBIDCuArrayGetPlane DriverTraceCBID = 597 DriverCBIDCuMemAllocAsync DriverTraceCBID = 598 DriverCBIDCuMemAllocAsyncPtsz DriverTraceCBID = 599 DriverCBIDCuMemFreeAsync DriverTraceCBID = 600 DriverCBIDCuMemFreeAsyncPtsz DriverTraceCBID = 601 DriverCBIDCuMemPoolTrimTo DriverTraceCBID = 602 DriverCBIDCuMemPoolSetAttribute DriverTraceCBID = 603 DriverCBIDCuMemPoolGetAttribute DriverTraceCBID = 604 DriverCBIDCuMemPoolSetAccess DriverTraceCBID = 605 DriverCBIDCuDeviceGetDefaultMemPool DriverTraceCBID = 606 DriverCBIDCuMemPoolCreate DriverTraceCBID = 607 DriverCBIDCuMemPoolDestroy DriverTraceCBID = 608 DriverCBIDCuDeviceSetMemPool DriverTraceCBID = 609 DriverCBIDCuDeviceGetMemPool DriverTraceCBID = 610 DriverCBIDCuMemAllocFromPoolAsync DriverTraceCBID = 611 DriverCBIDCuMemAllocFromPoolAsyncPtsz DriverTraceCBID = 612 DriverCBIDCuMemPoolExportPointer DriverTraceCBID = 615 DriverCBIDCuMemPoolImportPointer DriverTraceCBID = 616 DriverCBIDCuMemPoolGetAccess DriverTraceCBID = 617 DriverCBIDCuGraphAddExternalSemaphoresSignalNode DriverTraceCBID = 618 DriverCBIDCuGraphExternalSemaphoresSignalNodeGetParams DriverTraceCBID = 619 DriverCBIDCuGraphExternalSemaphoresSignalNodeSetParams DriverTraceCBID = 620 DriverCBIDCuGraphAddExternalSemaphoresWaitNode DriverTraceCBID = 621 DriverCBIDCuGraphExternalSemaphoresWaitNodeGetParams DriverTraceCBID = 622 DriverCBIDCuGraphExternalSemaphoresWaitNodeSetParams DriverTraceCBID = 623 DriverCBIDCuGraphExecExternalSemaphoresSignalNodeSetParams DriverTraceCBID = 624 DriverCBIDCuGraphExecExternalSemaphoresWaitNodeSetParams DriverTraceCBID = 625 DriverCBIDCuGetProcAddress DriverTraceCBID = 626 DriverCBIDCuFlushGPUDirectRDMAWrites DriverTraceCBID = 627 DriverCBIDCuGraphDebugDotPrint DriverTraceCBID = 628 DriverCBIDCuStreamGetCaptureInfoV2 DriverTraceCBID = 629 DriverCBIDCuStreamGetCaptureInfoV2Ptsz DriverTraceCBID = 630 DriverCBIDCuStreamUpdateCaptureDependencies DriverTraceCBID = 631 DriverCBIDCuStreamUpdateCaptureDependenciesPtsz DriverTraceCBID = 632 DriverCBIDCuUserObjectCreate DriverTraceCBID = 633 DriverCBIDCuUserObjectRetain DriverTraceCBID = 634 DriverCBIDCuUserObjectRelease DriverTraceCBID = 635 DriverCBIDCuGraphRetainUserObject DriverTraceCBID = 636 DriverCBIDCuGraphReleaseUserObject DriverTraceCBID = 637 DriverCBIDCuGraphAddMemAllocNode DriverTraceCBID = 638 DriverCBIDCuGraphAddMemFreeNode DriverTraceCBID = 639 DriverCBIDCuDeviceGraphMemTrim DriverTraceCBID = 640 DriverCBIDCuDeviceGetGraphMemAttribute DriverTraceCBID = 641 DriverCBIDCuDeviceSetGraphMemAttribute DriverTraceCBID = 642 DriverCBIDCuGraphInstantiateWithFlags DriverTraceCBID = 643 DriverCBIDCuDeviceGetExecAffinitySupport DriverTraceCBID = 644 DriverCBIDCuCtxCreateV3 DriverTraceCBID = 645 DriverCBIDCuCtxGetExecAffinity DriverTraceCBID = 646 DriverCBIDCuDeviceGetUuidV2 DriverTraceCBID = 647 DriverCBIDCuGraphMemAllocNodeGetParams DriverTraceCBID = 648 DriverCBIDCuGraphMemFreeNodeGetParams DriverTraceCBID = 649 DriverCBIDCuGraphNodeSetEnabled DriverTraceCBID = 650 DriverCBIDCuGraphNodeGetEnabled DriverTraceCBID = 651 DriverCBIDCuLaunchKernelEx DriverTraceCBID = 652 DriverCBIDCuLaunchKernelExPtsz DriverTraceCBID = 653 DriverCBIDCuArrayGetMemoryRequirements DriverTraceCBID = 654 DriverCBIDCuMipmappedArrayGetMemoryRequirements DriverTraceCBID = 655 DriverCBIDCuGraphInstantiateWithParams DriverTraceCBID = 656 DriverCBIDCuGraphInstantiateWithParamsPtsz DriverTraceCBID = 657 DriverCBIDCuGraphExecGetFlags DriverTraceCBID = 658 DriverCBIDCuStreamWaitValue32V2 DriverTraceCBID = 659 DriverCBIDCuStreamWaitValue32V2Ptsz DriverTraceCBID = 660 DriverCBIDCuStreamWaitValue64V2 DriverTraceCBID = 661 DriverCBIDCuStreamWaitValue64V2Ptsz DriverTraceCBID = 662 DriverCBIDCuStreamWriteValue32V2 DriverTraceCBID = 663 DriverCBIDCuStreamWriteValue32V2Ptsz DriverTraceCBID = 664 DriverCBIDCuStreamWriteValue64V2 DriverTraceCBID = 665 DriverCBIDCuStreamWriteValue64V2Ptsz DriverTraceCBID = 666 DriverCBIDCuStreamBatchMemOpV2 DriverTraceCBID = 667 DriverCBIDCuStreamBatchMemOpV2Ptsz DriverTraceCBID = 668 DriverCBIDCuGraphAddBatchMemOpNode DriverTraceCBID = 669 DriverCBIDCuGraphBatchMemOpNodeGetParams DriverTraceCBID = 670 DriverCBIDCuGraphBatchMemOpNodeSetParams DriverTraceCBID = 671 DriverCBIDCuGraphExecBatchMemOpNodeSetParams DriverTraceCBID = 672 DriverCBIDCuModuleGetLoadingMode DriverTraceCBID = 673 DriverCBIDCuMemGetHandleForAddressRange DriverTraceCBID = 674 DriverCBIDCuOccupancyMaxPotentialClusterSize DriverTraceCBID = 675 DriverCBIDCuOccupancyMaxActiveClusters DriverTraceCBID = 676 DriverCBIDCuGetProcAddressV2 DriverTraceCBID = 677 DriverCBIDCuLibraryLoadData DriverTraceCBID = 678 DriverCBIDCuLibraryLoadFromFile DriverTraceCBID = 679 DriverCBIDCuLibraryUnload DriverTraceCBID = 680 DriverCBIDCuLibraryGetKernel DriverTraceCBID = 681 DriverCBIDCuLibraryGetModule DriverTraceCBID = 682 DriverCBIDCuKernelGetFunction DriverTraceCBID = 683 DriverCBIDCuLibraryGetGlobal DriverTraceCBID = 684 DriverCBIDCuLibraryGetManaged DriverTraceCBID = 685 DriverCBIDCuKernelGetAttribute DriverTraceCBID = 686 DriverCBIDCuKernelSetAttribute DriverTraceCBID = 687 DriverCBIDCuKernelSetCacheConfig DriverTraceCBID = 688 DriverCBIDCuGraphAddKernelNodeV2 DriverTraceCBID = 689 DriverCBIDCuGraphKernelNodeGetParamsV2 DriverTraceCBID = 690 DriverCBIDCuGraphKernelNodeSetParamsV2 DriverTraceCBID = 691 DriverCBIDCuGraphExecKernelNodeSetParamsV2 DriverTraceCBID = 692 DriverCBIDCuStreamGetId DriverTraceCBID = 693 DriverCBIDCuStreamGetIdPtsz DriverTraceCBID = 694 DriverCBIDCuCtxGetId DriverTraceCBID = 695 DriverCBIDCuGraphExecUpdateV2 DriverTraceCBID = 696 DriverCBIDCuTensorMapEncodeTiled DriverTraceCBID = 697 DriverCBIDCuTensorMapEncodeIm2col DriverTraceCBID = 698 DriverCBIDCuTensorMapReplaceAddress DriverTraceCBID = 699 DriverCBIDCuLibraryGetUnifiedFunction DriverTraceCBID = 700 DriverCBIDCuCoredumpGetAttribute DriverTraceCBID = 701 DriverCBIDCuCoredumpGetAttributeGlobal DriverTraceCBID = 702 DriverCBIDCuCoredumpSetAttribute DriverTraceCBID = 703 DriverCBIDCuCoredumpSetAttributeGlobal DriverTraceCBID = 704 DriverCBIDCuCtxSetFlags DriverTraceCBID = 705 DriverCBIDCuMulticastCreate DriverTraceCBID = 706 DriverCBIDCuMulticastAddDevice DriverTraceCBID = 707 DriverCBIDCuMulticastBindMem DriverTraceCBID = 708 DriverCBIDCuMulticastBindAddr DriverTraceCBID = 709 DriverCBIDCuMulticastUnbind DriverTraceCBID = 710 DriverCBIDCuMulticastGetGranularity DriverTraceCBID = 711 DriverCBIDCuGraphAddNode DriverTraceCBID = 712 DriverCBIDCuGraphNodeSetParams DriverTraceCBID = 713 DriverCBIDCuGraphExecNodeSetParams DriverTraceCBID = 714 DriverCBIDCuMemAdviseV2 DriverTraceCBID = 715 DriverCBIDCuMemPrefetchAsyncV2 DriverTraceCBID = 716 DriverCBIDCuMemPrefetchAsyncV2Ptsz DriverTraceCBID = 717 DriverCBIDCuFuncGetName DriverTraceCBID = 718 DriverCBIDCuKernelGetName DriverTraceCBID = 719 DriverCBIDCuStreamBeginCaptureToGraph DriverTraceCBID = 720 DriverCBIDCuStreamBeginCaptureToGraphPtsz DriverTraceCBID = 721 DriverCBIDCuGraphConditionalHandleCreate DriverTraceCBID = 722 DriverCBIDCuGraphAddNodeV2 DriverTraceCBID = 723 DriverCBIDCuGraphGetEdgesV2 DriverTraceCBID = 724 DriverCBIDCuGraphNodeGetDependenciesV2 DriverTraceCBID = 725 DriverCBIDCuGraphNodeGetDependentNodesV2 DriverTraceCBID = 726 DriverCBIDCuGraphAddDependenciesV2 DriverTraceCBID = 727 DriverCBIDCuGraphRemoveDependenciesV2 DriverTraceCBID = 728 DriverCBIDCuStreamGetCaptureInfoV3 DriverTraceCBID = 729 DriverCBIDCuStreamGetCaptureInfoV3Ptsz DriverTraceCBID = 730 DriverCBIDCuStreamUpdateCaptureDependenciesV2 DriverTraceCBID = 731 DriverCBIDCuStreamUpdateCaptureDependenciesV2Ptsz DriverTraceCBID = 732 DriverCBIDCuFuncGetParamInfo DriverTraceCBID = 733 DriverCBIDCuKernelGetParamInfo DriverTraceCBID = 734 DriverCBIDCuDeviceRegisterAsyncNotification DriverTraceCBID = 735 DriverCBIDCuDeviceUnregisterAsyncNotification DriverTraceCBID = 736 DriverCBIDCuModuleGetFunctionCount DriverTraceCBID = 737 DriverCBIDCuModuleEnumerateFunctions DriverTraceCBID = 738 DriverCBIDCuLibraryGetKernelCount DriverTraceCBID = 739 DriverCBIDCuLibraryEnumerateKernels DriverTraceCBID = 740 DriverCBIDCuFuncIsLoaded DriverTraceCBID = 741 DriverCBIDCuFuncLoad DriverTraceCBID = 742 DriverCBIDCuGreenCtxCreate DriverTraceCBID = 743 DriverCBIDCuGreenCtxDestroy DriverTraceCBID = 744 DriverCBIDCuDeviceGetDevResource DriverTraceCBID = 745 DriverCBIDCuCtxGetDevResource DriverTraceCBID = 746 DriverCBIDCuGreenCtxGetDevResource DriverTraceCBID = 747 DriverCBIDCuDevResourceGenerateDesc DriverTraceCBID = 748 DriverCBIDCuGreenCtxRecordEvent DriverTraceCBID = 749 DriverCBIDCuGreenCtxWaitEvent DriverTraceCBID = 750 DriverCBIDCuDevSmResourceSplitByCount DriverTraceCBID = 751 DriverCBIDCuStreamGetGreenCtx DriverTraceCBID = 752 DriverCBIDCuCtxFromGreenCtx DriverTraceCBID = 753 DriverCBIDCuKernelGetLibrary DriverTraceCBID = 754 DriverCBIDCuCtxRecordEvent DriverTraceCBID = 755 DriverCBIDCuCtxWaitEvent DriverTraceCBID = 756 DriverCBIDCuCtxCreateV4 DriverTraceCBID = 757 DriverCBIDCuGreenCtxStreamCreate DriverTraceCBID = 758 DriverCBIDCuStreamGetCtxV2 DriverTraceCBID = 759 DriverCBIDCuStreamGetCtxV2Ptsz DriverTraceCBID = 760 DriverCBIDCuMemBatchDecompressAsync DriverTraceCBID = 761 DriverCBIDCuMemBatchDecompressAsyncPtsz DriverTraceCBID = 762 DriverCBIDCuLogsRegisterCallback DriverTraceCBID = 763 DriverCBIDCuLogsUnregisterCallback DriverTraceCBID = 764 DriverCBIDCuLogsCurrent DriverTraceCBID = 765 DriverCBIDCuLogsDumpToFile DriverTraceCBID = 766 DriverCBIDCuLogsDumpToMemory DriverTraceCBID = 767 DriverCBIDCuCheckpointProcessGetRestoreThreadId DriverTraceCBID = 768 DriverCBIDCuCheckpointProcessGetState DriverTraceCBID = 769 DriverCBIDCuCheckpointProcessLock DriverTraceCBID = 770 DriverCBIDCuCheckpointProcessCheckpoint DriverTraceCBID = 771 DriverCBIDCuCheckpointProcessRestore DriverTraceCBID = 772 DriverCBIDCuCheckpointProcessUnlock DriverTraceCBID = 773 DriverCBIDCuStreamGetDevice DriverTraceCBID = 774 DriverCBIDCuStreamGetDevicePtsz DriverTraceCBID = 775 DriverCBIDCuMemcpyBatchAsync DriverTraceCBID = 776 DriverCBIDCuMemcpyBatchAsyncPtsz DriverTraceCBID = 777 DriverCBIDCuMemcpy3DBatchAsync DriverTraceCBID = 778 DriverCBIDCuMemcpy3DBatchAsyncPtsz DriverTraceCBID = 779 DriverCBIDCuEventElapsedTimeV2 DriverTraceCBID = 780 DriverCBIDCuTensorMapEncodeIm2colWide DriverTraceCBID = 781 DriverCBIDCuGreenCtxGetId DriverTraceCBID = 782 DriverCBIDCuStreamBeginCaptureToCig DriverTraceCBID = 783 DriverCBIDCuMemPrefetchBatchAsync DriverTraceCBID = 784 DriverCBIDCuMemPrefetchBatchAsyncPtsz DriverTraceCBID = 785 DriverCBIDCuda786 DriverTraceCBID = 786 DriverCBIDCuda787 DriverTraceCBID = 787 DriverCBIDCuda788 DriverTraceCBID = 788 DriverCBIDCuMemDiscardBatchAsync DriverTraceCBID = 789 DriverCBIDCuMemDiscardBatchAsyncPtsz DriverTraceCBID = 790 DriverCBIDCuMemDiscardAndPrefetchBatchAsync DriverTraceCBID = 791 DriverCBIDCuMemDiscardAndPrefetchBatchAsyncPtsz DriverTraceCBID = 792 DriverCBIDCuda793 DriverTraceCBID = 793 DriverCBIDCuda794 DriverTraceCBID = 794 DriverCBIDCuCtxGetDeviceV2 DriverTraceCBID = 795 DriverCBIDCuMemcpyBatchAsyncV2 DriverTraceCBID = 796 DriverCBIDCuMemcpyBatchAsyncV2Ptsz DriverTraceCBID = 797 DriverCBIDCuMemcpy3DBatchAsyncV2 DriverTraceCBID = 798 DriverCBIDCuMemcpy3DBatchAsyncV2Ptsz DriverTraceCBID = 799 DriverCBIDCuCtxSynchronizeV2 DriverTraceCBID = 800 DriverCBIDCuMemGetDefaultMemPool DriverTraceCBID = 801 DriverCBIDCuMemGetMemPool DriverTraceCBID = 802 DriverCBIDCuMemSetMemPool DriverTraceCBID = 803 DriverCBIDCuDeviceGetP2PAtomicCapabilities DriverTraceCBID = 804 DriverCBIDCuDeviceGetHostAtomicCapabilities DriverTraceCBID = 805 DriverCBIDCuda806 DriverTraceCBID = 806 DriverCBIDCuStreamGetDevResource DriverTraceCBID = 807 DriverCBIDCuStreamGetDevResourcePtsz DriverTraceCBID = 808 DriverCBIDCuGraphNodeGetContainingGraph DriverTraceCBID = 809 DriverCBIDCuGraphNodeGetLocalId DriverTraceCBID = 810 DriverCBIDCuGraphNodeGetToolsId DriverTraceCBID = 811 DriverCBIDCuGraphGetId DriverTraceCBID = 812 DriverCBIDCuGraphExecGetId DriverTraceCBID = 813 DriverCBIDCuStreamBeginCaptureToCigPtsz DriverTraceCBID = 814 DriverCBIDCuStreamEndCaptureToCig DriverTraceCBID = 815 DriverCBIDCuStreamEndCaptureToCigPtsz DriverTraceCBID = 816 DriverCBIDCuda817 DriverTraceCBID = 817 DriverCBIDCuda818 DriverTraceCBID = 818 DriverCBIDCuda819 DriverTraceCBID = 819 DriverCBIDCuMulticastBindMemV2 DriverTraceCBID = 820 DriverCBIDCuMulticastBindAddrV2 DriverTraceCBID = 821 DriverCBIDCuDevSmResourceSplit DriverTraceCBID = 822 DriverCBIDCuda823 DriverTraceCBID = 823 DriverCBIDCuda824 DriverTraceCBID = 824 DriverCBIDCuda825 DriverTraceCBID = 825 DriverCBIDCuda826 DriverTraceCBID = 826 DriverCBIDCuda827 DriverTraceCBID = 827 DriverCBIDCuda828 DriverTraceCBID = 828 DriverCBIDCuda829 DriverTraceCBID = 829 DriverCBIDCuda830 DriverTraceCBID = 830 DriverCBIDCuLaunchHostFuncV2 DriverTraceCBID = 831 DriverCBIDCuLaunchHostFuncV2Ptsz DriverTraceCBID = 832 DriverCBIDCuda833 DriverTraceCBID = 833 DriverCBIDCuda834 DriverTraceCBID = 834 DriverCBIDCuFuncGetParamCount DriverTraceCBID = 835 DriverCBIDCuKernelGetParamCount DriverTraceCBID = 836 DriverCBIDCuMemcpyWithAttributesAsync DriverTraceCBID = 837 DriverCBIDCuMemcpyWithAttributesAsyncPtsz DriverTraceCBID = 838 DriverCBIDCuMemcpy3DWithAttributesAsync DriverTraceCBID = 839 DriverCBIDCuMemcpy3DWithAttributesAsyncPtsz DriverTraceCBID = 840 DriverCBIDCuGraphNodeGetParams DriverTraceCBID = 841 DriverCBIDCuCoredumpRegisterStartCallback DriverTraceCBID = 842 DriverCBIDCuCoredumpRegisterCompleteCallback DriverTraceCBID = 843 DriverCBIDCuCoredumpDeregisterStartCallback DriverTraceCBID = 844 DriverCBIDCuCoredumpDeregisterCompleteCallback DriverTraceCBID = 845 DriverCBIDCuStreamBeginRecaptureToGraph DriverTraceCBID = 846 DriverCBIDCuStreamBeginRecaptureToGraphPtsz DriverTraceCBID = 847 DriverCBIDCuLogicalEndpointIdReserve DriverTraceCBID = 848 DriverCBIDCuLogicalEndpointIdRelease DriverTraceCBID = 849 DriverCBIDCuLogicalEndpointCreate DriverTraceCBID = 850 DriverCBIDCuLogicalEndpointAddDevice DriverTraceCBID = 851 DriverCBIDCuLogicalEndpointDestroy DriverTraceCBID = 852 DriverCBIDCuLogicalEndpointBindAddr DriverTraceCBID = 853 DriverCBIDCuLogicalEndpointBindMem DriverTraceCBID = 854 DriverCBIDCuLogicalEndpointUnbind DriverTraceCBID = 855 DriverCBIDCuLogicalEndpointExport DriverTraceCBID = 856 DriverCBIDCuLogicalEndpointImport DriverTraceCBID = 857 DriverCBIDCuLogicalEndpointGetLimits DriverTraceCBID = 858 DriverCBIDCuLogicalEndpointQuery DriverTraceCBID = 859 DriverCBIDCuMemGetLocationInfo DriverTraceCBID = 860 DriverCBIDCuCheckpointOperationComplete DriverTraceCBID = 861 DriverCBIDCuda862 DriverTraceCBID = 862 DriverCBIDCuGraphAddNodeV3 DriverTraceCBID = 863 DriverCBIDCuGraphNodeSetParamsV2 DriverTraceCBID = 864 DriverCBIDCuDeviceGetFabricClusterUuid DriverTraceCBID = 865 DriverCBIDCuDeviceGetCliqueCount DriverTraceCBID = 866 DriverCBIDCuDeviceGetCliqueInfo DriverTraceCBID = 867 DriverCBIDCuda868 DriverTraceCBID = 868 DriverCBIDCuda869 DriverTraceCBID = 869 DriverCBIDCuda870 DriverTraceCBID = 870 DriverCBIDCuda871 DriverTraceCBID = 871 DriverCBIDCuda872 DriverTraceCBID = 872 DriverCBIDCuda873 DriverTraceCBID = 873 DriverCBIDCuda874 DriverTraceCBID = 874 DriverCBIDCuda875 DriverTraceCBID = 875 DriverCBIDCuda876 DriverTraceCBID = 876 DriverCBIDSize DriverTraceCBID = 877 DriverCBIDForceInt DriverTraceCBID = 0x7fffffff // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cuSemaphoreCreate in CUDA 13.3 and left slot 786 allocated, as DriverCBIDCuda786. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 13.0. DriverCBIDCuSemaphoreCreate DriverTraceCBID = 786 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cuSemaphoreExport in CUDA 13.3 and left slot 787 allocated, as DriverCBIDCuda787. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 13.0. DriverCBIDCuSemaphoreExport DriverTraceCBID = 787 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cuSemaphoreDestroy in CUDA 13.3 and left slot 788 allocated, as DriverCBIDCuda788. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 13.0. DriverCBIDCuSemaphoreDestroy DriverTraceCBID = 788 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cuMultiKernelCooperativeDomainCreate in CUDA 13.3 and left slot 793 allocated, as DriverCBIDCuda793. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 13.0. DriverCBIDCuMultiKernelCooperativeDomainCreate DriverTraceCBID = 793 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cuMultiKernelCooperativeDomainDestroy in CUDA 13.3 and left slot 794 allocated, as DriverCBIDCuda794. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 13.0. DriverCBIDCuMultiKernelCooperativeDomainDestroy DriverTraceCBID = 794 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cuDriverGetGpuCodeIsaVersion in CUDA 13.3 and left slot 806 allocated, as DriverCBIDCuda806. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 13.0. DriverCBIDCuDriverGetGpuCodeIsaVersion DriverTraceCBID = 806 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cuGraphCreateWithArguments in CUDA 13.3 and left slot 817 allocated, as DriverCBIDCuda817. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 13.1. DriverCBIDCuGraphCreateWithArguments DriverTraceCBID = 817 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cuGraphNodeAddRelocation in CUDA 13.3 and left slot 818 allocated, as DriverCBIDCuda818. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 13.1. DriverCBIDCuGraphNodeAddRelocation DriverTraceCBID = 818 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cuGraphLaunchWithArguments in CUDA 13.3 and left slot 819 allocated, as DriverCBIDCuda819. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 13.1. DriverCBIDCuGraphLaunchWithArguments DriverTraceCBID = 819 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cuSubgridScheduleCreate in CUDA 13.3 and left slot 823 allocated, as DriverCBIDCuda823. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 13.1. DriverCBIDCuSubgridScheduleCreate DriverTraceCBID = 823 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cuSubgridWorkerGridCreate in CUDA 13.3 and left slot 824 allocated, as DriverCBIDCuda824. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 13.1. DriverCBIDCuSubgridWorkerGridCreate DriverTraceCBID = 824 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cuSubgridWorksetCreate in CUDA 13.3 and left slot 825 allocated, as DriverCBIDCuda825. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 13.1. DriverCBIDCuSubgridWorksetCreate DriverTraceCBID = 825 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cuSubgridCreate in CUDA 13.3 and left slot 826 allocated, as DriverCBIDCuda826. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 13.1. DriverCBIDCuSubgridCreate DriverTraceCBID = 826 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cuSubgridScheduleFinalize in CUDA 13.3 and left slot 827 allocated, as DriverCBIDCuda827. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 13.1. DriverCBIDCuSubgridScheduleFinalize DriverTraceCBID = 827 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cuSubgridScheduleLaunch in CUDA 13.3 and left slot 828 allocated, as DriverCBIDCuda828. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 13.1. DriverCBIDCuSubgridScheduleLaunch DriverTraceCBID = 828 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cuSubgridScheduleLaunch_ptsz in CUDA 13.3 and left slot 829 allocated, as DriverCBIDCuda829. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 13.1. DriverCBIDCuSubgridScheduleLaunchPtsz DriverTraceCBID = 829 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cuSubgridScheduleDestroy in CUDA 13.3 and left slot 830 allocated, as DriverCBIDCuda830. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 13.1. DriverCBIDCuSubgridScheduleDestroy DriverTraceCBID = 830 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cuFuncGetDeviceCodeInfo in CUDA 13.3 and left slot 833 allocated, as DriverCBIDCuda833. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 13.1. DriverCBIDCuFuncGetDeviceCodeInfo DriverTraceCBID = 833 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cuKernelGetDeviceCodeInfo in CUDA 13.3 and left slot 834 allocated, as DriverCBIDCuda834. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 13.1. DriverCBIDCuKernelGetDeviceCodeInfo DriverTraceCBID = 834 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cu64ModuleGetGlobal in CUDA 13.5 and left slot 25 allocated, as DriverCBIDCuda25. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 12.2. DriverCBIDCu64ModuleGetGlobal DriverTraceCBID = 25 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cu64MemGetInfo in CUDA 13.5 and left slot 28 allocated, as DriverCBIDCuda28. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 12.2. DriverCBIDCu64MemGetInfo DriverTraceCBID = 28 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cu64MemAlloc in CUDA 13.5 and left slot 30 allocated, as DriverCBIDCuda30. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 12.2. DriverCBIDCu64MemAlloc DriverTraceCBID = 30 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cu64MemAllocPitch in CUDA 13.5 and left slot 32 allocated, as DriverCBIDCuda32. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 12.2. DriverCBIDCu64MemAllocPitch DriverTraceCBID = 32 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cu64MemFree in CUDA 13.5 and left slot 34 allocated, as DriverCBIDCuda34. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 12.2. DriverCBIDCu64MemFree DriverTraceCBID = 34 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cu64MemGetAddressRange in CUDA 13.5 and left slot 36 allocated, as DriverCBIDCuda36. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 12.2. DriverCBIDCu64MemGetAddressRange DriverTraceCBID = 36 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cu64MemHostGetDevicePointer in CUDA 13.5 and left slot 41 allocated, as DriverCBIDCuda41. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 12.2. DriverCBIDCu64MemHostGetDevicePointer DriverTraceCBID = 41 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cu64MemcpyHtoD in CUDA 13.5 and left slot 44 allocated, as DriverCBIDCuda44. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 12.2. DriverCBIDCu64MemcpyHtoD DriverTraceCBID = 44 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cu64MemcpyDtoH in CUDA 13.5 and left slot 46 allocated, as DriverCBIDCuda46. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 12.2. DriverCBIDCu64MemcpyDtoH DriverTraceCBID = 46 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cu64MemcpyDtoD in CUDA 13.5 and left slot 48 allocated, as DriverCBIDCuda48. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 12.2. DriverCBIDCu64MemcpyDtoD DriverTraceCBID = 48 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cu64MemcpyDtoA in CUDA 13.5 and left slot 50 allocated, as DriverCBIDCuda50. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 12.2. DriverCBIDCu64MemcpyDtoA DriverTraceCBID = 50 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cu64MemcpyAtoD in CUDA 13.5 and left slot 52 allocated, as DriverCBIDCuda52. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 12.2. DriverCBIDCu64MemcpyAtoD DriverTraceCBID = 52 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cu64Memcpy3D in CUDA 13.5 and left slot 59 allocated, as DriverCBIDCuda59. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 12.2. DriverCBIDCu64Memcpy3D DriverTraceCBID = 59 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cu64MemcpyHtoDAsync in CUDA 13.5 and left slot 61 allocated, as DriverCBIDCuda61. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 12.2. DriverCBIDCu64MemcpyHtoDAsync DriverTraceCBID = 61 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cu64MemcpyDtoHAsync in CUDA 13.5 and left slot 63 allocated, as DriverCBIDCuda63. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 12.2. DriverCBIDCu64MemcpyDtoHAsync DriverTraceCBID = 63 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cu64MemcpyDtoDAsync in CUDA 13.5 and left slot 65 allocated, as DriverCBIDCuda65. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 12.2. DriverCBIDCu64MemcpyDtoDAsync DriverTraceCBID = 65 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cu64Memcpy3DAsync in CUDA 13.5 and left slot 70 allocated, as DriverCBIDCuda70. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 12.2. DriverCBIDCu64Memcpy3DAsync DriverTraceCBID = 70 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cu64MemsetD8 in CUDA 13.5 and left slot 72 allocated, as DriverCBIDCuda72. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 12.2. DriverCBIDCu64MemsetD8 DriverTraceCBID = 72 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cu64MemsetD16 in CUDA 13.5 and left slot 74 allocated, as DriverCBIDCuda74. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 12.2. DriverCBIDCu64MemsetD16 DriverTraceCBID = 74 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cu64MemsetD32 in CUDA 13.5 and left slot 76 allocated, as DriverCBIDCuda76. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 12.2. DriverCBIDCu64MemsetD32 DriverTraceCBID = 76 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cu64MemsetD2D8 in CUDA 13.5 and left slot 78 allocated, as DriverCBIDCuda78. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 12.2. DriverCBIDCu64MemsetD2D8 DriverTraceCBID = 78 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cu64MemsetD2D16 in CUDA 13.5 and left slot 80 allocated, as DriverCBIDCuda80. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 12.2. DriverCBIDCu64MemsetD2D16 DriverTraceCBID = 80 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cu64MemsetD2D32 in CUDA 13.5 and left slot 82 allocated, as DriverCBIDCuda82. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 12.2. DriverCBIDCu64MemsetD2D32 DriverTraceCBID = 82 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cu64TexRefSetAddress in CUDA 13.5 and left slot 96 allocated, as DriverCBIDCuda96. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 12.2. DriverCBIDCu64TexRefSetAddress DriverTraceCBID = 96 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cu64TexRefSetAddress2D in CUDA 13.5 and left slot 98 allocated, as DriverCBIDCuda98. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 12.2. DriverCBIDCu64TexRefSetAddress2D DriverTraceCBID = 98 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cu64TexRefGetAddress in CUDA 13.5 and left slot 104 allocated, as DriverCBIDCuda104. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 12.2. DriverCBIDCu64TexRefGetAddress DriverTraceCBID = 104 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cu64GraphicsResourceGetMappedPointer in CUDA 13.5 and left slot 131 allocated, as DriverCBIDCuda131. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 12.2. DriverCBIDCu64GraphicsResourceGetMappedPointer DriverTraceCBID = 131 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cuSurfRefCreate in CUDA 13.5 and left slot 191 allocated, as DriverCBIDCuda191. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 12.2. DriverCBIDCuSurfRefCreate DriverTraceCBID = 191 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cuSurfRefDestroy in CUDA 13.5 and left slot 192 allocated, as DriverCBIDCuda192. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 12.2. DriverCBIDCuSurfRefDestroy DriverTraceCBID = 192 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cuSurfRefSetFormat in CUDA 13.5 and left slot 193 allocated, as DriverCBIDCuda193. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 12.2. DriverCBIDCuSurfRefSetFormat DriverTraceCBID = 193 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cuSurfRefGetFormat in CUDA 13.5 and left slot 195 allocated, as DriverCBIDCuda195. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 12.2. DriverCBIDCuSurfRefGetFormat DriverTraceCBID = 195 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cu64DeviceTotalMem in CUDA 13.5 and left slot 197 allocated, as DriverCBIDCuda197. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 12.2. DriverCBIDCu64DeviceTotalMem DriverTraceCBID = 197 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cu64D3D10ResourceGetMappedPointer in CUDA 13.5 and left slot 198 allocated, as DriverCBIDCuda198. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 12.2. DriverCBIDCu64D3D10ResourceGetMappedPointer DriverTraceCBID = 198 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cu64D3D10ResourceGetMappedSize in CUDA 13.5 and left slot 199 allocated, as DriverCBIDCuda199. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 12.2. DriverCBIDCu64D3D10ResourceGetMappedSize DriverTraceCBID = 199 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cu64D3D10ResourceGetMappedPitch in CUDA 13.5 and left slot 200 allocated, as DriverCBIDCuda200. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 12.2. DriverCBIDCu64D3D10ResourceGetMappedPitch DriverTraceCBID = 200 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cu64D3D10ResourceGetSurfaceDimensions in CUDA 13.5 and left slot 201 allocated, as DriverCBIDCuda201. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 12.2. DriverCBIDCu64D3D10ResourceGetSurfaceDimensions DriverTraceCBID = 201 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cu64D3D9ResourceGetSurfaceDimensions in CUDA 13.5 and left slot 202 allocated, as DriverCBIDCuda202. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 12.2. DriverCBIDCu64D3D9ResourceGetSurfaceDimensions DriverTraceCBID = 202 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cu64D3D9ResourceGetMappedPointer in CUDA 13.5 and left slot 203 allocated, as DriverCBIDCuda203. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 12.2. DriverCBIDCu64D3D9ResourceGetMappedPointer DriverTraceCBID = 203 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cu64D3D9ResourceGetMappedSize in CUDA 13.5 and left slot 204 allocated, as DriverCBIDCuda204. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 12.2. DriverCBIDCu64D3D9ResourceGetMappedSize DriverTraceCBID = 204 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cu64D3D9ResourceGetMappedPitch in CUDA 13.5 and left slot 205 allocated, as DriverCBIDCuda205. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 12.2. DriverCBIDCu64D3D9ResourceGetMappedPitch DriverTraceCBID = 205 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cu64D3D9MapVertexBuffer in CUDA 13.5 and left slot 206 allocated, as DriverCBIDCuda206. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 12.2. DriverCBIDCu64D3D9MapVertexBuffer DriverTraceCBID = 206 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cu64GLMapBufferObject in CUDA 13.5 and left slot 207 allocated, as DriverCBIDCuda207. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 12.2. DriverCBIDCu64GLMapBufferObject DriverTraceCBID = 207 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cu64GLMapBufferObjectAsync in CUDA 13.5 and left slot 208 allocated, as DriverCBIDCuda208. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 12.2. DriverCBIDCu64GLMapBufferObjectAsync DriverTraceCBID = 208 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cu64MemHostAlloc in CUDA 13.5 and left slot 215 allocated, as DriverCBIDCuda215. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 12.2. DriverCBIDCu64MemHostAlloc DriverTraceCBID = 215 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cu64MemsetD8Async in CUDA 13.5 and left slot 217 allocated, as DriverCBIDCuda217. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 12.2. DriverCBIDCu64MemsetD8Async DriverTraceCBID = 217 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cu64MemsetD16Async in CUDA 13.5 and left slot 219 allocated, as DriverCBIDCuda219. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 12.2. DriverCBIDCu64MemsetD16Async DriverTraceCBID = 219 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cu64MemsetD32Async in CUDA 13.5 and left slot 221 allocated, as DriverCBIDCuda221. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 12.2. DriverCBIDCu64MemsetD32Async DriverTraceCBID = 221 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cu64MemsetD2D8Async in CUDA 13.5 and left slot 223 allocated, as DriverCBIDCuda223. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 12.2. DriverCBIDCu64MemsetD2D8Async DriverTraceCBID = 223 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cu64MemsetD2D16Async in CUDA 13.5 and left slot 225 allocated, as DriverCBIDCuda225. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 12.2. DriverCBIDCu64MemsetD2D16Async DriverTraceCBID = 225 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cu64MemsetD2D32Async in CUDA 13.5 and left slot 227 allocated, as DriverCBIDCuda227. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 12.2. DriverCBIDCu64MemsetD2D32Async DriverTraceCBID = 227 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cu64ArrayCreate in CUDA 13.5 and left slot 228 allocated, as DriverCBIDCuda228. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 12.2. DriverCBIDCu64ArrayCreate DriverTraceCBID = 228 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cu64ArrayGetDescriptor in CUDA 13.5 and left slot 229 allocated, as DriverCBIDCuda229. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 12.2. DriverCBIDCu64ArrayGetDescriptor DriverTraceCBID = 229 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cu64Array3DCreate in CUDA 13.5 and left slot 230 allocated, as DriverCBIDCuda230. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 12.2. DriverCBIDCu64Array3DCreate DriverTraceCBID = 230 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cu64Array3DGetDescriptor in CUDA 13.5 and left slot 231 allocated, as DriverCBIDCuda231. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 12.2. DriverCBIDCu64Array3DGetDescriptor DriverTraceCBID = 231 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cu64Memcpy2D in CUDA 13.5 and left slot 232 allocated, as DriverCBIDCuda232. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 12.2. DriverCBIDCu64Memcpy2D DriverTraceCBID = 232 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cu64Memcpy2DUnaligned in CUDA 13.5 and left slot 233 allocated, as DriverCBIDCuda233. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 12.2. DriverCBIDCu64Memcpy2DUnaligned DriverTraceCBID = 233 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cu64Memcpy2DAsync in CUDA 13.5 and left slot 234 allocated, as DriverCBIDCuda234. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 12.2. DriverCBIDCu64Memcpy2DAsync DriverTraceCBID = 234 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cuMemcpy_v2 in CUDA 13.5 and left slot 248 allocated, as DriverCBIDCuda248. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 12.2. DriverCBIDCuMemcpyV2 DriverTraceCBID = 248 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cuMemHostAlloc_v2 in CUDA 13.5 and left slot 271 allocated, as DriverCBIDCuda271. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 12.2. DriverCBIDCuMemHostAllocV2 DriverTraceCBID = 271 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cuMemPeerRegister in CUDA 13.5 and left slot 315 allocated, as DriverCBIDCuda315. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 12.2. DriverCBIDCuMemPeerRegister DriverTraceCBID = 315 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cuMemPeerUnregister in CUDA 13.5 and left slot 316 allocated, as DriverCBIDCuda316. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 12.2. DriverCBIDCuMemPeerUnregister DriverTraceCBID = 316 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cuMemPeerGetDevicePointer in CUDA 13.5 and left slot 317 allocated, as DriverCBIDCuda317. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 12.2. DriverCBIDCuMemPeerGetDevicePointer DriverTraceCBID = 317 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cuCompilePtx in CUDA 13.5 and left slot 375 allocated, as DriverCBIDCuda375. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 12.2. DriverCBIDCuCompilePtx DriverTraceCBID = 375 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cuBinaryFree in CUDA 13.5 and left slot 376 allocated, as DriverCBIDCuda376. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 12.2. DriverCBIDCuBinaryFree DriverTraceCBID = 376 // // Deprecated: Use DriverCBIDCuda464. CUDA 13.5 renamed CUPTI_DRIVER_TRACE_CBID_reserved464; the value is unchanged. DriverCBIDReserved464 = DriverCBIDCuda464 // // Deprecated: Use DriverCBIDCuda465. CUDA 13.5 renamed CUPTI_DRIVER_TRACE_CBID_reserved465; the value is unchanged. DriverCBIDReserved465 = DriverCBIDCuda465 // // Deprecated: Use DriverCBIDCuda469. CUDA 13.5 renamed CUPTI_DRIVER_TRACE_CBID_reserved469; the value is unchanged. DriverCBIDReserved469 = DriverCBIDCuda469 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cuStreamSetFlags in CUDA 13.5 and left slot 559 allocated, as DriverCBIDCuda559. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 12.2. DriverCBIDCuStreamSetFlags DriverTraceCBID = 559 // // Deprecated: NVIDIA withdrew the API behind CUPTI_DRIVER_TRACE_CBID_cuStreamSetFlags_ptsz in CUDA 13.5 and left slot 560 allocated, as DriverCBIDCuda560. The value has not moved and still identifies the same call on a driver that implements it, so the name is kept for code built against CUDA 12.2. DriverCBIDCuStreamSetFlagsPtsz DriverTraceCBID = 560 // // Deprecated: Use DriverCBIDCuda786. CUDA 13.5 renamed CUPTI_DRIVER_TRACE_CBID_reserved786; the value is unchanged. DriverCBIDReserved786 = DriverCBIDCuda786 // // Deprecated: Use DriverCBIDCuda787. CUDA 13.5 renamed CUPTI_DRIVER_TRACE_CBID_reserved787; the value is unchanged. DriverCBIDReserved787 = DriverCBIDCuda787 // // Deprecated: Use DriverCBIDCuda788. CUDA 13.5 renamed CUPTI_DRIVER_TRACE_CBID_reserved788; the value is unchanged. DriverCBIDReserved788 = DriverCBIDCuda788 // // Deprecated: Use DriverCBIDCuda793. CUDA 13.5 renamed CUPTI_DRIVER_TRACE_CBID_reserved793; the value is unchanged. DriverCBIDReserved793 = DriverCBIDCuda793 // // Deprecated: Use DriverCBIDCuda794. CUDA 13.5 renamed CUPTI_DRIVER_TRACE_CBID_reserved794; the value is unchanged. DriverCBIDReserved794 = DriverCBIDCuda794 // // Deprecated: Use DriverCBIDCuda806. CUDA 13.5 renamed CUPTI_DRIVER_TRACE_CBID_reserved806; the value is unchanged. DriverCBIDReserved806 = DriverCBIDCuda806 // // Deprecated: Use DriverCBIDCuda817. CUDA 13.5 renamed CUPTI_DRIVER_TRACE_CBID_reserved817; the value is unchanged. DriverCBIDReserved817 = DriverCBIDCuda817 // // Deprecated: Use DriverCBIDCuda818. CUDA 13.5 renamed CUPTI_DRIVER_TRACE_CBID_reserved818; the value is unchanged. DriverCBIDReserved818 = DriverCBIDCuda818 // // Deprecated: Use DriverCBIDCuda819. CUDA 13.5 renamed CUPTI_DRIVER_TRACE_CBID_reserved819; the value is unchanged. DriverCBIDReserved819 = DriverCBIDCuda819 // // Deprecated: Use DriverCBIDCuda823. CUDA 13.5 renamed CUPTI_DRIVER_TRACE_CBID_reserved823; the value is unchanged. DriverCBIDReserved823 = DriverCBIDCuda823 // // Deprecated: Use DriverCBIDCuda824. CUDA 13.5 renamed CUPTI_DRIVER_TRACE_CBID_reserved824; the value is unchanged. DriverCBIDReserved824 = DriverCBIDCuda824 // // Deprecated: Use DriverCBIDCuda825. CUDA 13.5 renamed CUPTI_DRIVER_TRACE_CBID_reserved825; the value is unchanged. DriverCBIDReserved825 = DriverCBIDCuda825 // // Deprecated: Use DriverCBIDCuda826. CUDA 13.5 renamed CUPTI_DRIVER_TRACE_CBID_reserved826; the value is unchanged. DriverCBIDReserved826 = DriverCBIDCuda826 // // Deprecated: Use DriverCBIDCuda827. CUDA 13.5 renamed CUPTI_DRIVER_TRACE_CBID_reserved827; the value is unchanged. DriverCBIDReserved827 = DriverCBIDCuda827 // // Deprecated: Use DriverCBIDCuda828. CUDA 13.5 renamed CUPTI_DRIVER_TRACE_CBID_reserved828; the value is unchanged. DriverCBIDReserved828 = DriverCBIDCuda828 // // Deprecated: Use DriverCBIDCuda829. CUDA 13.5 renamed CUPTI_DRIVER_TRACE_CBID_reserved829; the value is unchanged. DriverCBIDReserved829 = DriverCBIDCuda829 // // Deprecated: Use DriverCBIDCuda830. CUDA 13.5 renamed CUPTI_DRIVER_TRACE_CBID_reserved830; the value is unchanged. DriverCBIDReserved830 = DriverCBIDCuda830 // // Deprecated: Use DriverCBIDCuda833. CUDA 13.5 renamed CUPTI_DRIVER_TRACE_CBID_reserved833; the value is unchanged. DriverCBIDReserved833 = DriverCBIDCuda833 // // Deprecated: Use DriverCBIDCuda834. CUDA 13.5 renamed CUPTI_DRIVER_TRACE_CBID_reserved834; the value is unchanged. DriverCBIDReserved834 = DriverCBIDCuda834 // // Deprecated: Use DriverCBIDCuda862. CUDA 13.5 renamed CUPTI_DRIVER_TRACE_CBID_reserved862; the value is unchanged. DriverCBIDReserved862 = DriverCBIDCuda862 // // Deprecated: Use DriverCBIDCuda464. CUDA 13.3 renamed CUPTI_DRIVER_TRACE_CBID_cuNVNbufferGetPointer; the value is unchanged. DriverCBIDCuNVNbufferGetPointer = DriverCBIDCuda464 // // Deprecated: Use DriverCBIDCuda465. CUDA 13.3 renamed CUPTI_DRIVER_TRACE_CBID_cuNVNtextureGetArray; the value is unchanged. DriverCBIDCuNVNtextureGetArray = DriverCBIDCuda465 // // Deprecated: Use DriverCBIDCuda469. CUDA 13.3 renamed CUPTI_DRIVER_TRACE_CBID_cuEventCreateFromNVNSync; the value is unchanged. DriverCBIDCuEventCreateFromNVNSync = DriverCBIDCuda469 )
func (DriverTraceCBID) String ¶
func (e DriverTraceCBID) String() string
String returns the constant name, or a numeric representation for unknown values.
type EnvironmentClocksThrottleReason ¶
type EnvironmentClocksThrottleReason uint32
EnvironmentClocksThrottleReason represents reasons for clock throttling.
The possible reasons that a clock can be throttled. There can be more than one reason that a clock is being throttled so these types can be combined by bitwise OR. These are used in the clocksThrottleReason field in the Environment Activity Record.
const ( // ClocksThrottleReasonGpuIdle: Nothing is running on the GPU and the clocks are dropping to idle state. ClocksThrottleReasonGpuIdle EnvironmentClocksThrottleReason = 0x00000001 ClocksThrottleReasonUserDefinedClocks EnvironmentClocksThrottleReason = 0x00000002 // The GPU clocks are limited by a user specified limit. // ClocksThrottleReasonSwPowerCap: A software power scaling algorithm is reducing the clocks below requested clocks. ClocksThrottleReasonSwPowerCap EnvironmentClocksThrottleReason = 0x00000004 // ClocksThrottleReasonHwSlowdown: Hardware slowdown to reduce the clock by a factor of two or more is engaged. This is an indicator of one of the following: 1) Temperature is too high, 2) External power brake assertion is being triggered (e.g. by the system power supply), 3) Change in power state. ClocksThrottleReasonHwSlowdown EnvironmentClocksThrottleReason = 0x00000008 ClocksThrottleReasonUnknown EnvironmentClocksThrottleReason = 0x80000000 // Some unspecified factor is reducing the clocks. ClocksThrottleReasonUnsupported EnvironmentClocksThrottleReason = 0x40000000 // Throttle reason is not supported for this GPU. ClocksThrottleReasonNone EnvironmentClocksThrottleReason = 0x00000000 // No clock throttling. ClocksThrottleReasonForceInt EnvironmentClocksThrottleReason = 0x7fffffff )
func (EnvironmentClocksThrottleReason) String ¶
func (e EnvironmentClocksThrottleReason) String() string
String returns the constant name, or a numeric representation for unknown values.
type EventAttribute ¶
type EventAttribute int32
EventAttribute represents event attributes.
Event attributes. These attributes can be read using EventGetAttribute.
const ( EventAttrName EventAttribute = 0 // Event name. Value is a null terminated const c-string. // EventAttrShortDescription: Short description of event. Value is a null terminated const c-string. EventAttrShortDescription EventAttribute = 1 // EventAttrLongDescription: Long description of event. Value is a null terminated const c-string. EventAttrLongDescription EventAttribute = 2 EventAttrCategory EventAttribute = 3 // Category of event. Value is [EventCategory]. // EventAttrProfilingScope: Profiling scope of the events. It can be either device or context or both. Value is a [EventProfilingScope]. EventAttrProfilingScope EventAttribute = 5 EventAttrForceInt EventAttribute = 0x7fffffff )
func (EventAttribute) String ¶
func (e EventAttribute) String() string
String returns the constant name, or a numeric representation for unknown values.
type EventCategory ¶
type EventCategory int32
EventCategory represents an event category.
Each event is assigned to a category that represents the general type of the event. A event's category is accessed using EventGetAttribute and the EventAttrCategory attribute.
const ( EventCategoryInstruction EventCategory = 0 // An instruction related event. EventCategoryMemory EventCategory = 1 // A memory related event. EventCategoryCache EventCategory = 2 // A cache related event. EventCategoryProfileTrigger EventCategory = 3 // A profile-trigger event. EventCategorySystem EventCategory = 4 // A system event. EventCategoryForceInt EventCategory = 0x7fffffff )
func (EventCategory) String ¶
func (e EventCategory) String() string
String returns the constant name, or a numeric representation for unknown values.
type EventCollectionMethod ¶
type EventCollectionMethod int32
EventCollectionMethod represents the collection method used for an event.
The collection method indicates how an event is collected.
const ( // EventCollectionMethodPm: Event is collected using a hardware global performance monitor. EventCollectionMethodPm EventCollectionMethod = 0 EventCollectionMethodSm EventCollectionMethod = 1 // Event is collected using a hardware SM performance monitor. EventCollectionMethodInstrumented EventCollectionMethod = 2 // Event is collected using software instrumentation. EventCollectionMethodNvlinkTc EventCollectionMethod = 3 // Event is collected using NvLink throughput counter method. EventCollectionMethodForceInt EventCollectionMethod = 0x7fffffff )
func (EventCollectionMethod) String ¶
func (e EventCollectionMethod) String() string
String returns the constant name, or a numeric representation for unknown values.
type EventCollectionMode ¶
type EventCollectionMode int32
EventCollectionMode represents event collection modes.
The event collection mode determines the period over which the events within the enabled event groups will be collected.
const ( // EventCollectionModeContinuous: Events are collected for the entire duration between the [EventGroup.Enable] and [EventGroup.Disable] calls. Event values are reset when the events are read. For CUDA toolkit v6.0 and older this was the default mode. EventCollectionModeContinuous EventCollectionMode = 0 // EventCollectionModeKernel: Events are collected only for the durations of kernel executions that occur between the [EventGroup.Enable] and [EventGroup.Disable] calls. Event collection begins when a kernel execution begins, and stops when kernel execution completes. Event values are reset to zero when each kernel execution begins. If multiple kernel executions occur between the [EventGroup.Enable] and [EventGroup.Disable] calls then the event values must be read after each kernel launch if those events need to be associated with the specific kernel launch. Note that collection in this mode may significantly change the overall performance characteristics of the application because kernel executions that occur between the [EventGroup.Enable] and [EventGroup.Disable] calls are serialized on the GPU. This is the default mode from CUDA toolkit v6.5 EventCollectionModeKernel EventCollectionMode = 1 EventCollectionModeForceInt EventCollectionMode = 0x7fffffff )
func (EventCollectionMode) String ¶
func (e EventCollectionMode) String() string
String returns the constant name, or a numeric representation for unknown values.
type EventDomainAttribute ¶
type EventDomainAttribute int32
EventDomainAttribute represents event domain attributes.
Event domain attributes. Except where noted, all the attributes can be read using either DeviceGetEventDomainAttribute or EventDomainGetAttribute.
const ( // EventDomainAttrName: Event domain name. Value is a null terminated const c-string. EventDomainAttrName EventDomainAttribute = 0 // EventDomainAttrInstanceCount: Number of instances of the domain for which event counts will be collected. The domain may have additional instances that cannot be profiled (see [EventDomainAttrTotalInstanceCount]). Can be read only with [DeviceGetEventDomainAttribute]. Value is a uint32_t. EventDomainAttrInstanceCount EventDomainAttribute = 1 // EventDomainAttrTotalInstanceCount: Total number of instances of the domain, including instances that cannot be profiled. Use [EventDomainAttrInstanceCount] to get the number of instances that can be profiled. Can be read only with [DeviceGetEventDomainAttribute]. Value is a uint32_t. EventDomainAttrTotalInstanceCount EventDomainAttribute = 3 // EventDomainAttrCollectionMethod: Collection method used for events contained in the event domain. Value is a [EventCollectionMethod]. EventDomainAttrCollectionMethod EventDomainAttribute = 4 EventDomainAttrForceInt EventDomainAttribute = 0x7fffffff )
func (EventDomainAttribute) String ¶
func (e EventDomainAttribute) String() string
String returns the constant name, or a numeric representation for unknown values.
type EventGroup ¶
type EventGroup uintptr
EventGroup is an opaque handle for CUpti_EventGroup.
func NewEventGroup
deprecated
func NewEventGroup(context driver.Context, flags uint32) (EventGroup, error)
NewEventGroup creates a new event group for a context.
Creates a new event group for context and returns the new group.
- context: The context for the event group
- eventGroup: Returns the new event group
- flags: Reserved - must be zero
Errors:
- ErrNotInitialized
- ErrInvalidContext
- ErrOutOfMemory
- ErrInvalidParameter: if eventGroup is NULL
Wraps cuptiEventGroupCreate.
Deprecated: Deprecated by NVIDIA. Unsupported since CUDA 13.0, where it always returns ErrLegacyProfilerNotSupported; use the range profiler API, starting with RangeProfilerEnable.
func (EventGroup) AddEvent
deprecated
func (e EventGroup) AddEvent(event uint32) error
AddEvent adds an event to an event group.
The event add can fail for a number of reasons:
- The event group is enabled
- The event does not belong to the same event domain as the events that are already in the event group
- Device limitations on the events that can belong to the same group
- The event group is full
Parameters:
- event: The event to add to the group
Errors:
- ErrNotInitialized
- ErrInvalidEventId
- ErrOutOfMemory
- ErrInvalidOperation: if eventGroup is enabled
- ErrNotCompatible: if event belongs to a different event domain than the events already in eventGroup, or if a device limitation prevents event from being collected at the same time as the events already in eventGroup
- ErrMaxLimitReached: if eventGroup is full
- ErrInvalidParameter: if eventGroup is NULL
Wraps cuptiEventGroupAddEvent.
Deprecated: Deprecated by NVIDIA. Unsupported since CUDA 13.0, where it always returns ErrLegacyProfilerNotSupported; use the range profiler API, starting with RangeProfilerEnable.
func (EventGroup) Attribute
deprecated
func (e EventGroup) Attribute(attrib EventGroupAttribute, valueSize *uint, value unsafe.Pointer) error
Attribute reads an event group attribute.
Read an event group attribute and return it in *value. must guard against simultaneous destruction or modification of eventGroup (for example, client must guard against simultaneous calls to EventGroup.Close, EventGroup.AddEvent, etc.), and must guard against simultaneous destruction of the context in which eventGroup was created (for example, client must guard against simultaneous calls to cudaDeviceReset, cuCtxDestroy, etc.).
- attrib: The attribute to read
- valueSize: Size of buffer pointed by the value, and returns the number of bytes written to value
- value: Returns the value of the attribute
Errors:
- ErrNotInitialized
- ErrInvalidParameter: if valueSize or value is NULL, or if attrib is not an eventgroup attribute
- ErrParameterSizeNotSufficient: For non-c-string attribute values, indicates that the value buffer is too small to hold the attribute value.
Wraps cuptiEventGroupGetAttribute.
Deprecated: Deprecated by NVIDIA. Unsupported since CUDA 13.0, where it always returns ErrLegacyProfilerNotSupported; use the range profiler API, starting with RangeProfilerEnable.
func (*EventGroup) Close
deprecated
func (e *EventGroup) Close() error
Close destroys an event group.
Destroy an eventGroup and free its resources. An event group cannot be destroyed if it is enabled.
Errors:
- ErrNotInitialized
- ErrInvalidOperation: if the event group is enabled
- ErrInvalidParameter: if eventGroup is NULL
If e is zero, Close returns nil. Otherwise Close sets e to zero when the call succeeds and leaves it unchanged when it fails. Only e is zeroed: a copy of it still refers to the released object.
Wraps cuptiEventGroupDestroy.
Deprecated: Deprecated by NVIDIA. Unsupported since CUDA 13.0, where it always returns ErrLegacyProfilerNotSupported; use the range profiler API, starting with RangeProfilerEnable.
func (EventGroup) Destroy
deprecated
func (EventGroup) Disable
deprecated
func (e EventGroup) Disable() error
Disable disables an event group.
Disabling an event group stops collection of events contained in the group.
Errors:
- ErrNotInitialized
- ErrHardware
- ErrInvalidParameter: if eventGroup is NULL
Wraps cuptiEventGroupDisable.
Deprecated: Deprecated by NVIDIA. Unsupported since CUDA 13.0, where it always returns ErrLegacyProfilerNotSupported; use the range profiler API, starting with RangeProfilerEnable.
func (EventGroup) Enable
deprecated
func (e EventGroup) Enable() error
Enable enables an event group.
Enabling an event group zeros the value of all the events in the group and then starts collection of those events.
Errors:
- ErrNotInitialized
- ErrHardware
- ErrNotReady: if eventGroup does not contain any events
- ErrNotCompatible: if eventGroup cannot be enabled due to other already enabled event groups
- ErrInvalidParameter: if eventGroup is NULL
- ErrHardwareBusy: if another client is profiling and hardware is busy
Wraps cuptiEventGroupEnable.
Deprecated: Deprecated by NVIDIA. Unsupported since CUDA 13.0, where it always returns ErrLegacyProfilerNotSupported; use the range profiler API, starting with RangeProfilerEnable.
func (EventGroup) ReadAllEvents
deprecated
func (e EventGroup) ReadAllEvents(flags ReadEventFlags, eventValueBuffer []uint64, eventIdArray []uint32) (int, error)
ReadAllEvents reads the values for all the events in an event group.
The event values are returned in the eventValueBuffer buffer. The buffer must be at least (sizeof(uint64) * number of events in group) if EventGroupAttrProfileAllDomainInstances is not set on the group containing the events. The buffer must be at least (sizeof(uint64) * number of domain instances * number of events in group) if EventGroupAttrProfileAllDomainInstances is set on the group.
The data format returned in eventValueBuffer is:
- domain instance 0: event0 event1 ... eventN
- domain instance 1: event0 event1 ... eventN
- ...
- domain instance M: event0 event1 ... eventN
The event order in eventValueBuffer is returned in eventIdArray. The size should be at least (sizeof(CUpti_EventID) * number of events in group).
If any instance of any event counter overflows, the value returned for that event instance will be CUPTI_EVENT_OVERFLOW.
The only allowed value for flags is EventReadFlagNone.
Reading events from a disabled event group is not allowed. After being read, an event's value is reset to zero. must guard against simultaneous destruction or modification of eventGroup (for example, client must guard against simultaneous calls to EventGroup.Close, EventGroup.AddEvent, etc.), and must guard against simultaneous destruction of the context in which eventGroup was created (for example, client must guard against simultaneous calls to cudaDeviceReset, cuCtxDestroy, etc.). If EventGroup.ResetAllEvents is called simultaneously with this function, then returned event values are undefined.
- flags: Flags controlling the reading mode
- eventValueBuffer: Returns the event values
- eventIdArray: Returns the IDs of the events in the same order as the values return in eventValueBuffer
- numEventIdsRead: Returns the number of event IDs returned in eventIdArray
Errors:
- ErrNotInitialized
- ErrHardware
- ErrInvalidOperation: if eventGroup is disabled
- ErrInvalidParameter: if eventGroup, eventValueBufferSizeBytes, eventValueBuffer, eventIdArraySizeBytes, eventIdArray or numEventIdsRead is NULL
- ErrParameterSizeNotSufficient: if size of eventValueBuffer or eventIdArray is not sufficient
Wraps cuptiEventGroupReadAllEvents.
Deprecated: Deprecated by NVIDIA. Unsupported since CUDA 13.0, where it always returns ErrLegacyProfilerNotSupported; use the range profiler API, starting with RangeProfilerEnable.
func (EventGroup) ReadEvent
deprecated
func (e EventGroup) ReadEvent(flags ReadEventFlags, event uint32, eventValueBufferSizeBytes *uint, eventValueBuffer *uint64) error
ReadEvent reads the value for an event in an event group.
The event value is returned in the eventValueBuffer buffer. eventValueBufferSizeBytes indicates the size of the eventValueBuffer buffer. The buffer must be at least sizeof(uint64) if EventGroupAttrProfileAllDomainInstances is not set on the group containing the event. The buffer must be at least (sizeof(uint64) * number of domain instances) if EventGroupAttrProfileAllDomainInstances is set on the group.
If any instance of an event counter overflows, the value returned for that event instance will be CUPTI_EVENT_OVERFLOW.
The only allowed value for flags is EventReadFlagNone.
Reading an event from a disabled event group is not allowed. After being read, an event's value is reset to zero. must guard against simultaneous destruction or modification of eventGroup (for example, client must guard against simultaneous calls to EventGroup.Close, EventGroup.AddEvent, etc.), and must guard against simultaneous destruction of the context in which eventGroup was created (for example, client must guard against simultaneous calls to cudaDeviceReset, cuCtxDestroy, etc.). If EventGroup.ResetAllEvents is called simultaneously with this function, then returned event values are undefined.
- flags: Flags controlling the reading mode
- event: The event to read
- eventValueBufferSizeBytes: The size of eventValueBuffer in bytes, and returns the number of bytes written to eventValueBuffer
- eventValueBuffer: Returns the event value(s)
Errors:
- ErrNotInitialized
- ErrInvalidEventId
- ErrHardware
- ErrInvalidOperation: if eventGroup is disabled
- ErrInvalidParameter: if eventGroup, eventValueBufferSizeBytes or eventValueBuffer is NULL
- ErrParameterSizeNotSufficient: if size of eventValueBuffer is not sufficient
Wraps cuptiEventGroupReadEvent.
Deprecated: Deprecated by NVIDIA. Unsupported since CUDA 13.0, where it always returns ErrLegacyProfilerNotSupported; use the range profiler API, starting with RangeProfilerEnable.
func (EventGroup) RemoveAllEvents
deprecated
func (e EventGroup) RemoveAllEvents() error
RemoveAllEvents removes all events from an event group.
Events cannot be removed if the event group is enabled.
Errors:
- ErrNotInitialized
- ErrInvalidOperation: if eventGroup is enabled
- ErrInvalidParameter: if eventGroup is NULL
Wraps cuptiEventGroupRemoveAllEvents.
Deprecated: Deprecated by NVIDIA. Unsupported since CUDA 13.0, where it always returns ErrLegacyProfilerNotSupported; use the range profiler API, starting with RangeProfilerEnable.
func (EventGroup) RemoveEvent
deprecated
func (e EventGroup) RemoveEvent(event uint32) error
RemoveEvent removes an event from an event group.
Remove event from the an event group. The event cannot be removed if the event group is enabled.
- event: The event to remove from the group
Errors:
- ErrNotInitialized
- ErrInvalidEventId
- ErrInvalidOperation: if eventGroup is enabled
- ErrInvalidParameter: if eventGroup is NULL
Wraps cuptiEventGroupRemoveEvent.
Deprecated: Deprecated by NVIDIA. Unsupported since CUDA 13.0, where it always returns ErrLegacyProfilerNotSupported; use the range profiler API, starting with RangeProfilerEnable.
func (EventGroup) ResetAllEvents
deprecated
func (e EventGroup) ResetAllEvents() error
ResetAllEvents zeroes the counts of all the events in the event group.
Zero all the event counts in an event group.
must guard against simultaneous destruction or modification of eventGroup (for example, client must guard against simultaneous calls to EventGroup.Close, EventGroup.AddEvent, etc.), and must guard against simultaneous destruction of the context in which eventGroup was created (for example, client must guard against simultaneous calls to cudaDeviceReset, cuCtxDestroy, etc.).
Errors:
- ErrNotInitialized
- ErrHardware
- ErrInvalidParameter: if eventGroup is NULL
Wraps cuptiEventGroupResetAllEvents.
Deprecated: Deprecated by NVIDIA. Unsupported since CUDA 13.0, where it always returns ErrLegacyProfilerNotSupported; use the range profiler API, starting with RangeProfilerEnable.
func (EventGroup) SetAttribute
deprecated
func (e EventGroup) SetAttribute(attrib EventGroupAttribute, valueSize uint, value unsafe.Pointer) error
SetAttribute writes an event group attribute.
- attrib: The attribute to write
- valueSize: The size, in bytes, of the value
- value: The attribute value to write
Errors:
- ErrNotInitialized
- ErrInvalidParameter: if valueSize or value is NULL, or if attrib is not an event group attribute, or if attrib is not a writable attribute
- ErrParameterSizeNotSufficient: Indicates that the value buffer is too small to hold the attribute value.
Wraps cuptiEventGroupSetAttribute.
Deprecated: Deprecated by NVIDIA. Unsupported since CUDA 13.0, where it always returns ErrLegacyProfilerNotSupported; use the range profiler API, starting with RangeProfilerEnable.
type EventGroupAttribute ¶
type EventGroupAttribute int32
EventGroupAttribute represents event group attributes.
Event group attributes. These attributes can be read using EventGroup.Attribute. Attributes marked [rw] can also be written using EventGroup.SetAttribute.
const ( // EventGroupAttrEventDomainId: The domain to which the event group is bound. This attribute is set when the first event is added to the group. Value is a CUpti_EventDomainID. EventGroupAttrEventDomainId EventGroupAttribute = 0 // EventGroupAttrProfileAllDomainInstances: [rw] Profile all the instances of the domain for this eventgroup. This feature can be used to get load balancing across all instances of a domain. Value is an integer. EventGroupAttrProfileAllDomainInstances EventGroupAttribute = 1 EventGroupAttrUserData EventGroupAttribute = 2 // [rw] Reserved for user data. EventGroupAttrNumEvents EventGroupAttribute = 3 // Number of events in the group. Value is a uint32_t. // EventGroupAttrEvents: Enumerates events in the group. Value is a pointer to buffer of size sizeof(CUpti_EventID) * num_of_events in the eventgroup. num_of_events can be queried using [EventGroupAttrNumEvents]. EventGroupAttrEvents EventGroupAttribute = 4 // EventGroupAttrInstanceCount: Number of instances of the domain bound to this event group that will be counted. Value is a uint32_t. EventGroupAttrInstanceCount EventGroupAttribute = 5 // EventGroupAttrProfilingScope: Event group scope can be set to [EventProfilingScopeDevice] or [EventProfilingScopeContext] for an eventGroup, before adding any event. Sets the scope of eventgroup as [EventProfilingScopeDevice] or [EventProfilingScopeContext] when the scope of the events that will be added is [EventProfilingScopeBoth]. If profiling scope of event is either [EventProfilingScopeDevice] or [EventProfilingScopeContext] then setting this attribute will not affect the default scope. It is not allowed to add events of different scope to same eventgroup. Value is a uint32_t. EventGroupAttrProfilingScope EventGroupAttribute = 6 EventGroupAttrForceInt EventGroupAttribute = 0x7fffffff )
func (EventGroupAttribute) String ¶
func (e EventGroupAttribute) String() string
String returns the constant name, or a numeric representation for unknown values.
type EventGroupSet ¶
EventGroupSet represents a set of event groups.
A set of event groups. When returned by EventGroupSetsCreate and MetricCreateEventGroupSets a set indicates that event groups that can be enabled at the same time (i.e. all the events in the set can be collected simultaneously).
type EventGroupSets ¶
EventGroupSets represents a set of event group sets.
A set of event group sets. When returned by EventGroupSetsCreate and MetricCreateEventGroupSets a EventGroupSets indicates the number of passes required to collect all the events, and the event groups that should be collected during each pass.
func EventGroupSetsCreate
deprecated
func EventGroupSetsCreate(context driver.Context, eventIdArraySizeBytes uint, eventIdArray *uint32) (eventGroupPasses *EventGroupSets, err error)
EventGroupSetsCreate returns the event groups, one set per pass, needed to collect a set of events.
For a set of events, get the grouping that indicates the number of passes and the event groups necessary to collect the events.
The number of events that can be collected simultaneously varies by device and by the type of the events. When events can be collected simultaneously, they may need to be grouped into multiple event groups because they are from different event domains. This function takes a set of events and determines how many passes are required to collect all those events, and which events can be collected simultaneously in each pass.
The EventGroupSets returned in eventGroupPasses indicates how many passes are required to collect the events with the numSets field. Within each event group set, the sets array indicates the event groups that should be collected on each pass. must guard against another thread simultaneously destroying context.
- context: The context for event collection
- eventIdArraySizeBytes: Size of eventIdArray in bytes
- eventIdArray: Array of event IDs that need to be grouped
- eventGroupPasses: Returns a EventGroupSets object that indicates the number of passes required to collect the events and the events to collect on each pass
Errors:
- ErrNotInitialized
- ErrInvalidContext
- ErrInvalidEventId
- ErrInvalidParameter: if eventIdArray or eventGroupPasses is NULL
Wraps cuptiEventGroupSetsCreate.
Deprecated: Deprecated by NVIDIA. Unsupported since CUDA 13.0, where it always returns ErrLegacyProfilerNotSupported; use the range profiler API, starting with RangeProfilerEnable.
func MetricCreateEventGroupSets
deprecated
func MetricCreateEventGroupSets(context driver.Context, metricIdArraySizeBytes uint, metricIdArray *uint32) (eventGroupPasses *EventGroupSets, err error)
MetricCreateEventGroupSets returns the event groups, one set per pass, needed to collect the events a set of metrics requires.
For a set of metrics, get the grouping that indicates the number of passes and the event groups necessary to collect the events required for those metrics.
For a set of metrics, get the grouping that indicates the number of passes and the event groups necessary to collect the events required for those metrics.
EventGroupSetsCreate for details on event group set creation.
- context: The context for event collection
- metricIdArraySizeBytes: Size of the metricIdArray in bytes
- metricIdArray: Array of metric IDs
- eventGroupPasses: Returns a EventGroupSets object that indicates the number of passes required to collect the events and the events to collect on each pass
Errors:
- ErrNotInitialized
- ErrInvalidContext
- ErrInvalidMetricId
- ErrInvalidParameter: if metricIdArray or eventGroupPasses is NULL
Wraps cuptiMetricCreateEventGroupSets.
Deprecated: Deprecated by NVIDIA. Unsupported since CUDA 13.0, where it always returns ErrLegacyProfilerNotSupported; use the range profiler API, starting with RangeProfilerEnable.
func MetricGetRequiredEventGroupSets
deprecated
func MetricGetRequiredEventGroupSets(context driver.Context, metric uint32) (eventGroupSets *EventGroupSets, err error)
MetricGetRequiredEventGroupSets returns the groups of events that must be collected in the same pass for the metric to be computed correctly.
For a metric get the groups of events that must be collected in the same pass.
For a metric get the groups of events that must be collected in the same pass to ensure that the metric is calculated correctly. If the events are not collected as specified then the metric value may be inaccurate.
The function returns NULL if a metric does not have any required event group. In this case the events needed for the metric can be grouped in any manner for collection.
- context: The context for event collection
- metric: The metric ID
- eventGroupSets: Returns a EventGroupSets object that indicates the events that must be collected in the same pass to ensure the metric is calculated correctly. Returns NULL if no grouping is required for metric
Errors:
Wraps cuptiMetricGetRequiredEventGroupSets.
Deprecated: Deprecated by NVIDIA. Unsupported since CUDA 13.0, where it always returns ErrLegacyProfilerNotSupported; use the range profiler API, starting with RangeProfilerEnable.
type EventProfilingScope ¶
type EventProfilingScope int32
EventProfilingScope represents profiling scope for event.
Profiling scope of event indicates if the event can be collected at context scope or device scope or both i.e. it can be collected at any of context or device scope.
const ( EventProfilingScopeContext EventProfilingScope = 0 // Event is collected at context scope. EventProfilingScopeDevice EventProfilingScope = 1 // Event is collected at device scope. // EventProfilingScopeBoth: Event can be collected at device or context scope. The scope can be set using [EventGroup.SetAttribute] API. EventProfilingScopeBoth EventProfilingScope = 2 EventProfilingScopeForceInt EventProfilingScope = 0x7fffffff )
func (EventProfilingScope) String ¶
func (e EventProfilingScope) String() string
String returns the constant name, or a numeric representation for unknown values.
type ExternalCorrelationKind ¶
type ExternalCorrelationKind int32
ExternalCorrelationKind represents the kind of external APIs supported for correlation.
Custom correlation kinds are reserved for usage in external tools. See also ActivityExternalCorrelation
const ( ExternalCorrelationKindInvalid ExternalCorrelationKind = 0 ExternalCorrelationKindUnknown ExternalCorrelationKind = 1 // The external API is unknown to CUPTI ExternalCorrelationKindOpenacc ExternalCorrelationKind = 2 // The external API is OpenACC ExternalCorrelationKindCustom0 ExternalCorrelationKind = 3 // The external API is custom0 ExternalCorrelationKindCustom1 ExternalCorrelationKind = 4 // The external API is custom1 ExternalCorrelationKindCustom2 ExternalCorrelationKind = 5 // The external API is custom2 ExternalCorrelationKindSize ExternalCorrelationKind = 6 // Add new kinds before this line. ExternalCorrelationKindForceInt ExternalCorrelationKind = 0x7fffffff )
func (ExternalCorrelationKind) String ¶
func (e ExternalCorrelationKind) String() string
String returns the constant name, or a numeric representation for unknown values.
type FuncExecutionModel ¶
type FuncExecutionModel int32
FuncExecutionModel represents the execution model of a kernel function.
This should be used to set executionModel field in kernel records.
const ( FuncExecutionModelUnknown FuncExecutionModel = 0 FuncExecutionModelSimt FuncExecutionModel = 1 FuncExecutionModelTile FuncExecutionModel = 2 FuncExecutionModelHybrid FuncExecutionModel = 3 FuncExecutionModelSize FuncExecutionModel = 4 FuncExecutionModelForceInt FuncExecutionModel = 0x7fffffff )
func (FuncExecutionModel) String ¶
func (e FuncExecutionModel) String() string
String returns the constant name, or a numeric representation for unknown values.
type FuncShmemLimitConfig ¶
type FuncShmemLimitConfig int32
FuncShmemLimitConfig represents the shared memory limit per block config for a kernel This should be used to set ‘cudaOccFuncShmemConfig’ field in occupancy calculator API.
const ( FuncShmemLimitDefault FuncShmemLimitConfig = 0x00 // The shared memory limit config is default. // FuncShmemLimitOptin: User has opted for a higher dynamic shared memory limit using function attribute ‘cudaFuncAttributeMaxDynamicSharedMemorySize’ for runtime API or CU_FUNC_ATTRIBUTE_MAX_DYNAMIC_SHARED_SIZE_BYTES for driver API. FuncShmemLimitOptin FuncShmemLimitConfig = 0x01 FuncShmemLimitForceInt FuncShmemLimitConfig = 0x7fffffff )
func (FuncShmemLimitConfig) String ¶
func (e FuncShmemLimitConfig) String() string
String returns the constant name, or a numeric representation for unknown values.
type GetCubinCrcParams ¶
GetCubinCrcParams represents params for GetCubinCrc.
type GetSassToSourceCorrelationParams ¶
type GetSassToSourceCorrelationParams struct {
Size uint
Cubin uintptr
FunctionName uintptr
CubinSize uint
LineNumber uint32
PcOffset uint64
FileName uintptr
DirName uintptr
}
GetSassToSourceCorrelationParams represents params for GetSassToSourceCorrelation.
type GraphData ¶
type GraphData struct {
Graph Graph
OriginalGraph Graph
Node GraphNode
OriginalNode GraphNode
NodeType int32
Dependency GraphNode
GraphExec GraphExec
}
GraphData represents CUDA graphs data passed into a resource callback function.
CUDA graphs data passed into a resource callback function as the cbdata argument to CallbackFunc. The cbdata will be this type for domain equal to CbDomainResource. The graph data is valid only within the invocation of the callback function that is passed the data. If you need to retain some data for use outside of the callback, you must make a copy of that data.
type GraphExec ¶
type GraphExec uintptr
GraphExec is an opaque handle to an instantiated CUDA graph.
type KernelReplayUpdateFunc ¶
KernelReplayUpdateFunc is the Go form of CUpti_KernelReplayUpdateFunc.
It corresponds to the C signature
typedef void (CUPTIAPI *CUpti_KernelReplayUpdateFunc)(const char *kernelName, int numReplaysDone, void *customData);
Pass one to the API by converting it with purego.NewCallback, which is why every pointer argument is a uintptr rather than a Go pointer: the memory belongs to the C library and must not be traced by the collector.
type LibraryAttempt ¶
LibraryAttempt records one failed attempt to open the shared library.
type LibraryConflictError ¶
type LibraryConflictError struct {
Loaded string
Requested string
// Implicit reports that the loaded library was opened lazily and no
// successful Load has since acknowledged it. A
// caller that sees this called some
// other function first, and that call took the default search list.
Implicit bool
}
LibraryConflictError reports a Load call naming a different library than the one already loaded. Only one library is loaded per process.
func (*LibraryConflictError) Error ¶
func (e *LibraryConflictError) Error() string
Error reports the conflicting library paths, and whether the library that is already loaded got there without a Load call.
type LibraryError ¶
type LibraryError struct {
Library string
Env string
Path string
Attempts []LibraryAttempt
Hint string
}
LibraryError reports that libcupti could not be opened. Attempts lists every name tried in order. Path is set when an explicit path, from Load or CUPTI_LIB_PATH, was requested and failed. Hint reports pkg-config discovery results and query failures, when discovery ran.
func (*LibraryError) Error ¶
func (e *LibraryError) Error() string
Error describes the library load attempts and their errors.
func (*LibraryError) Unwrap ¶
func (e *LibraryError) Unwrap() []error
Unwrap returns the error from each attempt.
type LinkFlag ¶
type LinkFlag int32
LinkFlag represents link flags.
Describes link properties, to be used with ActivityNvLink.
const ( LinkFlagInvalid LinkFlag = 0 // The flag is invalid. LinkFlagPeerAccess LinkFlag = 1 << 1 // Is peer to peer access supported by this link. LinkFlagSysmemAccess LinkFlag = 1 << 2 // Is system memory access supported by this link. LinkFlagPeerAtomics LinkFlag = 1 << 3 // Is peer atomic access supported by this link. LinkFlagSysmemAtomics LinkFlag = 1 << 4 // Is system memory atomic access supported by this link. LinkFlagForceInt LinkFlag = 0x7fffffff )
type LogicalEndpointResourceData ¶
type LogicalEndpointResourceData struct {
LogicalEndpointId uint32
Type LogicalEndpointType
Size uint64
TypeInfo [1]uint32
Flags uint32
}
LogicalEndpointResourceData represents logical endpoint data passed into a resource callback function.
Logical endpoint data passed into a resource callback function as the cbdata argument to CallbackFunc. The cbdata will be this type for domain equal to CbDomainResource and cbid equal to CbidResourceLogicalEndpointCreated or CbidResourceLogicalEndpointDestroyed. The data is valid only within the invocation of the callback function that is passed the data. If you need to retain some data for use outside of the callback, you must make a copy of that data.
type LogicalEndpointType ¶
type LogicalEndpointType int32
LogicalEndpointType represents logical endpoint type reported in LogicalEndpointResourceData.
These values mirror the CUDA driver's CUlogicalEndpointType.
const ( LogicalEndpointTypeInvalid LogicalEndpointType = 0 // Invalid logical endpoint type. // LogicalEndpointTypeUnicast: Unicast logical endpoint. The unicastDeviceId field is valid. LogicalEndpointTypeUnicast LogicalEndpointType = 1 // LogicalEndpointTypeMulticast: Multicast logical endpoint. The multicastTeamSize field is valid. LogicalEndpointTypeMulticast LogicalEndpointType = 2 LogicalEndpointTypeForceInt LogicalEndpointType = 0x7fffffff )
func (LogicalEndpointType) String ¶
func (e LogicalEndpointType) String() string
String returns the constant name, or a numeric representation for unknown values.
type MetricAttribute ¶
type MetricAttribute int32
MetricAttribute represents metric attributes.
Metric attributes describe properties of a metric. These attributes can be read using MetricGetAttribute.
const ( MetricAttrName MetricAttribute = 0 // Metric name. Value is a null terminated const c-string. // MetricAttrShortDescription: Short description of metric. Value is a null terminated const c-string. MetricAttrShortDescription MetricAttribute = 1 // MetricAttrLongDescription: Long description of metric. Value is a null terminated const c-string. MetricAttrLongDescription MetricAttribute = 2 MetricAttrCategory MetricAttribute = 3 // Category of the metric. Value is of type [MetricCategory]. // MetricAttrValueKind: Value type of the metric. Value is of type [MetricValueKind]. MetricAttrValueKind MetricAttribute = 4 // MetricAttrEvaluationMode: Metric evaluation mode. Value is of type [MetricEvaluationMode]. MetricAttrEvaluationMode MetricAttribute = 5 MetricAttrForceInt MetricAttribute = 0x7fffffff )
func (MetricAttribute) String ¶
func (e MetricAttribute) String() string
String returns the constant name, or a numeric representation for unknown values.
type MetricCategory ¶
type MetricCategory int32
MetricCategory represents a metric category.
Each metric is assigned to a category that represents the general type of the metric. A metric's category is accessed using MetricGetAttribute and the MetricAttrCategory attribute.
const ( MetricCategoryMemory MetricCategory = 0 // A memory related metric. MetricCategoryInstruction MetricCategory = 1 // An instruction related metric. MetricCategoryMultiprocessor MetricCategory = 2 // A multiprocessor related metric. MetricCategoryCache MetricCategory = 3 // A cache related metric. MetricCategoryTexture MetricCategory = 4 // A texture related metric. MetricCategoryNvlink MetricCategory = 5 // A Nvlink related metric. MetricCategoryPcie MetricCategory = 6 // A PCIe related metric. MetricCategoryForceInt MetricCategory = 0x7fffffff )
func (MetricCategory) String ¶
func (e MetricCategory) String() string
String returns the constant name, or a numeric representation for unknown values.
type MetricCollectionScope ¶
type MetricCollectionScope int32
MetricCollectionScope specifies the metric collection scope (CUpti_MetricCollectionScope).
const ( MetricCollectionScopeContext MetricCollectionScope = 0 MetricCollectionScopeDevice MetricCollectionScope = 1 MetricCollectionScopeInvalid MetricCollectionScope = 2 )
func (MetricCollectionScope) String ¶
func (e MetricCollectionScope) String() string
String returns the constant name, or a numeric representation for unknown values.
type MetricEvaluationMode ¶
type MetricEvaluationMode int32
MetricEvaluationMode represents a metric evaluation mode.
A metric can be evaluated per hardware instance to know the load balancing across instances of a domain or the metric can be evaluated in aggregate mode when the events involved in metric evaluation are from different event domains. It might be possible to evaluate some metrics in both modes for convenience. A metric's evaluation mode is accessed using MetricEvaluationMode and the MetricAttrEvaluationMode attribute.
const ( // MetricEvaluationModePerInstance: If this bit is set, the metric can be profiled for each instance of the domain. The event values passed to [MetricGetValue] can contain values for one instance of the domain. And [MetricGetValue] can be called for each instance. MetricEvaluationModePerInstance MetricEvaluationMode = 1 // MetricEvaluationModeAggregate: If this bit is set, the metric can be profiled over all instances. The event values passed to [MetricGetValue] can be aggregated values of events for all instances of the domain. MetricEvaluationModeAggregate MetricEvaluationMode = 1 << 1 MetricEvaluationModeForceInt MetricEvaluationMode = 0x7fffffff )
func (MetricEvaluationMode) String ¶
func (e MetricEvaluationMode) String() string
String returns the constant name, or a numeric representation for unknown values.
type MetricPropertyDeviceClass ¶
type MetricPropertyDeviceClass int32
MetricPropertyDeviceClass represents device class.
Enumeration of device classes for metric property MetricPropertyDeviceClass.
const ( MetricPropertyDeviceClassTesla MetricPropertyDeviceClass = 0 MetricPropertyDeviceClassQuadro MetricPropertyDeviceClass = 1 MetricPropertyDeviceClassGeforce MetricPropertyDeviceClass = 2 MetricPropertyDeviceClassTegra MetricPropertyDeviceClass = 3 )
func (MetricPropertyDeviceClass) String ¶
func (e MetricPropertyDeviceClass) String() string
String returns the constant name, or a numeric representation for unknown values.
type MetricPropertyID ¶
type MetricPropertyID int32
MetricPropertyID represents metric device properties.
Metric device properties describe device properties which are needed for a metric. Some of these properties can be collected using cuDeviceGetAttribute.
const ( MetricPropertyMultiprocessorCount MetricPropertyID = 0 MetricPropertyWarpsPerMultiprocessor MetricPropertyID = 1 MetricPropertyKernelGpuTime MetricPropertyID = 2 MetricPropertyClockRate MetricPropertyID = 3 MetricPropertyFrameBufferCount MetricPropertyID = 4 MetricPropertyGlobalMemoryBandwidth MetricPropertyID = 5 MetricPropertyPcieLinkRate MetricPropertyID = 6 MetricPropertyPcieLinkWidth MetricPropertyID = 7 MetricPropertyPcieGen MetricPropertyID = 8 MetricPropertyIDMetricPropertyDeviceClass MetricPropertyID = 9 MetricPropertyFlopSpPerCycle MetricPropertyID = 10 MetricPropertyFlopDpPerCycle MetricPropertyID = 11 MetricPropertyL2Units MetricPropertyID = 12 MetricPropertyEccEnabled MetricPropertyID = 13 MetricPropertyFlopHpPerCycle MetricPropertyID = 14 MetricPropertyGpuCpuNvlinkBandwidth MetricPropertyID = 15 )
func (MetricPropertyID) String ¶
func (e MetricPropertyID) String() string
String returns the constant name, or a numeric representation for unknown values.
type MetricType ¶
type MetricType int32
MetricType specifies the metric type (CUpti_MetricType).
const ( MetricTypeCounter MetricType = 0 MetricTypeRatio MetricType = 1 MetricTypeThroughput MetricType = 2 MetricTypeCount MetricType = 3 )
func (MetricType) String ¶
func (e MetricType) String() string
String returns the constant name, or a numeric representation for unknown values.
type MetricValue ¶
type MetricValue struct {
// Data stores the raw bytes of the underlying C union.
Data [1]uint64
}
MetricValue represents a metric value.
Metric values can be one of several different kinds. Corresponding to each kind is a member of the CUpti_MetricValue union. The metric value returned by MetricGetValue should be accessed using the appropriate member of that union based on its value kind.
func (*MetricValue) MetricValueDouble ¶
func (m *MetricValue) MetricValueDouble() *float64
MetricValueDouble returns a pointer to the metricValueDouble member of CUpti_MetricValue, which shares its storage with every other member of the union.
func (*MetricValue) MetricValueInt64 ¶
func (m *MetricValue) MetricValueInt64() *int64
MetricValueInt64 returns a pointer to the metricValueInt64 member of CUpti_MetricValue, which shares its storage with every other member of the union.
func (*MetricValue) MetricValueNvtxExtendedPayload ¶
func (m *MetricValue) MetricValueNvtxExtendedPayload() *uint64
MetricValueNvtxExtendedPayload returns a pointer to the metricValueNvtxExtendedPayload member of CUpti_MetricValue, which shares its storage with every other member of the union.
func (*MetricValue) MetricValuePercent ¶
func (m *MetricValue) MetricValuePercent() *float64
MetricValuePercent returns a pointer to the metricValuePercent member of CUpti_MetricValue, which shares its storage with every other member of the union.
func (*MetricValue) MetricValueThroughput ¶
func (m *MetricValue) MetricValueThroughput() *uint64
MetricValueThroughput returns a pointer to the metricValueThroughput member of CUpti_MetricValue, which shares its storage with every other member of the union.
func (*MetricValue) MetricValueUint64 ¶
func (m *MetricValue) MetricValueUint64() *uint64
MetricValueUint64 returns a pointer to the metricValueUint64 member of CUpti_MetricValue, which shares its storage with every other member of the union.
func (*MetricValue) MetricValueUtilizationLevel ¶
func (m *MetricValue) MetricValueUtilizationLevel() *MetricValueUtilizationLevel
MetricValueUtilizationLevel returns a pointer to the metricValueUtilizationLevel member of CUpti_MetricValue, which shares its storage with every other member of the union.
type MetricValueKind ¶
type MetricValueKind int32
MetricValueKind represents kinds of metric values.
Metric values can be one of several different kinds. Corresponding to each kind is a member of the CUpti_MetricValue union. The metric value returned by MetricGetValue should be accessed using the appropriate member of that union based on its value kind.
const ( MetricValueKindDouble MetricValueKind = 0 // The metric value is a 64-bit double. MetricValueKindUint64 MetricValueKind = 1 // The metric value is a 64-bit unsigned integer. // MetricValueKindPercent: The metric value is a percentage represented by a 64-bit double. For example, 57.5% is represented by the value 57.5. MetricValueKindPercent MetricValueKind = 2 // MetricValueKindThroughput: The metric value is a throughput represented by a 64-bit integer. The unit for throughput values is bytes/second. MetricValueKindThroughput MetricValueKind = 3 MetricValueKindInt64 MetricValueKind = 4 // The metric value is a 64-bit signed integer. // MetricValueKindUtilizationLevel: The metric value is a utilization level, as represented by [MetricValueUtilizationLevel]. MetricValueKindUtilizationLevel MetricValueKind = 5 // MetricValueKindNvtxExtendedPayload: The metric value is a pointer to a NVTX extended payload. nvtxPayloadData_t is the structure that contains the payload data. MetricValueKindNvtxExtendedPayload MetricValueKind = 6 MetricValueKindForceInt MetricValueKind = 0x7fffffff )
func (MetricValueKind) String ¶
func (e MetricValueKind) String() string
String returns the constant name, or a numeric representation for unknown values.
type MetricValueUtilizationLevel ¶
type MetricValueUtilizationLevel int32
MetricValueUtilizationLevel is an enumeration of utilization levels for metrics values of kind MetricValueKindUtilizationLevel.
Utilization values can vary from IDLE (0) to MAX (10) but the enumeration only provides specific names for a few values.
const ( MetricValueUtilizationIdle MetricValueUtilizationLevel = 0 MetricValueUtilizationLow MetricValueUtilizationLevel = 2 MetricValueUtilizationMid MetricValueUtilizationLevel = 5 MetricValueUtilizationHigh MetricValueUtilizationLevel = 8 MetricValueUtilizationMax MetricValueUtilizationLevel = 10 MetricValueUtilizationForceInt MetricValueUtilizationLevel = 0x7fffffff )
func (MetricValueUtilizationLevel) String ¶
func (e MetricValueUtilizationLevel) String() string
String returns the constant name, or a numeric representation for unknown values.
type ModuleResourceData ¶
ModuleResourceData represents module data passed into a resource callback function.
CUDA module data passed into a resource callback function as the cbdata argument to CallbackFunc. The cbdata will be this type for domain equal to CbDomainResource. The module data is valid only within the invocation of the callback function that is passed the data. If you need to retain some data for use outside of the callback, you must make a copy of that data.
type NvtxData ¶
NvtxData represents data passed into a NVTX callback function.
Data passed into a NVTX callback function as the cbdata argument to CallbackFunc. The cbdata will be this type for domain equal to CbDomainNvtx. Unless otherwise notes, the callback data is valid only within the invocation of the callback function that is passed the data. If you need to retain some data for use outside of the callback, you must make a copy of that data.
type NvtxExtPayloadAttr ¶
NvtxExtPayloadAttr represents CUpti_NvtxExtPayloadAttr.
type NvtxExtPayloadType ¶
type NvtxExtPayloadType int32
NvtxExtPayloadType specifies the nvtx ext payload type (CUpti_NvtxExtPayloadType).
const ( NvtxExtPayloadTypeUnknown NvtxExtPayloadType = 0 // The payload type is not known. NvtxExtPayloadTypeSchema NvtxExtPayloadType = 1 // The payload type is a schema. NvtxExtPayloadTypeEnum NvtxExtPayloadType = 2 // The payload type is an enum. NvtxExtPayloadTypeForceInt NvtxExtPayloadType = 0x7fffffff )
func (NvtxExtPayloadType) String ¶
func (e NvtxExtPayloadType) String() string
String returns the constant name, or a numeric representation for unknown values.
type NvtxTraceCBID ¶
type NvtxTraceCBID int32
NvtxTraceCBID specifies the nvtx trace cbid (CUpti_nvtx_api_trace_cbid).
const ( NvtxCBIDInvalid NvtxTraceCBID = 0 NvtxCBIDNvtxMarkA NvtxTraceCBID = 1 NvtxCBIDNvtxMarkW NvtxTraceCBID = 2 NvtxCBIDNvtxMarkEx NvtxTraceCBID = 3 NvtxCBIDNvtxRangeStartA NvtxTraceCBID = 4 NvtxCBIDNvtxRangeStartW NvtxTraceCBID = 5 NvtxCBIDNvtxRangeStartEx NvtxTraceCBID = 6 NvtxCBIDNvtxRangeEnd NvtxTraceCBID = 7 NvtxCBIDNvtxRangePushA NvtxTraceCBID = 8 NvtxCBIDNvtxRangePushW NvtxTraceCBID = 9 NvtxCBIDNvtxRangePushEx NvtxTraceCBID = 10 NvtxCBIDNvtxRangePop NvtxTraceCBID = 11 NvtxCBIDNvtxNameCategoryA NvtxTraceCBID = 12 NvtxCBIDNvtxNameCategoryW NvtxTraceCBID = 13 NvtxCBIDNvtxNameOsThreadA NvtxTraceCBID = 14 NvtxCBIDNvtxNameOsThreadW NvtxTraceCBID = 15 NvtxCBIDNvtxNameCuDeviceA NvtxTraceCBID = 16 NvtxCBIDNvtxNameCuDeviceW NvtxTraceCBID = 17 NvtxCBIDNvtxNameCuContextA NvtxTraceCBID = 18 NvtxCBIDNvtxNameCuContextW NvtxTraceCBID = 19 NvtxCBIDNvtxNameCuStreamA NvtxTraceCBID = 20 NvtxCBIDNvtxNameCuStreamW NvtxTraceCBID = 21 NvtxCBIDNvtxNameCuEventA NvtxTraceCBID = 22 NvtxCBIDNvtxNameCuEventW NvtxTraceCBID = 23 NvtxCBIDNvtxNameCudaDeviceA NvtxTraceCBID = 24 NvtxCBIDNvtxNameCudaDeviceW NvtxTraceCBID = 25 NvtxCBIDNvtxNameCudaStreamA NvtxTraceCBID = 26 NvtxCBIDNvtxNameCudaStreamW NvtxTraceCBID = 27 NvtxCBIDNvtxNameCudaEventA NvtxTraceCBID = 28 NvtxCBIDNvtxNameCudaEventW NvtxTraceCBID = 29 NvtxCBIDNvtxDomainMarkEx NvtxTraceCBID = 30 NvtxCBIDNvtxDomainRangeStartEx NvtxTraceCBID = 31 NvtxCBIDNvtxDomainRangeEnd NvtxTraceCBID = 32 NvtxCBIDNvtxDomainRangePushEx NvtxTraceCBID = 33 NvtxCBIDNvtxDomainRangePop NvtxTraceCBID = 34 NvtxCBIDNvtxDomainResourceCreate NvtxTraceCBID = 35 NvtxCBIDNvtxDomainResourceDestroy NvtxTraceCBID = 36 NvtxCBIDNvtxDomainNameCategoryA NvtxTraceCBID = 37 NvtxCBIDNvtxDomainNameCategoryW NvtxTraceCBID = 38 NvtxCBIDNvtxDomainRegisterStringA NvtxTraceCBID = 39 NvtxCBIDNvtxDomainRegisterStringW NvtxTraceCBID = 40 NvtxCBIDNvtxDomainCreateA NvtxTraceCBID = 41 NvtxCBIDNvtxDomainCreateW NvtxTraceCBID = 42 NvtxCBIDNvtxDomainDestroy NvtxTraceCBID = 43 NvtxCBIDNvtxDomainSyncUserCreate NvtxTraceCBID = 44 NvtxCBIDNvtxDomainSyncUserDestroy NvtxTraceCBID = 45 NvtxCBIDNvtxDomainSyncUserAcquireStart NvtxTraceCBID = 46 NvtxCBIDNvtxDomainSyncUserAcquireFailed NvtxTraceCBID = 47 NvtxCBIDNvtxDomainSyncUserAcquireSuccess NvtxTraceCBID = 48 NvtxCBIDNvtxDomainSyncUserReleasing NvtxTraceCBID = 49 NvtxCBIDSize NvtxTraceCBID = 50 NvtxCBIDForceInt NvtxTraceCBID = 0x7fffffff )
func (NvtxTraceCBID) String ¶
func (e NvtxTraceCBID) String() string
String returns the constant name, or a numeric representation for unknown values.
type OpenAccConstructKind ¶
type OpenAccConstructKind int32
OpenAccConstructKind represents the OpenAcc parent construct kind for OpenAcc activity records.
const ( OpenaccConstructKindUnknown OpenAccConstructKind = 0 OpenaccConstructKindParallel OpenAccConstructKind = 1 OpenaccConstructKindKernels OpenAccConstructKind = 2 OpenaccConstructKindLoop OpenAccConstructKind = 3 OpenaccConstructKindData OpenAccConstructKind = 4 OpenaccConstructKindEnterData OpenAccConstructKind = 5 OpenaccConstructKindExitData OpenAccConstructKind = 6 OpenaccConstructKindHostData OpenAccConstructKind = 7 OpenaccConstructKindAtomic OpenAccConstructKind = 8 OpenaccConstructKindDeclare OpenAccConstructKind = 9 OpenaccConstructKindInit OpenAccConstructKind = 10 OpenaccConstructKindShutdown OpenAccConstructKind = 11 OpenaccConstructKindSet OpenAccConstructKind = 12 OpenaccConstructKindUpdate OpenAccConstructKind = 13 OpenaccConstructKindRoutine OpenAccConstructKind = 14 OpenaccConstructKindWait OpenAccConstructKind = 15 OpenaccConstructKindRuntimeApi OpenAccConstructKind = 16 OpenaccConstructKindForceInt OpenAccConstructKind = 0x7fffffff )
func (OpenAccConstructKind) String ¶
func (e OpenAccConstructKind) String() string
String returns the constant name, or a numeric representation for unknown values.
type OpenAccEventKind ¶
type OpenAccEventKind int32
OpenAccEventKind represents the OpenAcc event kind for OpenAcc activity records.
See also CUpti_ActivityKindOpenAcc.
const ( OpenaccEventKindInvalid OpenAccEventKind = 0 OpenaccEventKindDeviceInit OpenAccEventKind = 1 OpenaccEventKindDeviceShutdown OpenAccEventKind = 2 OpenaccEventKindRuntimeShutdown OpenAccEventKind = 3 OpenaccEventKindEnqueueLaunch OpenAccEventKind = 4 OpenaccEventKindEnqueueUpload OpenAccEventKind = 5 OpenaccEventKindEnqueueDownload OpenAccEventKind = 6 OpenaccEventKindWait OpenAccEventKind = 7 OpenaccEventKindImplicitWait OpenAccEventKind = 8 OpenaccEventKindComputeConstruct OpenAccEventKind = 9 OpenaccEventKindUpdate OpenAccEventKind = 10 OpenaccEventKindEnterData OpenAccEventKind = 11 OpenaccEventKindExitData OpenAccEventKind = 12 OpenaccEventKindCreate OpenAccEventKind = 13 OpenaccEventKindDelete OpenAccEventKind = 14 OpenaccEventKindAlloc OpenAccEventKind = 15 OpenaccEventKindFree OpenAccEventKind = 16 OpenaccEventKindForceInt OpenAccEventKind = 0x7fffffff )
func (OpenAccEventKind) String ¶
func (e OpenAccEventKind) String() string
String returns the constant name, or a numeric representation for unknown values.
type OpenMpEventKind ¶
type OpenMpEventKind int32
OpenMpEventKind specifies the open mp event kind (CUpti_OpenMpEventKind).
const ( OpenmpEventKindInvalid OpenMpEventKind = 0 OpenmpEventKindParallel OpenMpEventKind = 1 OpenmpEventKindTask OpenMpEventKind = 2 OpenmpEventKindThread OpenMpEventKind = 3 OpenmpEventKindIdle OpenMpEventKind = 4 OpenmpEventKindWaitBarrier OpenMpEventKind = 5 OpenmpEventKindWaitTaskwait OpenMpEventKind = 6 OpenmpEventKindForceInt OpenMpEventKind = 0x7fffffff )
func (OpenMpEventKind) String ¶
func (e OpenMpEventKind) String() string
String returns the constant name, or a numeric representation for unknown values.
type PCSamplingCollectionMode ¶
type PCSamplingCollectionMode int32
PCSamplingCollectionMode represents PC Sampling collection mode.
const ( PcSamplingCollectionModeInvalid PCSamplingCollectionMode = 0 // INVALID Value. PcSamplingCollectionModeContinuous PCSamplingCollectionMode = 1 // Continuous mode. Kernels are not serialized in this mode. PcSamplingCollectionModeKernelSerialized PCSamplingCollectionMode = 2 // Serialized mode. Kernels are serialized in this mode. )
func (PCSamplingCollectionMode) String ¶
func (e PCSamplingCollectionMode) String() string
String returns the constant name, or a numeric representation for unknown values.
type PCSamplingConfigurationAttributeType ¶
type PCSamplingConfigurationAttributeType int32
PCSamplingConfigurationAttributeType represents PC Sampling configuration attributes.
PC Sampling configuration attribute types. These attributes can be read using PCSamplingGetConfigurationAttribute and can be written using PCSamplingSetConfigurationAttribute. Attributes marked [r] can only be read using PCSamplingGetConfigurationAttribute [w] can only be written using PCSamplingSetConfigurationAttribute [rw] can be read using PCSamplingGetConfigurationAttribute and written using PCSamplingSetConfigurationAttribute
const ( PcSamplingConfigurationAttrTypeInvalid PCSamplingConfigurationAttributeType = 0 // PcSamplingConfigurationAttrTypeSamplingPeriod: [rw] Sampling period for PC Sampling. DEFAULT - CUPTI defined value based on number of SMs Valid values for the sampling periods are between 5 to 31 both inclusive. This will set the sampling period to (2^samplingPeriod) cycles. For e.g. for sampling period = 5 to 31, cycles = 32, 64, 128,..., 2^31 Value is a uint32_t PcSamplingConfigurationAttrTypeSamplingPeriod PCSamplingConfigurationAttributeType = 1 // PcSamplingConfigurationAttrTypeStallReason: [w] Number of stall reasons to collect. DEFAULT - All stall reasons will be collected Value is a size_t [w] Stall reasons to collect DEFAULT - All stall reasons will be collected Input value should be a pointer pointing to array of stall reason indexes containing all the stall reason indexes to collect. PcSamplingConfigurationAttrTypeStallReason PCSamplingConfigurationAttributeType = 2 // PcSamplingConfigurationAttrTypeScratchBufferSize: [rw] Size of SW buffer for raw PC counter data downloaded from HW buffer DEFAULT - 1 MB, which can accommodate approximately 5500 PCs with all stall reasons Approximately it takes 16 Bytes (and some fixed size memory) to accommodate one PC with one stall reason For e.g. 1 PC with 1 stall reason = 32 Bytes 1 PC with 2 stall reason = 48 Bytes 1 PC with 4 stall reason = 96 Bytes Value is a size_t PcSamplingConfigurationAttrTypeScratchBufferSize PCSamplingConfigurationAttributeType = 3 // PcSamplingConfigurationAttrTypeHardwareBufferSize: [rw] Size of HW buffer in bytes DEFAULT - 512 MB If sampling period is too less, HW buffer can overflow and drop PC data Value is a size_t PcSamplingConfigurationAttrTypeHardwareBufferSize PCSamplingConfigurationAttributeType = 4 // PcSamplingConfigurationAttrTypeCollectionMode: [rw] PC Sampling collection mode DEFAULT - [PcSamplingCollectionModeContinuous] Input value should be of type [PCSamplingCollectionMode]. PcSamplingConfigurationAttrTypeCollectionMode PCSamplingConfigurationAttributeType = 5 // PcSamplingConfigurationAttrTypeEnableStartStopControl: [rw] Control over PC Sampling data collection range Default - 0 1 - Allows user to start and stop PC Sampling using APIs - [PCSamplingStart] - Start PC Sampling [PCSamplingStop] - Stop PC Sampling Value is a uint32_t PcSamplingConfigurationAttrTypeEnableStartStopControl PCSamplingConfigurationAttributeType = 6 // PcSamplingConfigurationAttrTypeOutputDataFormat: [w] Value for output data format Default - [PcSamplingOutputDataFormatParsed] Input value should be of type [PCSamplingOutputDataFormat]. PcSamplingConfigurationAttrTypeOutputDataFormat PCSamplingConfigurationAttributeType = 7 // PcSamplingConfigurationAttrTypeSamplingDataBuffer: [w] Data buffer to hold collected PC Sampling data PARSED_DATA Default - none. Buffer type is void * which can point to PARSED_DATA Refer [PCSamplingData] for buffer format for PARSED_DATA PcSamplingConfigurationAttrTypeSamplingDataBuffer PCSamplingConfigurationAttributeType = 8 // PcSamplingConfigurationAttrTypeWorkerThreadPeriodicSleepSpan: [rw] Control sleep time of the worker threads created by CUPTI for various PC sampling operations. CUPTI creates multiple worker threads to offload certain operations to these threads. This includes decoding of HW data to the CUPTI PC sampling data and correlating PC data to SASS instructions. CUPTI wakes up these threads periodically. Default - 100 milliseconds. Value is a uint32_t PcSamplingConfigurationAttrTypeWorkerThreadPeriodicSleepSpan PCSamplingConfigurationAttributeType = 9 PcSamplingConfigurationAttrTypeForceInt PCSamplingConfigurationAttributeType = 0x7fffffff )
func (PCSamplingConfigurationAttributeType) String ¶
func (e PCSamplingConfigurationAttributeType) String() string
String returns the constant name, or a numeric representation for unknown values.
type PCSamplingConfigurationInfo ¶
type PCSamplingConfigurationInfo struct {
AttributeType PCSamplingConfigurationAttributeType
AttributeStatus Result
AttributeData [3]uint64
}
PCSamplingConfigurationInfo represents PC sampling configuration information structure.
This structure provides PCSamplingConfigurationAttributeType which can be configured or queried for PC sampling configuration.
type PCSamplingConfigurationInfoParams ¶
type PCSamplingConfigurationInfoParams struct {
Size uint
PPriv uintptr
Ctx driver.Context
NumAttributes uint
PPCSamplingConfigurationInfo uintptr
}
PCSamplingConfigurationInfoParams represents PC sampling configuration structure.
This structure configures PC sampling using PCSamplingSetConfigurationAttribute and queries PC sampling default configuration using PCSamplingGetConfigurationAttribute
type PCSamplingData ¶
type PCSamplingData struct {
Size uint
CollectNumPcs uint
TotalSamples uint64
DroppedSamples uint64
TotalNumPcs uint
RemainingNumPcs uint
RangeId uint64
PPcData uintptr
NonUsrKernelsTotalSamples uint64
HardwareBufferFull uint8
}
PCSamplingData represents collected PC Sampling data.
type PCSamplingDisableParams ¶
PCSamplingDisableParams represents params for PCSamplingDisable.
type PCSamplingEnableParams ¶
PCSamplingEnableParams represents params for PCSamplingEnable.
type PCSamplingGetDataParams ¶
type PCSamplingGetDataParams struct {
Size uint
PPriv uintptr
Ctx driver.Context
PcSamplingData uintptr
}
PCSamplingGetDataParams represents params for PCSamplingEnable.
type PCSamplingGetNumStallReasonsParams ¶
type PCSamplingGetNumStallReasonsParams struct {
Size uint
PPriv uintptr
Ctx driver.Context
NumStallReasons uintptr
}
PCSamplingGetNumStallReasonsParams represents params for PCSamplingGetNumStallReasons.
type PCSamplingGetStallReasonsParams ¶
type PCSamplingGetStallReasonsParams struct {
Size uint
PPriv uintptr
Ctx driver.Context
NumStallReasons uint
StallReasonIndex uintptr
StallReasons uintptr
}
PCSamplingGetStallReasonsParams represents params for PCSamplingGetStallReasons.
type PCSamplingOutputDataFormat ¶
type PCSamplingOutputDataFormat int32
PCSamplingOutputDataFormat represents PC Sampling output data format.
const ( PcSamplingOutputDataFormatInvalid PCSamplingOutputDataFormat = 0 PcSamplingOutputDataFormatParsed PCSamplingOutputDataFormat = 1 // HW buffer data will be parsed during collection of data )
func (PCSamplingOutputDataFormat) String ¶
func (e PCSamplingOutputDataFormat) String() string
String returns the constant name, or a numeric representation for unknown values.
type PCSamplingPCData ¶
type PCSamplingPCData struct {
Size uint
CubinCrc uint64
PcOffset uint64
FunctionIndex uint32
Pad uint32
FunctionName uintptr
StallReasonCount uint
StallReason uintptr
CorrelationId uint32
}
PCSamplingPCData represents PC Sampling data.
type PCSamplingReasonInventory ¶
type PCSamplingReasonInventory struct {
CUPTIVersion uint32
Reasons []PCSamplingStallReasonInfo
}
PCSamplingReasonInventory is the validated reason table for one CUPTI version. The names are owned Go strings sorted by native index.
func PCSamplingStallReasons ¶
func PCSamplingStallReasons(ctx driver.Context, maxReasons int) (PCSamplingReasonInventory, error)
PCSamplingStallReasons queries the native reason inventory without launching work. It owns the temporary C storage and rejects malformed or out-of-bounds native output before returning it to a caller.
type PCSamplingReasonLayout ¶
PCSamplingReasonLayout describes the parameter sizes used by the native PC-sampling reason inventory calls on a 64-bit host.
The layout is unchanged in the validated CUPTI releases listed by PCSamplingReasonLayoutFor. A release not listed there has not had its ABI checked and must be rejected by callers that pass these parameters.
func PCSamplingReasonLayoutFor ¶
func PCSamplingReasonLayoutFor(version uint32) (PCSamplingReasonLayout, bool)
PCSamplingReasonLayoutFor reports the validated parameter layout for a CUPTI API version. The admitted versions are the PC-sampling query rows of the one table in internal/cuptiversion; testdata/pcsamplinglayout holds the sizeof/offsetof record the C compiler produced from each one's cupti_pcsampling.h, and a test compares those records with these types. These structs are filled in place by CUPTI through the pointer it is given, so the declared size must be one that was measured. Admission is exact, except historical source admission of 130401 using layout 130400. This is not fresh physical qualification. The structs contain pointers and are admitted only on 64-bit hosts.
type PCSamplingStallReason ¶
type PCSamplingStallReason struct {
PcSamplingStallReasonIndex uint32
Samples uint32
// contains filtered or unexported fields
}
PCSamplingStallReason represents PC Sampling stall reasons.
type PCSamplingStallReasonInfo ¶
PCSamplingStallReasonInfo is a name and native index returned by the PC sampling reason inventory query.
type PCSamplingStartParams ¶
PCSamplingStartParams represents params for PCSamplingStart.
type PCSamplingStopParams ¶
PCSamplingStopParams represents params for PCSamplingStop.
type PcieDeviceType ¶
type PcieDeviceType int32
PcieDeviceType represents field to differentiate whether PCIE Activity record is of a GPU or a PCI Bridge.
const ( PcieDeviceTypeGpu PcieDeviceType = 0 // PCIE GPU record. PcieDeviceTypeBridge PcieDeviceType = 1 // PCIE Bridge record. PcieDeviceTypeForceInt PcieDeviceType = 0x7fffffff )
func (PcieDeviceType) String ¶
func (e PcieDeviceType) String() string
String returns the constant name, or a numeric representation for unknown values.
type PcieGen ¶
type PcieGen int32
PcieGen represents PCIE Generation.
Enumeration of PCIE Generation for pcie activity attribute pcieGeneration.
const ( PcieGenGEN1 PcieGen = 1 // PCIE Generation 1. PcieGenGEN2 PcieGen = 2 // PCIE Generation 2. PcieGenGEN3 PcieGen = 3 // PCIE Generation 3. PcieGenGEN4 PcieGen = 4 // PCIE Generation 4. PcieGenGEN5 PcieGen = 5 // PCIE Generation 5. PcieGenGEN6 PcieGen = 6 // PCIE Generation 6. PcieGenForceInt PcieGen = 0x7fffffff )
type PmSampling ¶
type PmSampling uintptr
PmSampling is an opaque handle for CUpti_PmSampling_Object.
type PmSamplingCounterDataGetSampleInfoParams ¶
type PmSamplingCounterDataGetSampleInfoParams struct {
StructSize uint
PPriv uintptr
PPmSamplingObject uintptr
PCounterDataImage uintptr
CounterDataImageSize uint
SampleIndex uint
StartTimestamp uint64
EndTimestamp uint64
}
PmSamplingCounterDataGetSampleInfoParams represents params for PmSamplingCounterDataGetSampleInfo.
type PmSamplingCounterDataImageInitializeParams ¶
type PmSamplingCounterDataImageInitializeParams struct {
StructSize uint
PPriv uintptr
PPmSamplingObject uintptr
CounterDataSize uint
PCounterData uintptr
}
PmSamplingCounterDataImageInitializeParams represents params for PmSamplingCounterDataImageInitialize.
type PmSamplingDecodeDataParams ¶
type PmSamplingDecodeDataParams struct {
StructSize uint
PPriv uintptr
PPmSamplingObject uintptr
PCounterDataImage uintptr
CounterDataImageSize uint
DecodeStopReason PmSamplingDecodeStopReason
Overflow uint8
}
PmSamplingDecodeDataParams represents params for PmSamplingDecodeData.
type PmSamplingDecodeStopReason ¶
type PmSamplingDecodeStopReason int32
PmSamplingDecodeStopReason specifies the pm sampling decode stop reason (CUpti_PmSampling_DecodeStopReason).
const ( PmSamplingDecodeStopReasonOther PmSamplingDecodeStopReason = 0 PmSamplingDecodeStopReasonCounterDataFull PmSamplingDecodeStopReason = 1 // Counter data image is full. PmSamplingDecodeStopReasonEndOfRecords PmSamplingDecodeStopReason = 2 // All the records in the hardware buffer is decoded. PmSamplingDecodeStopReasonCount PmSamplingDecodeStopReason = 3 )
func (PmSamplingDecodeStopReason) String ¶
func (e PmSamplingDecodeStopReason) String() string
String returns the constant name, or a numeric representation for unknown values.
type PmSamplingDisableParams ¶
PmSamplingDisableParams represents params for PmSamplingDisable.
type PmSamplingEnableParams ¶
type PmSamplingEnableParams struct {
StructSize uint
PPriv uintptr
DeviceIndex uint
PPmSamplingObject uintptr
}
PmSamplingEnableParams represents params for PmSamplingEnable.
type PmSamplingGetCounterAvailabilityParams ¶
type PmSamplingGetCounterAvailabilityParams struct {
StructSize uint
PPriv uintptr
DeviceIndex uint
CounterAvailabilityImageSize uint
PCounterAvailabilityImage uintptr
}
PmSamplingGetCounterAvailabilityParams represents params for cuptiPmSamplingGetCounterData.
type PmSamplingGetCounterDataInfoParams ¶
type PmSamplingGetCounterDataInfoParams struct {
StructSize uint
PPriv uintptr
PCounterDataImage uintptr
CounterDataImageSize uint
NumTotalSamples uint
NumPopulatedSamples uint
NumCompletedSamples uint
}
PmSamplingGetCounterDataInfoParams represents params for PmSamplingGetCounterDataInfo.
type PmSamplingGetCounterDataSizeParams ¶
type PmSamplingGetCounterDataSizeParams struct {
StructSize uint
PPriv uintptr
PPmSamplingObject uintptr
PMetricNames uintptr
NumMetrics uint
MaxSamples uint32
CounterDataSize uint
}
PmSamplingGetCounterDataSizeParams represents params for PmSamplingGetCounterDataSize.
type PmSamplingHardwareBufferAppendMode ¶
type PmSamplingHardwareBufferAppendMode int32
PmSamplingHardwareBufferAppendMode specifies the pm sampling hardware buffer append mode (CUpti_PmSampling_HardwareBuffer_AppendMode).
const ( // PmSamplingHardwareBufferAppendModeKeepOldest: Keep the oldest records in the hardware buffer. CUPTI will report error for overflow in case hardware buffer is getting filled up. PmSamplingHardwareBufferAppendModeKeepOldest PmSamplingHardwareBufferAppendMode = 0 // PmSamplingHardwareBufferAppendModeKeepLatest: Keep the latest records in the hardware buffer. Note: This mode is not supported on Turing GPU architecture. It is supported on Ampere and later GPU architectures. PmSamplingHardwareBufferAppendModeKeepLatest PmSamplingHardwareBufferAppendMode = 1 )
func (PmSamplingHardwareBufferAppendMode) String ¶
func (e PmSamplingHardwareBufferAppendMode) String() string
String returns the constant name, or a numeric representation for unknown values.
type PmSamplingSetConfigParams ¶
type PmSamplingSetConfigParams struct {
StructSize uint
PPriv uintptr
PPmSamplingObject uintptr
ConfigSize uint
PConfig uintptr
HardwareBufferSize uint
SamplingInterval uint64
TriggerMode PmSamplingTriggerMode
HwBufferAppendMode PmSamplingHardwareBufferAppendMode
}
PmSamplingSetConfigParams represents params for PmSamplingSetConfig.
type PmSamplingStartParams ¶
PmSamplingStartParams represents params for PmSamplingStart.
type PmSamplingStopParams ¶
PmSamplingStopParams represents params for PmSamplingStop.
type PmSamplingTriggerMode ¶
type PmSamplingTriggerMode int32
PmSamplingTriggerMode specifies the pm sampling trigger mode (CUpti_PmSampling_TriggerMode).
const ( // PmSamplingTriggerModeGpuSysclkInterval: The trigger is based off of the SYSCLK frequency, note SYS frequency by default is variable. the sample interval (set in the struct [PmSamplingSetConfigParams]) is in terms of clocks. PmSamplingTriggerModeGpuSysclkInterval PmSamplingTriggerMode = 0 // PmSamplingTriggerModeGpuTimeInterval: The trigger is based off of a fixed frequency source. The sample interval (set in the struct [PmSamplingSetConfigParams]) is in terms of nanoseconds. Note: This trigger mode is not supported on Turing GPU architecture and GA100 GPU. It is supported on Ampere GA10x and later GPU architectures. PmSamplingTriggerModeGpuTimeInterval PmSamplingTriggerMode = 1 PmSamplingTriggerModeCount PmSamplingTriggerMode = 2 )
func (PmSamplingTriggerMode) String ¶
func (e PmSamplingTriggerMode) String() string
String returns the constant name, or a numeric representation for unknown values.
type ProfilerApi ¶
type ProfilerApi int32
ProfilerApi represents profiler API types.
const ( ProfilerRangeProfiling ProfilerApi = 0 // CUPTI APIs for range based profiling (cuptiProfiler*) ProfilerPcSampling ProfilerApi = 1 // CUPTI APIs collecting pc sampling data (cuptiPcSampling*) ProfilerSassMetrics ProfilerApi = 2 // CUPTI APIs collecting SASS metrics data (cuptiSassMetrics*) ProfilerPmSampling ProfilerApi = 3 // CUPTI APIs collecting PM Sampling data (cuptiPmSampling*) ProfilerUnknown ProfilerApi = 4 )
func (ProfilerApi) String ¶
func (e ProfilerApi) String() string
String returns the constant name, or a numeric representation for unknown values.
type ProfilerBeginPassParams ¶
ProfilerBeginPassParams represents params for ProfilerBeginPass.
type ProfilerBeginSessionParams ¶
type ProfilerBeginSessionParams struct {
StructSize uint
PPriv uintptr
Ctx driver.Context
CounterDataImageSize uint
PCounterDataImage uintptr
CounterDataScratchBufferSize uint
PCounterDataScratchBuffer uintptr
BDumpCounterDataInFile uint8
PCounterDataFilePath uintptr
Range ProfilerRange
ReplayMode ProfilerReplayMode
MaxRangesPerPass uint
MaxLaunchesPerPass uint
}
ProfilerBeginSessionParams represents params for ProfilerBeginSession.
type ProfilerCounterDataImageCalculateScratchBufferSizeParams ¶
type ProfilerCounterDataImageCalculateScratchBufferSizeParams struct {
StructSize uint
PPriv uintptr
CounterDataImageSize uint
PCounterDataImage uintptr
CounterDataScratchBufferSize uint
}
ProfilerCounterDataImageCalculateScratchBufferSizeParams represents params for ProfilerCounterDataImageCalculateScratchBufferSize.
type ProfilerCounterDataImageCalculateSizeParams ¶
type ProfilerCounterDataImageCalculateSizeParams struct {
StructSize uint
PPriv uintptr
SizeofCounterDataImageOptions uint
POptions uintptr
CounterDataImageSize uint
}
ProfilerCounterDataImageCalculateSizeParams represents params for ProfilerCounterDataImageCalculateSize.
type ProfilerCounterDataImageInitializeParams ¶
type ProfilerCounterDataImageInitializeParams struct {
StructSize uint
PPriv uintptr
SizeofCounterDataImageOptions uint
POptions uintptr
CounterDataImageSize uint
PCounterDataImage uintptr
}
ProfilerCounterDataImageInitializeParams represents params for ProfilerCounterDataImageInitialize.
type ProfilerCounterDataImageInitializeScratchBufferParams ¶
type ProfilerCounterDataImageInitializeScratchBufferParams struct {
StructSize uint
PPriv uintptr
CounterDataImageSize uint
PCounterDataImage uintptr
CounterDataScratchBufferSize uint
PCounterDataScratchBuffer uintptr
}
ProfilerCounterDataImageInitializeScratchBufferParams represents params for ProfilerCounterDataImageInitializeScratchBuffer.
type ProfilerCounterDataImageOptions ¶
type ProfilerCounterDataImageOptions struct {
StructSize uint
PPriv uintptr
PCounterDataPrefix uintptr
CounterDataPrefixSize uint
MaxNumRanges uint32
MaxNumRangeTreeNodes uint32
MaxRangeNameLength uint32
}
ProfilerCounterDataImageOptions represents input parameter to define the counterDataImage.
type ProfilerDeInitializeParams ¶
ProfilerDeInitializeParams represents default parameter for ProfilerDeInitialize.
type ProfilerDeviceSupportedParams ¶
type ProfilerDeviceSupportedParams struct {
StructSize uint
PPriv uintptr
CuDevice Device
IsSupported ProfilerSupportLevel
Architecture ProfilerSupportLevel
Sli ProfilerSupportLevel
VGpu ProfilerSupportLevel
ConfidentialCompute ProfilerSupportLevel
Cmp ProfilerSupportLevel
Wsl ProfilerSupportLevel
Api ProfilerApi
Sku ProfilerSupportLevel
}
ProfilerDeviceSupportedParams represents params for ProfilerDeviceSupported.
type ProfilerDisableProfilingParams ¶
ProfilerDisableProfilingParams represents params for ProfilerDisableProfiling.
type ProfilerEnableProfilingParams ¶
ProfilerEnableProfilingParams represents params for ProfilerEnableProfiling.
type ProfilerEndPassParams ¶
type ProfilerEndPassParams struct {
StructSize uint
PPriv uintptr
Ctx driver.Context
TargetNestingLevel uint16
PassIndex uint
AllPassesSubmitted uint8
}
ProfilerEndPassParams represents params for ProfilerEndPass.
type ProfilerEndSessionParams ¶
ProfilerEndSessionParams represents params for ProfilerEndSession.
type ProfilerFlushCounterDataParams ¶
type ProfilerFlushCounterDataParams struct {
StructSize uint
PPriv uintptr
Ctx driver.Context
NumRangesDropped uint
NumTraceBytesDropped uint
}
ProfilerFlushCounterDataParams represents params for ProfilerFlushCounterData.
type ProfilerGetCounterAvailabilityParams ¶
type ProfilerGetCounterAvailabilityParams struct {
StructSize uint
PPriv uintptr
Ctx driver.Context
CounterAvailabilityImageSize uint
PCounterAvailabilityImage uintptr
BAllowDeviceLevelCounters bool
}
ProfilerGetCounterAvailabilityParams represents params for ProfilerGetCounterAvailability.
type ProfilerHost ¶
type ProfilerHost uintptr
ProfilerHost is an opaque handle for CUpti_Profiler_Host_Object.
type ProfilerHostConfigAddMetricsParams ¶
type ProfilerHostConfigAddMetricsParams struct {
StructSize uint
PPriv uintptr
PHostObject uintptr
PpMetricNames uintptr
NumMetrics uint
}
ProfilerHostConfigAddMetricsParams represents params for ProfilerHostConfigAddMetrics.
type ProfilerHostDeinitializeParams ¶
ProfilerHostDeinitializeParams represents params for ProfilerHostDeinitialize.
type ProfilerHostEvaluateToGpuValuesParams ¶
type ProfilerHostEvaluateToGpuValuesParams struct {
StructSize uint
PPriv uintptr
PHostObject uintptr
PCounterDataImage uintptr
CounterDataImageSize uint
RangeIndex uint
PpMetricNames uintptr
NumMetrics uint
PMetricValues uintptr
}
ProfilerHostEvaluateToGpuValuesParams represents params for ProfilerHostEvaluateToGpuValues.
type ProfilerHostGetBaseMetricsParams ¶
type ProfilerHostGetBaseMetricsParams struct {
StructSize uint
PPriv uintptr
PHostObject uintptr
MetricType MetricType
PpMetricNames uintptr
NumMetrics uint
}
ProfilerHostGetBaseMetricsParams represents params for cuptiProfilerHostGetSupportedMetrics.
type ProfilerHostGetConfigImageParams ¶
type ProfilerHostGetConfigImageParams struct {
StructSize uint
PPriv uintptr
PHostObject uintptr
ConfigImageSize uint
PConfigImage uintptr
}
ProfilerHostGetConfigImageParams represents params for ProfilerHostGetConfigImage.
type ProfilerHostGetConfigImageSizeParams ¶
type ProfilerHostGetConfigImageSizeParams struct {
StructSize uint
PPriv uintptr
PHostObject uintptr
ConfigImageSize uint
}
ProfilerHostGetConfigImageSizeParams represents params for ProfilerHostGetConfigImageSize.
type ProfilerHostGetMaxNumHardwareMetricsPerPassParams ¶
type ProfilerHostGetMaxNumHardwareMetricsPerPassParams struct {
StructSize uint
PPriv uintptr
ProfilerType ProfilerType
PChipName uintptr
PCounterAvailabilityImage uintptr
MaxMetricsPerPass uint
}
ProfilerHostGetMaxNumHardwareMetricsPerPassParams represents params for ProfilerHostGetMaxNumHardwareMetricsPerPass.
type ProfilerHostGetMetricPropertiesParams ¶
type ProfilerHostGetMetricPropertiesParams struct {
StructSize uint
PPriv uintptr
PHostObject uintptr
PMetricName uintptr
PDescription uintptr
PHwUnit uintptr
PDimUnit uintptr
MetricType MetricType
MetricCollectionScope MetricCollectionScope
}
ProfilerHostGetMetricPropertiesParams represents params for ProfilerHostGetMetricProperties.
func (*ProfilerHostGetMetricPropertiesParams) SetStructSize ¶
func (p *ProfilerHostGetMetricPropertiesParams) SetStructSize(version uint32) error
SetStructSize sets the size field of p to the size of the prefix of p that a library reporting version reads. It fails for a version whose layout was not measured.
type ProfilerHostGetMetricsInSinglePassSetParams ¶
type ProfilerHostGetMetricsInSinglePassSetParams struct {
StructSize uint
PPriv uintptr
PChipName uintptr
PSinglePassSetName uintptr
NumOfMetricsInSinglePassSet uint
MetricsBufferSize uint
PMetricsIndicesBuffer uintptr
PMetricsBuffer uintptr
}
ProfilerHostGetMetricsInSinglePassSetParams represents params for ProfilerHostGetMetricsInSinglePassSet.
type ProfilerHostGetNumOfPassesParams ¶
type ProfilerHostGetNumOfPassesParams struct {
StructSize uint
PPriv uintptr
ConfigImageSize uint
PConfigImage uintptr
NumOfPasses uint
}
ProfilerHostGetNumOfPassesParams represents params for ProfilerHostGetNumOfPasses.
type ProfilerHostGetRangeNameParams ¶
type ProfilerHostGetRangeNameParams struct {
StructSize uint
PPriv uintptr
PCounterDataImage uintptr
CounterDataImageSize uint
RangeIndex uint
Delimiter uintptr
PRangeName uintptr
}
ProfilerHostGetRangeNameParams represents params for ProfilerHostGetRangeName.
type ProfilerHostGetSinglePassSetsParams ¶
type ProfilerHostGetSinglePassSetsParams struct {
StructSize uint
PPriv uintptr
PChipName uintptr
NumOfSinglePassSets uint
PpSinglePassSets uintptr
}
ProfilerHostGetSinglePassSetsParams represents params for ProfilerHostGetSinglePassSets.
type ProfilerHostGetSubMetricsParams ¶
type ProfilerHostGetSubMetricsParams struct {
StructSize uint
PPriv uintptr
PHostObject uintptr
MetricType MetricType
PMetricName uintptr
NumOfSubmetrics uint
PpSubMetrics uintptr
}
ProfilerHostGetSubMetricsParams represents params for ProfilerHostGetSubMetrics.
type ProfilerHostGetSupportedChipsParams ¶
type ProfilerHostGetSupportedChipsParams struct {
StructSize uint
PPriv uintptr
NumChips uint
PpChipNames uintptr
}
ProfilerHostGetSupportedChipsParams represents params for ProfilerHostGetSupportedChips.
type ProfilerHostInitializeParams ¶
type ProfilerHostInitializeParams struct {
StructSize uint
PPriv uintptr
ProfilerType ProfilerType
PChipName uintptr
PCounterAvailabilityImage uintptr
PHostObject uintptr
PSinglePassMetricSetName uintptr
}
ProfilerHostInitializeParams represents params for ProfilerHostInitialize.
func (*ProfilerHostInitializeParams) SetStructSize ¶
func (p *ProfilerHostInitializeParams) SetStructSize(version uint32) error
SetStructSize sets the size field of p to the size of the prefix of p that a library reporting version reads. It fails for a version whose layout was not measured.
type ProfilerHostSetDevicePartitionInfoParams ¶
type ProfilerHostSetDevicePartitionInfoParams struct {
StructSize uint
PPriv uintptr
PHostObject uintptr
PDevicePartitionInfo uintptr
DevicePartitionInfoSize uint
}
ProfilerHostSetDevicePartitionInfoParams represents params for ProfilerHostSetDevicePartitionInfo.
type ProfilerInitializeParams ¶
ProfilerInitializeParams represents default parameter for ProfilerInitialize.
type ProfilerIsPassCollectedParams ¶
type ProfilerIsPassCollectedParams struct {
StructSize uint
PPriv uintptr
Ctx driver.Context
NumRangesDropped uint
NumTraceBytesDropped uint
OnePassCollected uint8
AllPassesCollected uint8
}
ProfilerIsPassCollectedParams represents params for ProfilerIsPassCollected.
type ProfilerPopRangeParams ¶
ProfilerPopRangeParams represents CUpti_Profiler_PopRange_Params.
type ProfilerPushRangeParams ¶
type ProfilerPushRangeParams struct {
StructSize uint
PPriv uintptr
Ctx driver.Context
PRangeName uintptr
RangeNameLength uint
}
ProfilerPushRangeParams represents CUpti_Profiler_PushRange_Params.
type ProfilerRange ¶
type ProfilerRange int32
ProfilerRange represents profiler range attribute.
A metric enabled in the session’s configuration is collected separately per unique range-stack in the pass. This is an attribute to collect metrics around each kernel in a profiling session or in an user defined range.
const ( RangeInvalid ProfilerRange = 0 // Invalid value. // AutoRange: Ranges are auto defined around each kernel in a profiling session. AutoRange ProfilerRange = 1 // UserRange: A range in which metric data to be collected is defined by the user. UserRange ProfilerRange = 2 RangeCount ProfilerRange = 3 // Range count. )
func (ProfilerRange) String ¶
func (e ProfilerRange) String() string
String returns the constant name, or a numeric representation for unknown values.
type ProfilerReplayMode ¶
type ProfilerReplayMode int32
ProfilerReplayMode represents profiler replay attribute.
For metrics which require multipass collection, a replay of the GPU kernel(s) is required. This is an attribute which specify how the replay of the kernel(s) to be measured is done.
const ( ReplayInvalid ProfilerReplayMode = 0 // Invalid Value. ApplicationReplay ProfilerReplayMode = 1 // Replay is done by CUPTI user around the process. KernelReplay ProfilerReplayMode = 2 // Replay is done around kernel implicitly by CUPTI. UserReplay ProfilerReplayMode = 3 // Replay is done by CUPTI user within a process. ReplayCount ProfilerReplayMode = 4 // Replay count. )
func (ProfilerReplayMode) String ¶
func (e ProfilerReplayMode) String() string
String returns the constant name, or a numeric representation for unknown values.
type ProfilerSetConfigParams ¶
type ProfilerSetConfigParams struct {
StructSize uint
PPriv uintptr
Ctx driver.Context
PConfig uintptr
ConfigSize uint
MinNestingLevel uint16
NumNestingLevels uint16
PassIndex uint
TargetNestingLevel uint16
}
ProfilerSetConfigParams represents params for ProfilerSetConfig.
type ProfilerSupportLevel ¶
type ProfilerSupportLevel int32
ProfilerSupportLevel represents generic support level enum for CUPTI.
const ( // ProfilerConfigurationUnknown: Configuration support level unknown - either detection code errored out before setting this value, or unable to determine it ProfilerConfigurationUnknown ProfilerSupportLevel = 0 // ProfilerConfigurationUnsupported: Profiling is unavailable. For specific feature fields, this means that the current configuration of this feature does not work with profiling. For instance, SLI-enabled devices do not support profiling, and this value would be returned for SLI on an SLI-enabled device. ProfilerConfigurationUnsupported ProfilerSupportLevel = 1 // ProfilerConfigurationDisabled: Profiling would be available for this configuration, but was disabled by the system ProfilerConfigurationDisabled ProfilerSupportLevel = 2 // ProfilerConfigurationSupported: Profiling is supported. For specific feature fields, this means that the current configuration of this feature works with profiling. For instance, SLI-enabled devices do not support profiling, and this value would only be returned for devices which are not SLI-enabled. ProfilerConfigurationSupported ProfilerSupportLevel = 3 // ProfilerConfigurationLimitedSupport: Profiling is supported, but only for a limited set of metrics. ProfilerConfigurationLimitedSupport ProfilerSupportLevel = 4 )
func (ProfilerSupportLevel) String ¶
func (e ProfilerSupportLevel) String() string
String returns the constant name, or a numeric representation for unknown values.
type ProfilerType ¶
type ProfilerType int32
ProfilerType specifies the profiler type (CUpti_ProfilerType).
const ( ProfilerTypeRangeProfiler ProfilerType = 0 ProfilerTypePmSampling ProfilerType = 1 ProfilerTypeProfilerInvalid ProfilerType = 2 )
func (ProfilerType) String ¶
func (e ProfilerType) String() string
String returns the constant name, or a numeric representation for unknown values.
type ProfilerUnsetConfigParams ¶
ProfilerUnsetConfigParams represents params for ProfilerUnsetConfig.
type RangeProfiler ¶
type RangeProfiler uintptr
RangeProfiler is an opaque handle for CUpti_RangeProfiler_Object.
type RangeProfilerCounterDataGetRangeInfoParams ¶
type RangeProfilerCounterDataGetRangeInfoParams struct {
StructSize uint
PPriv uintptr
PCounterDataImage uintptr
CounterDataImageSize uint
RangeIndex uint
RangeDelimiter uintptr
RangeName uintptr
}
RangeProfilerCounterDataGetRangeInfoParams represents params for RangeProfilerCounterDataGetRangeInfo.
type RangeProfilerCounterDataImageInitializeParams ¶
type RangeProfilerCounterDataImageInitializeParams struct {
StructSize uint
PPriv uintptr
PRangeProfilerObject uintptr
CounterDataSize uint
PCounterData uintptr
}
RangeProfilerCounterDataImageInitializeParams represents params for RangeProfilerCounterDataImageInitialize.
type RangeProfilerDecodeDataParams ¶
type RangeProfilerDecodeDataParams struct {
StructSize uint
PPriv uintptr
PRangeProfilerObject uintptr
NumOfRangeDropped uint
}
RangeProfilerDecodeDataParams represents params for RangeProfilerDecodeData.
type RangeProfilerDisableParams ¶
type RangeProfilerDisableParams struct {
StructSize uint
PPriv uintptr
PRangeProfilerObject uintptr
}
RangeProfilerDisableParams represents params for RangeProfilerDisable.
type RangeProfilerEnableParams ¶
type RangeProfilerEnableParams struct {
StructSize uint
PPriv uintptr
Ctx driver.Context
PRangeProfilerObject uintptr
CacheControlMode CacheControlMode
}
RangeProfilerEnableParams represents params for RangeProfilerEnable.
type RangeProfilerGetCounterDataInfoParams ¶
type RangeProfilerGetCounterDataInfoParams struct {
StructSize uint
PPriv uintptr
PCounterDataImage uintptr
CounterDataImageSize uint
NumTotalRanges uint
}
RangeProfilerGetCounterDataInfoParams represents params for RangeProfilerGetCounterDataInfo.
type RangeProfilerGetCounterDataSizeParams ¶
type RangeProfilerGetCounterDataSizeParams struct {
StructSize uint
PPriv uintptr
PRangeProfilerObject uintptr
PMetricNames uintptr
NumMetrics uint
MaxNumOfRanges uint
MaxNumRangeTreeNodes uint32
CounterDataSize uint
}
RangeProfilerGetCounterDataSizeParams represents params for RangeProfilerGetCounterDataSize.
type RangeProfilerGetDevicePartitionInfoParams ¶
type RangeProfilerGetDevicePartitionInfoParams struct {
StructSize uint
PPriv uintptr
PRangeProfilerObject uintptr
DevicePartitionInfoSize uint
PDevicePartitionInfo uintptr
}
RangeProfilerGetDevicePartitionInfoParams represents params for RangeProfilerGetDevicePartitionInfo.
type RangeProfilerPopRangeParams ¶
type RangeProfilerPopRangeParams struct {
StructSize uint
PPriv uintptr
PRangeProfilerObject uintptr
}
RangeProfilerPopRangeParams represents params for RangeProfilerPopRange.
type RangeProfilerPushRangeParams ¶
type RangeProfilerPushRangeParams struct {
StructSize uint
PPriv uintptr
PRangeProfilerObject uintptr
PRangeName uintptr
}
RangeProfilerPushRangeParams represents params for RangeProfilerPushRange.
type RangeProfilerSetConfigParams ¶
type RangeProfilerSetConfigParams struct {
StructSize uint
PPriv uintptr
PRangeProfilerObject uintptr
ConfigSize uint
PConfig uintptr
CounterDataImageSize uint
PCounterDataImage uintptr
Range ProfilerRange
ReplayMode ProfilerReplayMode
MaxRangesPerPass uint
NumNestingLevels uint16
MinNestingLevel uint16
PassIndex uint
TargetNestingLevel uint16
}
RangeProfilerSetConfigParams represents params for RangeProfilerSetConfig.
type RangeProfilerStartParams ¶
RangeProfilerStartParams represents params for RangeProfilerStart.
type RangeProfilerStopParams ¶
type RangeProfilerStopParams struct {
StructSize uint
PPriv uintptr
PRangeProfilerObject uintptr
PassIndex uint
TargetNestingLevel uint
IsAllPassSubmitted uint8
}
RangeProfilerStopParams represents params for RangeProfilerStop.
type ReadEventFlags ¶
type ReadEventFlags int32
ReadEventFlags represents flags for EventGroup.ReadEvent an EventGroup.ReadAllEvents.
Flags for EventGroup.ReadEvent an EventGroup.ReadAllEvents.
const ( EventReadFlagNone ReadEventFlags = 0 // No flags. EventReadFlagForceInt ReadEventFlags = 0x7fffffff )
func (ReadEventFlags) String ¶
func (e ReadEventFlags) String() string
String returns the constant name, or a numeric representation for unknown values.
type ResourceData ¶
type ResourceData struct {
Context driver.Context
ResourceHandle [1]uint64
ResourceDescriptor uintptr
}
ResourceData represents data passed into a resource callback function.
Data passed into a resource callback function as the cbdata argument to CallbackFunc. The cbdata will be this type for domain equal to CbDomainResource. The callback data is valid only within the invocation of the callback function that is passed the data. If you need to retain some data for use outside of the callback, you must make a copy of that data.
type Result ¶
type Result int32
Result represents a cupti API error code (CUptiResult).
When the library is loaded, Result.Error returns rich messages from GetResultString and GetErrorMessage. When the library is not loaded, it falls back to the numeric error code and Go-defined name.
const ( Success Result = 0 // No error. ErrInvalidParameter Result = 1 // One or more of the parameters is invalid. ErrInvalidDevice Result = 2 // The device does not correspond to a valid CUDA device. ErrInvalidContext Result = 3 // The context is NULL or not valid. ErrInvalidEventDomainId Result = 4 // The event domain id is invalid. ErrInvalidEventId Result = 5 // The event id is invalid. ErrInvalidEventName Result = 6 // The event name is invalid. ErrInvalidOperation Result = 7 // The current operation cannot be performed due to dependency on other factors. ErrOutOfMemory Result = 8 // Unable to allocate enough memory to perform the requested operation. ErrHardware Result = 9 // An error occurred on the performance monitoring hardware. ErrParameterSizeNotSufficient Result = 10 // The output buffer size is not sufficient to return all requested data. ErrApiNotImplemented Result = 11 // API is not implemented. ErrMaxLimitReached Result = 12 // The maximum limit is reached. ErrNotReady Result = 13 // The object is not yet ready to perform the requested operation. ErrNotCompatible Result = 14 // The current operation is not compatible with the current state of the object ErrNotInitialized Result = 15 // CUPTI is unable to initialize its connection to the CUDA driver. When returned from the profiling APIs (such as [ProfilerInitialize] or [ProfilerHostInitialize]), it may also indicate that CUPTI could not dynamically load the nvperf* libraries; ensure libnvperf_host.so and libnvperf_target.so, which ship alongside libcupti.so, are discoverable by the dynamic linker. ErrInvalidMetricId Result = 16 // The metric id is invalid. ErrInvalidMetricName Result = 17 // The metric name is invalid. ErrQueueEmpty Result = 18 // The queue is empty. ErrInvalidHandle Result = 19 // Invalid handle (internal?). ErrInvalidStream Result = 20 // Invalid stream. ErrInvalidKind Result = 21 // Invalid kind. ErrInvalidEventValue Result = 22 // Invalid event value. ErrDisabled Result = 23 // CUPTI is disabled due to conflicts with other enabled profilers ErrInvalidModule Result = 24 // Invalid module. ErrInvalidMetricValue Result = 25 // Invalid metric value. ErrHardwareBusy Result = 26 // The performance monitoring hardware is in use by other client. ErrNotSupported Result = 27 // The attempted operation is not supported on the current system or device. ErrUmProfilingNotSupported Result = 28 // Unified memory profiling is not supported on the system. Potential reason could be unsupported OS or architecture. ErrUmProfilingNotSupportedOnDevice Result = 29 // Unified memory profiling is not supported on the device ErrUmProfilingNotSupportedOnNonP2PDevices Result = 30 // Unified memory profiling is not supported on a multi-GPU configuration without P2P support between any pair of devices ErrUmProfilingNotSupportedWithMps Result = 31 // Unified memory profiling is not supported under the Multi-Process Service (MPS) environment. CUDA 7.5 removes this restriction. ErrCdpTracingNotSupported Result = 32 // In CUDA 9.0, devices with compute capability 7.0 don't support CDP tracing ErrVirtualizedDeviceNotSupported Result = 33 // Profiling on virtualized GPU is not supported. ErrCudaCompilerNotCompatible Result = 34 // Profiling results might be incorrect for CUDA applications compiled with nvcc version older than 9.0 for devices with compute capability 6.0 and 6.1. Profiling session will continue and CUPTI will notify it using this error code. User is advised to recompile the application code with nvcc version 9.0 or later. Ignore this warning if code is already compiled with the recommended nvcc version. ErrInsufficientPrivileges Result = 35 // User doesn't have sufficient privileges which are required to start the profiling session. One possible reason for this may be that the NVIDIA driver or your system administrator may have restricted access to the NVIDIA GPU performance counters. To learn how to resolve this issue and find more information, please visit https://developer.nvidia.com/[ErrInsufficientPrivileges] ErrOldProfilerApiInitialized Result = 36 // Legacy CUPTI Profiling API i.e. event API from the header cupti_events.h and metric API from the header cupti_metrics.h are not compatible with the Profiling API in the header cupti_profiler_target.h and Perfworks metrics API in the headers nvperf_host.h and nvperf_target.h. ErrOpenaccUndefinedRoutine Result = 37 // Missing definition of the OpenACC API routine in the linked OpenACC library. One possible reason is that OpenACC library is linked statically in the user application, which might not have the definition of all the OpenACC API routines needed for the OpenACC profiling, as compiler might ignore definitions for the functions not used in the application. This issue can be mitigated by linking the OpenACC library dynamically. ErrLegacyProfilerNotSupported Result = 38 // Legacy CUPTI Profiling API i.e. event API from the header cupti_events.h and metric API from the header cupti_metrics.h are not supported on devices with compute capability 7.5 and higher (i.e. Turing and later GPU architectures). These APIs were deprecated in CUDA 12.8 and removed in CUDA 13.0. These are replaced by the host profiling API in the header cupti_profiler_host.h and target profiling API in the header cupti_range_profiler.h which are supported on devices with compute capability 7.5 and higher (i.e. Turing and later GPU architectures). Further, the PC Sampling Activity API and the source/SASS level metrics from the header cupti_activity.h are removed in CUDA 13.0. Additionally, the legacy range profiling API i.e. the cuptiProfiler* APIs from the header cupti_profiler_target.h are not supported on Rubin and newer GPU architectures. Use the new cuptiRangeProfiler* APIs from the header cupti_range_profiler.h as a substitute on these architectures. ErrMultipleSubscribersNotSupported Result = 39 // CUPTI doesn't allow multiple callback subscribers. Only a single subscriber can be registered at a time. Same error code is used when application is launched using NVIDIA tools like Nsight Systems, Nsight Compute, and cuda-gdb. ErrVirtualizedDeviceInsufficientPrivileges Result = 40 // Profiling on virtualized GPU is not allowed by hypervisor. ErrConfidentialComputingNotSupported Result = 41 // Profiling and tracing are not allowed when confidential computing mode is enabled. ErrCmpDeviceNotSupported Result = 42 // CUPTI does not support NVIDIA Crypto Mining Processors (CMP). For more information, please visit https://developer.nvidia.com/ERR_NVCMPGPU ErrMigDeviceNotSupported Result = 43 // Profiling on Multi-instance GPU (MIG) is not supported. ErrSliDeviceNotSupported Result = 44 // Profiling on SLI device is not supported. ErrWslDeviceNotSupported Result = 45 // Profiling on WSL device is not supported. ErrInvalidChipName Result = 46 // For invalid or unsupported chip name passed to [ProfilerHostInitialize]. ErrHesTraceNotSupportedOnMps Result = 47 // Hardware Event System (HES) trace is not supported on MPS. ErrUnknown Result = 999 // An unknown internal error has occurred. ErrForceInt Result = 0x7fffffff )
cupti error codes from cupti.h.
type RuntimeTraceCBID ¶
type RuntimeTraceCBID int32
RuntimeTraceCBID specifies the runtime trace cbid (CUpti_runtime_api_trace_cbid).
const ( RuntimeCBIDInvalid RuntimeTraceCBID = 0 RuntimeCBIDCudaDriverGetVersionV3020 RuntimeTraceCBID = 1 RuntimeCBIDCudaRuntimeGetVersionV3020 RuntimeTraceCBID = 2 RuntimeCBIDCudaGetDeviceCountV3020 RuntimeTraceCBID = 3 RuntimeCBIDCudaGetDevicePropertiesV3020 RuntimeTraceCBID = 4 RuntimeCBIDCudaChooseDeviceV3020 RuntimeTraceCBID = 5 RuntimeCBIDCudaGetChannelDescV3020 RuntimeTraceCBID = 6 RuntimeCBIDCudaCreateChannelDescV3020 RuntimeTraceCBID = 7 RuntimeCBIDCudaConfigureCallV3020 RuntimeTraceCBID = 8 RuntimeCBIDCudaSetupArgumentV3020 RuntimeTraceCBID = 9 RuntimeCBIDCudaGetLastErrorV3020 RuntimeTraceCBID = 10 RuntimeCBIDCudaPeekAtLastErrorV3020 RuntimeTraceCBID = 11 RuntimeCBIDCudaGetErrorStringV3020 RuntimeTraceCBID = 12 RuntimeCBIDCudaLaunchV3020 RuntimeTraceCBID = 13 RuntimeCBIDCudaFuncSetCacheConfigV3020 RuntimeTraceCBID = 14 RuntimeCBIDCudaFuncGetAttributesV3020 RuntimeTraceCBID = 15 RuntimeCBIDCudaSetDeviceV3020 RuntimeTraceCBID = 16 RuntimeCBIDCudaGetDeviceV3020 RuntimeTraceCBID = 17 RuntimeCBIDCudaSetValidDevicesV3020 RuntimeTraceCBID = 18 RuntimeCBIDCudaSetDeviceFlagsV3020 RuntimeTraceCBID = 19 RuntimeCBIDCudaMallocV3020 RuntimeTraceCBID = 20 RuntimeCBIDCudaMallocPitchV3020 RuntimeTraceCBID = 21 RuntimeCBIDCudaFreeV3020 RuntimeTraceCBID = 22 RuntimeCBIDCudaMallocArrayV3020 RuntimeTraceCBID = 23 RuntimeCBIDCudaFreeArrayV3020 RuntimeTraceCBID = 24 RuntimeCBIDCudaMallocHostV3020 RuntimeTraceCBID = 25 RuntimeCBIDCudaFreeHostV3020 RuntimeTraceCBID = 26 RuntimeCBIDCudaHostAllocV3020 RuntimeTraceCBID = 27 RuntimeCBIDCudaHostGetDevicePointerV3020 RuntimeTraceCBID = 28 RuntimeCBIDCudaHostGetFlagsV3020 RuntimeTraceCBID = 29 RuntimeCBIDCudaMemGetInfoV3020 RuntimeTraceCBID = 30 RuntimeCBIDCudaMemcpyV3020 RuntimeTraceCBID = 31 RuntimeCBIDCudaMemcpy2DV3020 RuntimeTraceCBID = 32 RuntimeCBIDCudaMemcpyToArrayV3020 RuntimeTraceCBID = 33 RuntimeCBIDCudaMemcpy2DToArrayV3020 RuntimeTraceCBID = 34 RuntimeCBIDCudaMemcpyFromArrayV3020 RuntimeTraceCBID = 35 RuntimeCBIDCudaMemcpy2DFromArrayV3020 RuntimeTraceCBID = 36 RuntimeCBIDCudaMemcpyArrayToArrayV3020 RuntimeTraceCBID = 37 RuntimeCBIDCudaMemcpy2DArrayToArrayV3020 RuntimeTraceCBID = 38 RuntimeCBIDCudaMemcpyToSymbolV3020 RuntimeTraceCBID = 39 RuntimeCBIDCudaMemcpyFromSymbolV3020 RuntimeTraceCBID = 40 RuntimeCBIDCudaMemcpyAsyncV3020 RuntimeTraceCBID = 41 RuntimeCBIDCudaMemcpyToArrayAsyncV3020 RuntimeTraceCBID = 42 RuntimeCBIDCudaMemcpyFromArrayAsyncV3020 RuntimeTraceCBID = 43 RuntimeCBIDCudaMemcpy2DAsyncV3020 RuntimeTraceCBID = 44 RuntimeCBIDCudaMemcpy2DToArrayAsyncV3020 RuntimeTraceCBID = 45 RuntimeCBIDCudaMemcpy2DFromArrayAsyncV3020 RuntimeTraceCBID = 46 RuntimeCBIDCudaMemcpyToSymbolAsyncV3020 RuntimeTraceCBID = 47 RuntimeCBIDCudaMemcpyFromSymbolAsyncV3020 RuntimeTraceCBID = 48 RuntimeCBIDCudaMemsetV3020 RuntimeTraceCBID = 49 RuntimeCBIDCudaMemset2DV3020 RuntimeTraceCBID = 50 RuntimeCBIDCudaMemsetAsyncV3020 RuntimeTraceCBID = 51 RuntimeCBIDCudaMemset2DAsyncV3020 RuntimeTraceCBID = 52 RuntimeCBIDCudaGetSymbolAddressV3020 RuntimeTraceCBID = 53 RuntimeCBIDCudaGetSymbolSizeV3020 RuntimeTraceCBID = 54 RuntimeCBIDCudaBindTextureV3020 RuntimeTraceCBID = 55 RuntimeCBIDCudaBindTexture2DV3020 RuntimeTraceCBID = 56 RuntimeCBIDCudaBindTextureToArrayV3020 RuntimeTraceCBID = 57 RuntimeCBIDCudaUnbindTextureV3020 RuntimeTraceCBID = 58 RuntimeCBIDCudaGetTextureAlignmentOffsetV3020 RuntimeTraceCBID = 59 RuntimeCBIDCudaGetTextureReferenceV3020 RuntimeTraceCBID = 60 RuntimeCBIDCudaBindSurfaceToArrayV3020 RuntimeTraceCBID = 61 RuntimeCBIDCudaGetSurfaceReferenceV3020 RuntimeTraceCBID = 62 RuntimeCBIDCudaGLSetGLDeviceV3020 RuntimeTraceCBID = 63 RuntimeCBIDCudaGLRegisterBufferObjectV3020 RuntimeTraceCBID = 64 RuntimeCBIDCudaGLMapBufferObjectV3020 RuntimeTraceCBID = 65 RuntimeCBIDCudaGLUnmapBufferObjectV3020 RuntimeTraceCBID = 66 RuntimeCBIDCudaGLUnregisterBufferObjectV3020 RuntimeTraceCBID = 67 RuntimeCBIDCudaGLSetBufferObjectMapFlagsV3020 RuntimeTraceCBID = 68 RuntimeCBIDCudaGLMapBufferObjectAsyncV3020 RuntimeTraceCBID = 69 RuntimeCBIDCudaGLUnmapBufferObjectAsyncV3020 RuntimeTraceCBID = 70 RuntimeCBIDCudaWGLGetDeviceV3020 RuntimeTraceCBID = 71 RuntimeCBIDCudaGraphicsGLRegisterImageV3020 RuntimeTraceCBID = 72 RuntimeCBIDCudaGraphicsGLRegisterBufferV3020 RuntimeTraceCBID = 73 RuntimeCBIDCudaGraphicsUnregisterResourceV3020 RuntimeTraceCBID = 74 RuntimeCBIDCudaGraphicsResourceSetMapFlagsV3020 RuntimeTraceCBID = 75 RuntimeCBIDCudaGraphicsMapResourcesV3020 RuntimeTraceCBID = 76 RuntimeCBIDCudaGraphicsUnmapResourcesV3020 RuntimeTraceCBID = 77 RuntimeCBIDCudaGraphicsResourceGetMappedPointerV3020 RuntimeTraceCBID = 78 RuntimeCBIDCudaGraphicsSubResourceGetMappedArrayV3020 RuntimeTraceCBID = 79 RuntimeCBIDCudaVDPAUGetDeviceV3020 RuntimeTraceCBID = 80 RuntimeCBIDCudaVDPAUSetVDPAUDeviceV3020 RuntimeTraceCBID = 81 RuntimeCBIDCudaGraphicsVDPAURegisterVideoSurfaceV3020 RuntimeTraceCBID = 82 RuntimeCBIDCudaGraphicsVDPAURegisterOutputSurfaceV3020 RuntimeTraceCBID = 83 RuntimeCBIDCudaD3D11GetDeviceV3020 RuntimeTraceCBID = 84 RuntimeCBIDCudaD3D11GetDevicesV3020 RuntimeTraceCBID = 85 RuntimeCBIDCudaD3D11SetDirect3DDeviceV3020 RuntimeTraceCBID = 86 RuntimeCBIDCudaGraphicsD3D11RegisterResourceV3020 RuntimeTraceCBID = 87 RuntimeCBIDCudaD3D10GetDeviceV3020 RuntimeTraceCBID = 88 RuntimeCBIDCudaD3D10GetDevicesV3020 RuntimeTraceCBID = 89 RuntimeCBIDCudaD3D10SetDirect3DDeviceV3020 RuntimeTraceCBID = 90 RuntimeCBIDCudaGraphicsD3D10RegisterResourceV3020 RuntimeTraceCBID = 91 RuntimeCBIDCudaD3D10RegisterResourceV3020 RuntimeTraceCBID = 92 RuntimeCBIDCudaD3D10UnregisterResourceV3020 RuntimeTraceCBID = 93 RuntimeCBIDCudaD3D10MapResourcesV3020 RuntimeTraceCBID = 94 RuntimeCBIDCudaD3D10UnmapResourcesV3020 RuntimeTraceCBID = 95 RuntimeCBIDCudaD3D10ResourceSetMapFlagsV3020 RuntimeTraceCBID = 96 RuntimeCBIDCudaD3D10ResourceGetSurfaceDimensionsV3020 RuntimeTraceCBID = 97 RuntimeCBIDCudaD3D10ResourceGetMappedArrayV3020 RuntimeTraceCBID = 98 RuntimeCBIDCudaD3D10ResourceGetMappedPointerV3020 RuntimeTraceCBID = 99 RuntimeCBIDCudaD3D10ResourceGetMappedSizeV3020 RuntimeTraceCBID = 100 RuntimeCBIDCudaD3D10ResourceGetMappedPitchV3020 RuntimeTraceCBID = 101 RuntimeCBIDCudaD3D9GetDeviceV3020 RuntimeTraceCBID = 102 RuntimeCBIDCudaD3D9GetDevicesV3020 RuntimeTraceCBID = 103 RuntimeCBIDCudaD3D9SetDirect3DDeviceV3020 RuntimeTraceCBID = 104 RuntimeCBIDCudaD3D9GetDirect3DDeviceV3020 RuntimeTraceCBID = 105 RuntimeCBIDCudaGraphicsD3D9RegisterResourceV3020 RuntimeTraceCBID = 106 RuntimeCBIDCudaD3D9RegisterResourceV3020 RuntimeTraceCBID = 107 RuntimeCBIDCudaD3D9UnregisterResourceV3020 RuntimeTraceCBID = 108 RuntimeCBIDCudaD3D9MapResourcesV3020 RuntimeTraceCBID = 109 RuntimeCBIDCudaD3D9UnmapResourcesV3020 RuntimeTraceCBID = 110 RuntimeCBIDCudaD3D9ResourceSetMapFlagsV3020 RuntimeTraceCBID = 111 RuntimeCBIDCudaD3D9ResourceGetSurfaceDimensionsV3020 RuntimeTraceCBID = 112 RuntimeCBIDCudaD3D9ResourceGetMappedArrayV3020 RuntimeTraceCBID = 113 RuntimeCBIDCudaD3D9ResourceGetMappedPointerV3020 RuntimeTraceCBID = 114 RuntimeCBIDCudaD3D9ResourceGetMappedSizeV3020 RuntimeTraceCBID = 115 RuntimeCBIDCudaD3D9ResourceGetMappedPitchV3020 RuntimeTraceCBID = 116 RuntimeCBIDCudaD3D9BeginV3020 RuntimeTraceCBID = 117 RuntimeCBIDCudaD3D9EndV3020 RuntimeTraceCBID = 118 RuntimeCBIDCudaD3D9RegisterVertexBufferV3020 RuntimeTraceCBID = 119 RuntimeCBIDCudaD3D9UnregisterVertexBufferV3020 RuntimeTraceCBID = 120 RuntimeCBIDCudaD3D9MapVertexBufferV3020 RuntimeTraceCBID = 121 RuntimeCBIDCudaD3D9UnmapVertexBufferV3020 RuntimeTraceCBID = 122 RuntimeCBIDCudaThreadExitV3020 RuntimeTraceCBID = 123 RuntimeCBIDCudaSetDoubleForDeviceV3020 RuntimeTraceCBID = 124 RuntimeCBIDCudaSetDoubleForHostV3020 RuntimeTraceCBID = 125 RuntimeCBIDCudaThreadSynchronizeV3020 RuntimeTraceCBID = 126 RuntimeCBIDCudaThreadGetLimitV3020 RuntimeTraceCBID = 127 RuntimeCBIDCudaThreadSetLimitV3020 RuntimeTraceCBID = 128 RuntimeCBIDCudaStreamCreateV3020 RuntimeTraceCBID = 129 RuntimeCBIDCudaStreamDestroyV3020 RuntimeTraceCBID = 130 RuntimeCBIDCudaStreamSynchronizeV3020 RuntimeTraceCBID = 131 RuntimeCBIDCudaStreamQueryV3020 RuntimeTraceCBID = 132 RuntimeCBIDCudaEventCreateV3020 RuntimeTraceCBID = 133 RuntimeCBIDCudaEventCreateWithFlagsV3020 RuntimeTraceCBID = 134 RuntimeCBIDCudaEventRecordV3020 RuntimeTraceCBID = 135 RuntimeCBIDCudaEventDestroyV3020 RuntimeTraceCBID = 136 RuntimeCBIDCudaEventSynchronizeV3020 RuntimeTraceCBID = 137 RuntimeCBIDCudaEventQueryV3020 RuntimeTraceCBID = 138 RuntimeCBIDCudaEventElapsedTimeV3020 RuntimeTraceCBID = 139 RuntimeCBIDCudaMalloc3DV3020 RuntimeTraceCBID = 140 RuntimeCBIDCudaMalloc3DArrayV3020 RuntimeTraceCBID = 141 RuntimeCBIDCudaMemset3DV3020 RuntimeTraceCBID = 142 RuntimeCBIDCudaMemset3DAsyncV3020 RuntimeTraceCBID = 143 RuntimeCBIDCudaMemcpy3DV3020 RuntimeTraceCBID = 144 RuntimeCBIDCudaMemcpy3DAsyncV3020 RuntimeTraceCBID = 145 RuntimeCBIDCudaThreadSetCacheConfigV3020 RuntimeTraceCBID = 146 RuntimeCBIDCudaStreamWaitEventV3020 RuntimeTraceCBID = 147 RuntimeCBIDCudaD3D11GetDirect3DDeviceV3020 RuntimeTraceCBID = 148 RuntimeCBIDCudaD3D10GetDirect3DDeviceV3020 RuntimeTraceCBID = 149 RuntimeCBIDCudaThreadGetCacheConfigV3020 RuntimeTraceCBID = 150 RuntimeCBIDCudaPointerGetAttributesV4000 RuntimeTraceCBID = 151 RuntimeCBIDCudaHostRegisterV4000 RuntimeTraceCBID = 152 RuntimeCBIDCudaHostUnregisterV4000 RuntimeTraceCBID = 153 RuntimeCBIDCudaDeviceCanAccessPeerV4000 RuntimeTraceCBID = 154 RuntimeCBIDCudaDeviceEnablePeerAccessV4000 RuntimeTraceCBID = 155 RuntimeCBIDCudaDeviceDisablePeerAccessV4000 RuntimeTraceCBID = 156 RuntimeCBIDCudaPeerRegisterV4000 RuntimeTraceCBID = 157 RuntimeCBIDCudaPeerUnregisterV4000 RuntimeTraceCBID = 158 RuntimeCBIDCudaPeerGetDevicePointerV4000 RuntimeTraceCBID = 159 RuntimeCBIDCudaMemcpyPeerV4000 RuntimeTraceCBID = 160 RuntimeCBIDCudaMemcpyPeerAsyncV4000 RuntimeTraceCBID = 161 RuntimeCBIDCudaMemcpy3DPeerV4000 RuntimeTraceCBID = 162 RuntimeCBIDCudaMemcpy3DPeerAsyncV4000 RuntimeTraceCBID = 163 RuntimeCBIDCudaDeviceResetV3020 RuntimeTraceCBID = 164 RuntimeCBIDCudaDeviceSynchronizeV3020 RuntimeTraceCBID = 165 RuntimeCBIDCudaDeviceGetLimitV3020 RuntimeTraceCBID = 166 RuntimeCBIDCudaDeviceSetLimitV3020 RuntimeTraceCBID = 167 RuntimeCBIDCudaDeviceGetCacheConfigV3020 RuntimeTraceCBID = 168 RuntimeCBIDCudaDeviceSetCacheConfigV3020 RuntimeTraceCBID = 169 RuntimeCBIDCudaProfilerInitializeV4000 RuntimeTraceCBID = 170 RuntimeCBIDCudaProfilerStartV4000 RuntimeTraceCBID = 171 RuntimeCBIDCudaProfilerStopV4000 RuntimeTraceCBID = 172 RuntimeCBIDCudaDeviceGetByPCIBusIdV4010 RuntimeTraceCBID = 173 RuntimeCBIDCudaDeviceGetPCIBusIdV4010 RuntimeTraceCBID = 174 RuntimeCBIDCudaGLGetDevicesV4010 RuntimeTraceCBID = 175 RuntimeCBIDCudaIpcGetEventHandleV4010 RuntimeTraceCBID = 176 RuntimeCBIDCudaIpcOpenEventHandleV4010 RuntimeTraceCBID = 177 RuntimeCBIDCudaIpcGetMemHandleV4010 RuntimeTraceCBID = 178 RuntimeCBIDCudaIpcOpenMemHandleV4010 RuntimeTraceCBID = 179 RuntimeCBIDCudaIpcCloseMemHandleV4010 RuntimeTraceCBID = 180 RuntimeCBIDCudaArrayGetInfoV4010 RuntimeTraceCBID = 181 RuntimeCBIDCudaCreateTextureObjectV5000 RuntimeTraceCBID = 185 RuntimeCBIDCudaDestroyTextureObjectV5000 RuntimeTraceCBID = 186 RuntimeCBIDCudaGetTextureObjectResourceDescV5000 RuntimeTraceCBID = 187 RuntimeCBIDCudaGetTextureObjectTextureDescV5000 RuntimeTraceCBID = 188 RuntimeCBIDCudaCreateSurfaceObjectV5000 RuntimeTraceCBID = 189 RuntimeCBIDCudaDestroySurfaceObjectV5000 RuntimeTraceCBID = 190 RuntimeCBIDCudaGetSurfaceObjectResourceDescV5000 RuntimeTraceCBID = 191 RuntimeCBIDCudaMallocMipmappedArrayV5000 RuntimeTraceCBID = 192 RuntimeCBIDCudaGetMipmappedArrayLevelV5000 RuntimeTraceCBID = 193 RuntimeCBIDCudaFreeMipmappedArrayV5000 RuntimeTraceCBID = 194 RuntimeCBIDCudaBindTextureToMipmappedArrayV5000 RuntimeTraceCBID = 195 RuntimeCBIDCudaGraphicsResourceGetMappedMipmappedArrayV5000 RuntimeTraceCBID = 196 RuntimeCBIDCudaStreamAddCallbackV5000 RuntimeTraceCBID = 197 RuntimeCBIDCudaStreamCreateWithFlagsV5000 RuntimeTraceCBID = 198 RuntimeCBIDCudaGetTextureObjectResourceViewDescV5000 RuntimeTraceCBID = 199 RuntimeCBIDCudaDeviceGetAttributeV5000 RuntimeTraceCBID = 200 RuntimeCBIDCudaStreamDestroyV5050 RuntimeTraceCBID = 201 RuntimeCBIDCudaStreamCreateWithPriorityV5050 RuntimeTraceCBID = 202 RuntimeCBIDCudaStreamGetPriorityV5050 RuntimeTraceCBID = 203 RuntimeCBIDCudaStreamGetFlagsV5050 RuntimeTraceCBID = 204 RuntimeCBIDCudaDeviceGetStreamPriorityRangeV5050 RuntimeTraceCBID = 205 RuntimeCBIDCudaMallocManagedV6000 RuntimeTraceCBID = 206 RuntimeCBIDCudaOccupancyMaxActiveBlocksPerMultiprocessorV6000 RuntimeTraceCBID = 207 RuntimeCBIDCudaStreamAttachMemAsyncV6000 RuntimeTraceCBID = 208 RuntimeCBIDCudaGetErrorNameV6050 RuntimeTraceCBID = 209 RuntimeCBIDCudaOccupancyMaxActiveBlocksPerMultiprocessorV6050 RuntimeTraceCBID = 210 RuntimeCBIDCudaLaunchKernelV7000 RuntimeTraceCBID = 211 RuntimeCBIDCudaGetDeviceFlagsV7000 RuntimeTraceCBID = 212 RuntimeCBIDCudaLaunchPtszV7000 RuntimeTraceCBID = 213 RuntimeCBIDCudaLaunchKernelPtszV7000 RuntimeTraceCBID = 214 RuntimeCBIDCudaMemcpyPtdsV7000 RuntimeTraceCBID = 215 RuntimeCBIDCudaMemcpy2DPtdsV7000 RuntimeTraceCBID = 216 RuntimeCBIDCudaMemcpyToArrayPtdsV7000 RuntimeTraceCBID = 217 RuntimeCBIDCudaMemcpy2DToArrayPtdsV7000 RuntimeTraceCBID = 218 RuntimeCBIDCudaMemcpyFromArrayPtdsV7000 RuntimeTraceCBID = 219 RuntimeCBIDCudaMemcpy2DFromArrayPtdsV7000 RuntimeTraceCBID = 220 RuntimeCBIDCudaMemcpyArrayToArrayPtdsV7000 RuntimeTraceCBID = 221 RuntimeCBIDCudaMemcpy2DArrayToArrayPtdsV7000 RuntimeTraceCBID = 222 RuntimeCBIDCudaMemcpyToSymbolPtdsV7000 RuntimeTraceCBID = 223 RuntimeCBIDCudaMemcpyFromSymbolPtdsV7000 RuntimeTraceCBID = 224 RuntimeCBIDCudaMemcpyAsyncPtszV7000 RuntimeTraceCBID = 225 RuntimeCBIDCudaMemcpyToArrayAsyncPtszV7000 RuntimeTraceCBID = 226 RuntimeCBIDCudaMemcpyFromArrayAsyncPtszV7000 RuntimeTraceCBID = 227 RuntimeCBIDCudaMemcpy2DAsyncPtszV7000 RuntimeTraceCBID = 228 RuntimeCBIDCudaMemcpy2DToArrayAsyncPtszV7000 RuntimeTraceCBID = 229 RuntimeCBIDCudaMemcpy2DFromArrayAsyncPtszV7000 RuntimeTraceCBID = 230 RuntimeCBIDCudaMemcpyToSymbolAsyncPtszV7000 RuntimeTraceCBID = 231 RuntimeCBIDCudaMemcpyFromSymbolAsyncPtszV7000 RuntimeTraceCBID = 232 RuntimeCBIDCudaMemsetPtdsV7000 RuntimeTraceCBID = 233 RuntimeCBIDCudaMemset2DPtdsV7000 RuntimeTraceCBID = 234 RuntimeCBIDCudaMemsetAsyncPtszV7000 RuntimeTraceCBID = 235 RuntimeCBIDCudaMemset2DAsyncPtszV7000 RuntimeTraceCBID = 236 RuntimeCBIDCudaStreamGetPriorityPtszV7000 RuntimeTraceCBID = 237 RuntimeCBIDCudaStreamGetFlagsPtszV7000 RuntimeTraceCBID = 238 RuntimeCBIDCudaStreamSynchronizePtszV7000 RuntimeTraceCBID = 239 RuntimeCBIDCudaStreamQueryPtszV7000 RuntimeTraceCBID = 240 RuntimeCBIDCudaStreamAttachMemAsyncPtszV7000 RuntimeTraceCBID = 241 RuntimeCBIDCudaEventRecordPtszV7000 RuntimeTraceCBID = 242 RuntimeCBIDCudaMemset3DPtdsV7000 RuntimeTraceCBID = 243 RuntimeCBIDCudaMemset3DAsyncPtszV7000 RuntimeTraceCBID = 244 RuntimeCBIDCudaMemcpy3DPtdsV7000 RuntimeTraceCBID = 245 RuntimeCBIDCudaMemcpy3DAsyncPtszV7000 RuntimeTraceCBID = 246 RuntimeCBIDCudaStreamWaitEventPtszV7000 RuntimeTraceCBID = 247 RuntimeCBIDCudaStreamAddCallbackPtszV7000 RuntimeTraceCBID = 248 RuntimeCBIDCudaMemcpy3DPeerPtdsV7000 RuntimeTraceCBID = 249 RuntimeCBIDCudaMemcpy3DPeerAsyncPtszV7000 RuntimeTraceCBID = 250 RuntimeCBIDCudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlagsV7000 RuntimeTraceCBID = 251 RuntimeCBIDCudaMemPrefetchAsyncV8000 RuntimeTraceCBID = 252 RuntimeCBIDCudaMemPrefetchAsyncPtszV8000 RuntimeTraceCBID = 253 RuntimeCBIDCudaMemAdviseV8000 RuntimeTraceCBID = 254 RuntimeCBIDCudaDeviceGetP2PAttributeV8000 RuntimeTraceCBID = 255 RuntimeCBIDCudaGraphicsEGLRegisterImageV7000 RuntimeTraceCBID = 256 RuntimeCBIDCudaEGLStreamConsumerConnectV7000 RuntimeTraceCBID = 257 RuntimeCBIDCudaEGLStreamConsumerDisconnectV7000 RuntimeTraceCBID = 258 RuntimeCBIDCudaEGLStreamConsumerAcquireFrameV7000 RuntimeTraceCBID = 259 RuntimeCBIDCudaEGLStreamConsumerReleaseFrameV7000 RuntimeTraceCBID = 260 RuntimeCBIDCudaEGLStreamProducerConnectV7000 RuntimeTraceCBID = 261 RuntimeCBIDCudaEGLStreamProducerDisconnectV7000 RuntimeTraceCBID = 262 RuntimeCBIDCudaEGLStreamProducerPresentFrameV7000 RuntimeTraceCBID = 263 RuntimeCBIDCudaEGLStreamProducerReturnFrameV7000 RuntimeTraceCBID = 264 RuntimeCBIDCudaGraphicsResourceGetMappedEglFrameV7000 RuntimeTraceCBID = 265 RuntimeCBIDCudaMemRangeGetAttributeV8000 RuntimeTraceCBID = 266 RuntimeCBIDCudaMemRangeGetAttributesV8000 RuntimeTraceCBID = 267 RuntimeCBIDCudaEGLStreamConsumerConnectWithFlagsV7000 RuntimeTraceCBID = 268 RuntimeCBIDCudaLaunchCooperativeKernelV9000 RuntimeTraceCBID = 269 RuntimeCBIDCudaLaunchCooperativeKernelPtszV9000 RuntimeTraceCBID = 270 RuntimeCBIDCudaEventCreateFromEGLSyncV9000 RuntimeTraceCBID = 271 RuntimeCBIDCudaLaunchCooperativeKernelMultiDeviceV9000 RuntimeTraceCBID = 272 RuntimeCBIDCudaFuncSetAttributeV9000 RuntimeTraceCBID = 273 RuntimeCBIDCudaImportExternalMemoryV10000 RuntimeTraceCBID = 274 RuntimeCBIDCudaExternalMemoryGetMappedBufferV10000 RuntimeTraceCBID = 275 RuntimeCBIDCudaExternalMemoryGetMappedMipmappedArrayV10000 RuntimeTraceCBID = 276 RuntimeCBIDCudaDestroyExternalMemoryV10000 RuntimeTraceCBID = 277 RuntimeCBIDCudaImportExternalSemaphoreV10000 RuntimeTraceCBID = 278 RuntimeCBIDCudaSignalExternalSemaphoresAsyncV10000 RuntimeTraceCBID = 279 RuntimeCBIDCudaSignalExternalSemaphoresAsyncPtszV10000 RuntimeTraceCBID = 280 RuntimeCBIDCudaWaitExternalSemaphoresAsyncV10000 RuntimeTraceCBID = 281 RuntimeCBIDCudaWaitExternalSemaphoresAsyncPtszV10000 RuntimeTraceCBID = 282 RuntimeCBIDCudaDestroyExternalSemaphoreV10000 RuntimeTraceCBID = 283 RuntimeCBIDCudaLaunchHostFuncV10000 RuntimeTraceCBID = 284 RuntimeCBIDCudaLaunchHostFuncPtszV10000 RuntimeTraceCBID = 285 RuntimeCBIDCudaGraphCreateV10000 RuntimeTraceCBID = 286 RuntimeCBIDCudaGraphKernelNodeGetParamsV10000 RuntimeTraceCBID = 287 RuntimeCBIDCudaGraphKernelNodeSetParamsV10000 RuntimeTraceCBID = 288 RuntimeCBIDCudaGraphAddKernelNodeV10000 RuntimeTraceCBID = 289 RuntimeCBIDCudaGraphAddMemcpyNodeV10000 RuntimeTraceCBID = 290 RuntimeCBIDCudaGraphMemcpyNodeGetParamsV10000 RuntimeTraceCBID = 291 RuntimeCBIDCudaGraphMemcpyNodeSetParamsV10000 RuntimeTraceCBID = 292 RuntimeCBIDCudaGraphAddMemsetNodeV10000 RuntimeTraceCBID = 293 RuntimeCBIDCudaGraphMemsetNodeGetParamsV10000 RuntimeTraceCBID = 294 RuntimeCBIDCudaGraphMemsetNodeSetParamsV10000 RuntimeTraceCBID = 295 RuntimeCBIDCudaGraphAddHostNodeV10000 RuntimeTraceCBID = 296 RuntimeCBIDCudaGraphHostNodeGetParamsV10000 RuntimeTraceCBID = 297 RuntimeCBIDCudaGraphAddChildGraphNodeV10000 RuntimeTraceCBID = 298 RuntimeCBIDCudaGraphChildGraphNodeGetGraphV10000 RuntimeTraceCBID = 299 RuntimeCBIDCudaGraphAddEmptyNodeV10000 RuntimeTraceCBID = 300 RuntimeCBIDCudaGraphCloneV10000 RuntimeTraceCBID = 301 RuntimeCBIDCudaGraphNodeFindInCloneV10000 RuntimeTraceCBID = 302 RuntimeCBIDCudaGraphNodeGetTypeV10000 RuntimeTraceCBID = 303 RuntimeCBIDCudaGraphGetRootNodesV10000 RuntimeTraceCBID = 304 RuntimeCBIDCudaGraphNodeGetDependenciesV10000 RuntimeTraceCBID = 305 RuntimeCBIDCudaGraphNodeGetDependentNodesV10000 RuntimeTraceCBID = 306 RuntimeCBIDCudaGraphAddDependenciesV10000 RuntimeTraceCBID = 307 RuntimeCBIDCudaGraphRemoveDependenciesV10000 RuntimeTraceCBID = 308 RuntimeCBIDCudaGraphDestroyNodeV10000 RuntimeTraceCBID = 309 RuntimeCBIDCudaGraphInstantiateV10000 RuntimeTraceCBID = 310 RuntimeCBIDCudaGraphLaunchV10000 RuntimeTraceCBID = 311 RuntimeCBIDCudaGraphLaunchPtszV10000 RuntimeTraceCBID = 312 RuntimeCBIDCudaGraphExecDestroyV10000 RuntimeTraceCBID = 313 RuntimeCBIDCudaGraphDestroyV10000 RuntimeTraceCBID = 314 RuntimeCBIDCudaStreamBeginCaptureV10000 RuntimeTraceCBID = 315 RuntimeCBIDCudaStreamBeginCapturePtszV10000 RuntimeTraceCBID = 316 RuntimeCBIDCudaStreamIsCapturingV10000 RuntimeTraceCBID = 317 RuntimeCBIDCudaStreamIsCapturingPtszV10000 RuntimeTraceCBID = 318 RuntimeCBIDCudaStreamEndCaptureV10000 RuntimeTraceCBID = 319 RuntimeCBIDCudaStreamEndCapturePtszV10000 RuntimeTraceCBID = 320 RuntimeCBIDCudaGraphHostNodeSetParamsV10000 RuntimeTraceCBID = 321 RuntimeCBIDCudaGraphGetNodesV10000 RuntimeTraceCBID = 322 RuntimeCBIDCudaGraphGetEdgesV10000 RuntimeTraceCBID = 323 RuntimeCBIDCudaStreamGetCaptureInfoV10010 RuntimeTraceCBID = 324 RuntimeCBIDCudaStreamGetCaptureInfoPtszV10010 RuntimeTraceCBID = 325 RuntimeCBIDCudaGraphExecKernelNodeSetParamsV10010 RuntimeTraceCBID = 326 RuntimeCBIDCudaThreadExchangeStreamCaptureModeV10010 RuntimeTraceCBID = 327 RuntimeCBIDCudaDeviceGetNvSciSyncAttributesV10020 RuntimeTraceCBID = 328 RuntimeCBIDCudaOccupancyAvailableDynamicSMemPerBlockV10200 RuntimeTraceCBID = 329 RuntimeCBIDCudaStreamSetFlagsV10200 RuntimeTraceCBID = 330 RuntimeCBIDCudaStreamSetFlagsPtszV10200 RuntimeTraceCBID = 331 RuntimeCBIDCudaGraphExecMemcpyNodeSetParamsV10020 RuntimeTraceCBID = 332 RuntimeCBIDCudaGraphExecMemsetNodeSetParamsV10020 RuntimeTraceCBID = 333 RuntimeCBIDCudaGraphExecHostNodeSetParamsV10020 RuntimeTraceCBID = 334 RuntimeCBIDCudaGraphExecUpdateV10020 RuntimeTraceCBID = 335 RuntimeCBIDCudaGetFuncBySymbolV11000 RuntimeTraceCBID = 336 RuntimeCBIDCudaCtxResetPersistingL2CacheV11000 RuntimeTraceCBID = 337 RuntimeCBIDCudaGraphKernelNodeCopyAttributesV11000 RuntimeTraceCBID = 338 RuntimeCBIDCudaGraphKernelNodeGetAttributeV11000 RuntimeTraceCBID = 339 RuntimeCBIDCudaGraphKernelNodeSetAttributeV11000 RuntimeTraceCBID = 340 RuntimeCBIDCudaStreamCopyAttributesV11000 RuntimeTraceCBID = 341 RuntimeCBIDCudaStreamCopyAttributesPtszV11000 RuntimeTraceCBID = 342 RuntimeCBIDCudaStreamGetAttributeV11000 RuntimeTraceCBID = 343 RuntimeCBIDCudaStreamGetAttributePtszV11000 RuntimeTraceCBID = 344 RuntimeCBIDCudaStreamSetAttributeV11000 RuntimeTraceCBID = 345 RuntimeCBIDCudaStreamSetAttributePtszV11000 RuntimeTraceCBID = 346 RuntimeCBIDCudaDeviceGetTexture1DLinearMaxWidthV11010 RuntimeTraceCBID = 347 RuntimeCBIDCudaGraphUploadV10000 RuntimeTraceCBID = 348 RuntimeCBIDCudaGraphUploadPtszV10000 RuntimeTraceCBID = 349 RuntimeCBIDCudaGraphAddMemcpyNodeToSymbolV11010 RuntimeTraceCBID = 350 RuntimeCBIDCudaGraphAddMemcpyNodeFromSymbolV11010 RuntimeTraceCBID = 351 RuntimeCBIDCudaGraphAddMemcpyNode1DV11010 RuntimeTraceCBID = 352 RuntimeCBIDCudaGraphMemcpyNodeSetParamsToSymbolV11010 RuntimeTraceCBID = 353 RuntimeCBIDCudaGraphMemcpyNodeSetParamsFromSymbolV11010 RuntimeTraceCBID = 354 RuntimeCBIDCudaGraphMemcpyNodeSetParams1DV11010 RuntimeTraceCBID = 355 RuntimeCBIDCudaGraphExecMemcpyNodeSetParamsToSymbolV11010 RuntimeTraceCBID = 356 RuntimeCBIDCudaGraphExecMemcpyNodeSetParamsFromSymbolV11010 RuntimeTraceCBID = 357 RuntimeCBIDCudaGraphExecMemcpyNodeSetParams1DV11010 RuntimeTraceCBID = 358 RuntimeCBIDCudaArrayGetSparsePropertiesV11010 RuntimeTraceCBID = 359 RuntimeCBIDCudaMipmappedArrayGetSparsePropertiesV11010 RuntimeTraceCBID = 360 RuntimeCBIDCudaGraphExecChildGraphNodeSetParamsV11010 RuntimeTraceCBID = 361 RuntimeCBIDCudaGraphAddEventRecordNodeV11010 RuntimeTraceCBID = 362 RuntimeCBIDCudaGraphEventRecordNodeGetEventV11010 RuntimeTraceCBID = 363 RuntimeCBIDCudaGraphEventRecordNodeSetEventV11010 RuntimeTraceCBID = 364 RuntimeCBIDCudaGraphAddEventWaitNodeV11010 RuntimeTraceCBID = 365 RuntimeCBIDCudaGraphEventWaitNodeGetEventV11010 RuntimeTraceCBID = 366 RuntimeCBIDCudaGraphEventWaitNodeSetEventV11010 RuntimeTraceCBID = 367 RuntimeCBIDCudaGraphExecEventRecordNodeSetEventV11010 RuntimeTraceCBID = 368 RuntimeCBIDCudaGraphExecEventWaitNodeSetEventV11010 RuntimeTraceCBID = 369 RuntimeCBIDCudaEventRecordWithFlagsV11010 RuntimeTraceCBID = 370 RuntimeCBIDCudaEventRecordWithFlagsPtszV11010 RuntimeTraceCBID = 371 RuntimeCBIDCudaDeviceGetDefaultMemPoolV11020 RuntimeTraceCBID = 372 RuntimeCBIDCudaMallocAsyncV11020 RuntimeTraceCBID = 373 RuntimeCBIDCudaMallocAsyncPtszV11020 RuntimeTraceCBID = 374 RuntimeCBIDCudaFreeAsyncV11020 RuntimeTraceCBID = 375 RuntimeCBIDCudaFreeAsyncPtszV11020 RuntimeTraceCBID = 376 RuntimeCBIDCudaMemPoolTrimToV11020 RuntimeTraceCBID = 377 RuntimeCBIDCudaMemPoolSetAttributeV11020 RuntimeTraceCBID = 378 RuntimeCBIDCudaMemPoolGetAttributeV11020 RuntimeTraceCBID = 379 RuntimeCBIDCudaMemPoolSetAccessV11020 RuntimeTraceCBID = 380 RuntimeCBIDCudaArrayGetPlaneV11020 RuntimeTraceCBID = 381 RuntimeCBIDCudaMemPoolGetAccessV11020 RuntimeTraceCBID = 382 RuntimeCBIDCudaMemPoolCreateV11020 RuntimeTraceCBID = 383 RuntimeCBIDCudaMemPoolDestroyV11020 RuntimeTraceCBID = 384 RuntimeCBIDCudaDeviceSetMemPoolV11020 RuntimeTraceCBID = 385 RuntimeCBIDCudaDeviceGetMemPoolV11020 RuntimeTraceCBID = 386 RuntimeCBIDCudaMemPoolExportPointerV11020 RuntimeTraceCBID = 389 RuntimeCBIDCudaMemPoolImportPointerV11020 RuntimeTraceCBID = 390 RuntimeCBIDCudaMallocFromPoolAsyncV11020 RuntimeTraceCBID = 391 RuntimeCBIDCudaMallocFromPoolAsyncPtszV11020 RuntimeTraceCBID = 392 RuntimeCBIDCudaSignalExternalSemaphoresAsyncV11020 RuntimeTraceCBID = 393 RuntimeCBIDCudaSignalExternalSemaphoresAsyncPtszV11020 RuntimeTraceCBID = 394 RuntimeCBIDCudaWaitExternalSemaphoresAsyncV11020 RuntimeTraceCBID = 395 RuntimeCBIDCudaWaitExternalSemaphoresAsyncPtszV11020 RuntimeTraceCBID = 396 RuntimeCBIDCudaGraphAddExternalSemaphoresSignalNodeV11020 RuntimeTraceCBID = 397 RuntimeCBIDCudaGraphExternalSemaphoresSignalNodeGetParamsV11020 RuntimeTraceCBID = 398 RuntimeCBIDCudaGraphExternalSemaphoresSignalNodeSetParamsV11020 RuntimeTraceCBID = 399 RuntimeCBIDCudaGraphAddExternalSemaphoresWaitNodeV11020 RuntimeTraceCBID = 400 RuntimeCBIDCudaGraphExternalSemaphoresWaitNodeGetParamsV11020 RuntimeTraceCBID = 401 RuntimeCBIDCudaGraphExternalSemaphoresWaitNodeSetParamsV11020 RuntimeTraceCBID = 402 RuntimeCBIDCudaGraphExecExternalSemaphoresSignalNodeSetParamsV11020 RuntimeTraceCBID = 403 RuntimeCBIDCudaGraphExecExternalSemaphoresWaitNodeSetParamsV11020 RuntimeTraceCBID = 404 RuntimeCBIDCudaDeviceFlushGPUDirectRDMAWritesV11030 RuntimeTraceCBID = 405 RuntimeCBIDCudaGetDriverEntryPointV11030 RuntimeTraceCBID = 406 RuntimeCBIDCudaGetDriverEntryPointPtszV11030 RuntimeTraceCBID = 407 RuntimeCBIDCudaGraphDebugDotPrintV11030 RuntimeTraceCBID = 408 RuntimeCBIDCudaStreamGetCaptureInfoV2V11030 RuntimeTraceCBID = 409 RuntimeCBIDCudaStreamGetCaptureInfoV2PtszV11030 RuntimeTraceCBID = 410 RuntimeCBIDCudaStreamUpdateCaptureDependenciesV11030 RuntimeTraceCBID = 411 RuntimeCBIDCudaStreamUpdateCaptureDependenciesPtszV11030 RuntimeTraceCBID = 412 RuntimeCBIDCudaUserObjectCreateV11030 RuntimeTraceCBID = 413 RuntimeCBIDCudaUserObjectRetainV11030 RuntimeTraceCBID = 414 RuntimeCBIDCudaUserObjectReleaseV11030 RuntimeTraceCBID = 415 RuntimeCBIDCudaGraphRetainUserObjectV11030 RuntimeTraceCBID = 416 RuntimeCBIDCudaGraphReleaseUserObjectV11030 RuntimeTraceCBID = 417 RuntimeCBIDCudaGraphInstantiateWithFlagsV11040 RuntimeTraceCBID = 418 RuntimeCBIDCudaGraphAddMemAllocNodeV11040 RuntimeTraceCBID = 419 RuntimeCBIDCudaGraphMemAllocNodeGetParamsV11040 RuntimeTraceCBID = 420 RuntimeCBIDCudaGraphAddMemFreeNodeV11040 RuntimeTraceCBID = 421 RuntimeCBIDCudaGraphMemFreeNodeGetParamsV11040 RuntimeTraceCBID = 422 RuntimeCBIDCudaDeviceGraphMemTrimV11040 RuntimeTraceCBID = 423 RuntimeCBIDCudaDeviceGetGraphMemAttributeV11040 RuntimeTraceCBID = 424 RuntimeCBIDCudaDeviceSetGraphMemAttributeV11040 RuntimeTraceCBID = 425 RuntimeCBIDCudaGraphNodeSetEnabledV11060 RuntimeTraceCBID = 426 RuntimeCBIDCudaGraphNodeGetEnabledV11060 RuntimeTraceCBID = 427 RuntimeCBIDCudaArrayGetMemoryRequirementsV11060 RuntimeTraceCBID = 428 RuntimeCBIDCudaMipmappedArrayGetMemoryRequirementsV11060 RuntimeTraceCBID = 429 RuntimeCBIDCudaLaunchKernelExCV11060 RuntimeTraceCBID = 430 RuntimeCBIDCudaLaunchKernelExCPtszV11060 RuntimeTraceCBID = 431 RuntimeCBIDCudaOccupancyMaxPotentialClusterSizeV11070 RuntimeTraceCBID = 432 RuntimeCBIDCudaOccupancyMaxActiveClustersV11070 RuntimeTraceCBID = 433 RuntimeCBIDCudaCreateTextureObjectV2V11080 RuntimeTraceCBID = 434 RuntimeCBIDCudaGetTextureObjectTextureDescV2V11080 RuntimeTraceCBID = 435 RuntimeCBIDCudaGraphInstantiateWithParamsV12000 RuntimeTraceCBID = 436 RuntimeCBIDCudaGraphInstantiateWithParamsPtszV12000 RuntimeTraceCBID = 437 RuntimeCBIDCudaGraphExecGetFlagsV12000 RuntimeTraceCBID = 438 RuntimeCBIDCudaGetKernelV12000 RuntimeTraceCBID = 439 RuntimeCBIDCudaGetDevicePropertiesV12000 RuntimeTraceCBID = 440 RuntimeCBIDCudaStreamGetIdV12000 RuntimeTraceCBID = 441 RuntimeCBIDCudaStreamGetIdPtszV12000 RuntimeTraceCBID = 442 RuntimeCBIDCudaGraphInstantiateV12000 RuntimeTraceCBID = 443 RuntimeCBIDCudaInitDeviceV12000 RuntimeTraceCBID = 444 RuntimeCBIDCudaGraphAddNodeV12020 RuntimeTraceCBID = 445 RuntimeCBIDCudaGraphNodeSetParamsV12020 RuntimeTraceCBID = 446 RuntimeCBIDCudaGraphExecNodeSetParamsV12020 RuntimeTraceCBID = 447 RuntimeCBIDCudaMemAdviseV12020 RuntimeTraceCBID = 448 RuntimeCBIDCudaMemPrefetchAsyncV12020 RuntimeTraceCBID = 449 RuntimeCBIDCudaMemPrefetchAsyncPtszV12020 RuntimeTraceCBID = 450 RuntimeCBIDCudaFuncGetNameV12030 RuntimeTraceCBID = 451 RuntimeCBIDCudaStreamBeginCaptureToGraphV12030 RuntimeTraceCBID = 452 RuntimeCBIDCudaStreamBeginCaptureToGraphPtszV12030 RuntimeTraceCBID = 453 RuntimeCBIDCudaGraphConditionalHandleCreateV12030 RuntimeTraceCBID = 454 RuntimeCBIDCudaGraphGetEdgesV12030 RuntimeTraceCBID = 455 RuntimeCBIDCudaGraphNodeGetDependenciesV12030 RuntimeTraceCBID = 456 RuntimeCBIDCudaGraphNodeGetDependentNodesV12030 RuntimeTraceCBID = 457 RuntimeCBIDCudaGraphAddDependenciesV12030 RuntimeTraceCBID = 458 RuntimeCBIDCudaGraphRemoveDependenciesV12030 RuntimeTraceCBID = 459 RuntimeCBIDCudaGraphAddNodeV12030 RuntimeTraceCBID = 460 RuntimeCBIDCudaStreamGetCaptureInfoV12030 RuntimeTraceCBID = 461 RuntimeCBIDCudaStreamGetCaptureInfoPtszV12030 RuntimeTraceCBID = 462 RuntimeCBIDCudaStreamUpdateCaptureDependenciesV12030 RuntimeTraceCBID = 463 RuntimeCBIDCudaStreamUpdateCaptureDependenciesPtszV12030 RuntimeTraceCBID = 464 RuntimeCBIDCudaDeviceRegisterAsyncNotificationV12040 RuntimeTraceCBID = 465 RuntimeCBIDCudaDeviceUnregisterAsyncNotificationV12040 RuntimeTraceCBID = 466 RuntimeCBIDCudaFuncGetParamInfoV12040 RuntimeTraceCBID = 467 RuntimeCBIDCudaGetDriverEntryPointByVersionV12050 RuntimeTraceCBID = 468 RuntimeCBIDCudaGetDriverEntryPointByVersionPtszV12050 RuntimeTraceCBID = 469 RuntimeCBIDCudaLibraryLoadDataV12060 RuntimeTraceCBID = 470 RuntimeCBIDCudaLibraryLoadFromFileV12060 RuntimeTraceCBID = 471 RuntimeCBIDCudaLibraryUnloadV12060 RuntimeTraceCBID = 472 RuntimeCBIDCudaLibraryGetKernelV12060 RuntimeTraceCBID = 473 RuntimeCBIDCudaLibraryGetGlobalV12060 RuntimeTraceCBID = 474 RuntimeCBIDCudaLibraryGetManagedV12060 RuntimeTraceCBID = 475 RuntimeCBIDCudaLibraryGetUnifiedFunctionV12060 RuntimeTraceCBID = 476 RuntimeCBIDCudaLibraryGetKernelCountV12060 RuntimeTraceCBID = 477 RuntimeCBIDCudaLibraryEnumerateKernelsV12060 RuntimeTraceCBID = 478 RuntimeCBIDCudaKernelSetAttributeForDeviceV12060 RuntimeTraceCBID = 479 RuntimeCBIDCudaStreamGetDeviceV12080 RuntimeTraceCBID = 480 RuntimeCBIDCudaStreamGetDevicePtszV12080 RuntimeTraceCBID = 481 RuntimeCBIDCudaMemcpyBatchAsyncV12080 RuntimeTraceCBID = 482 RuntimeCBIDCudaMemcpyBatchAsyncPtszV12080 RuntimeTraceCBID = 483 RuntimeCBIDCudaMemcpy3DBatchAsyncV12080 RuntimeTraceCBID = 484 RuntimeCBIDCudaMemcpy3DBatchAsyncPtszV12080 RuntimeTraceCBID = 485 RuntimeCBIDCudaEventElapsedTimeV12080 RuntimeTraceCBID = 486 RuntimeCBIDCudaMemPrefetchBatchAsyncV13000 RuntimeTraceCBID = 487 RuntimeCBIDCudaMemPrefetchBatchAsyncPtszV13000 RuntimeTraceCBID = 488 RuntimeCBIDCudaMemDiscardBatchAsyncV13000 RuntimeTraceCBID = 489 RuntimeCBIDCudaMemDiscardBatchAsyncPtszV13000 RuntimeTraceCBID = 490 RuntimeCBIDCudaMemDiscardAndPrefetchBatchAsyncV13000 RuntimeTraceCBID = 491 RuntimeCBIDCudaMemDiscardAndPrefetchBatchAsyncPtszV13000 RuntimeTraceCBID = 492 RuntimeCBIDCudaGetExportTableV13000 RuntimeTraceCBID = 493 RuntimeCBIDCudaRegisterFatBinaryV13000 RuntimeTraceCBID = 494 RuntimeCBIDCudaRegisterFatBinaryEndV13000 RuntimeTraceCBID = 495 RuntimeCBIDCudaUnregisterFatBinaryV13000 RuntimeTraceCBID = 496 RuntimeCBIDCudaRegisterVarV13000 RuntimeTraceCBID = 497 RuntimeCBIDCudaRegisterHostVarV13000 RuntimeTraceCBID = 498 RuntimeCBIDCudaRegisterFunctionV13000 RuntimeTraceCBID = 499 RuntimeCBIDCudaRegisterManagedVarV13000 RuntimeTraceCBID = 500 RuntimeCBIDCudaInitModuleV13000 RuntimeTraceCBID = 501 RuntimeCBIDCudaPushCallConfigurationV13000 RuntimeTraceCBID = 502 RuntimeCBIDCudaPopCallConfigurationV13000 RuntimeTraceCBID = 503 RuntimeCBIDCudaGetKernelV13000 RuntimeTraceCBID = 504 RuntimeCBIDCudaLaunchKernelV13000 RuntimeTraceCBID = 505 RuntimeCBIDCudaLaunchKernelPtszV13000 RuntimeTraceCBID = 506 RuntimeCBIDCudaRegisterUnifiedTableV13000 RuntimeTraceCBID = 507 RuntimeCBIDCudaGetProcAddressV13000 RuntimeTraceCBID = 508 RuntimeCBIDCudaMemcpyBatchAsyncV13000 RuntimeTraceCBID = 509 RuntimeCBIDCudaMemcpyBatchAsyncPtszV13000 RuntimeTraceCBID = 510 RuntimeCBIDCudaMemcpy3DBatchAsyncV13000 RuntimeTraceCBID = 511 RuntimeCBIDCudaMemcpy3DBatchAsyncPtszV13000 RuntimeTraceCBID = 512 RuntimeCBIDCudaLogsRegisterCallbackV13000 RuntimeTraceCBID = 513 RuntimeCBIDCudaLogsUnregisterCallbackV13000 RuntimeTraceCBID = 514 RuntimeCBIDCudaLogsCurrentV13000 RuntimeTraceCBID = 515 RuntimeCBIDCudaLogsDumpToFileV13000 RuntimeTraceCBID = 516 RuntimeCBIDCudaLogsDumpToMemoryV13000 RuntimeTraceCBID = 517 RuntimeCBIDCudaMemGetDefaultMemPoolV13000 RuntimeTraceCBID = 518 RuntimeCBIDCudaMemGetMemPoolV13000 RuntimeTraceCBID = 519 RuntimeCBIDCudaMemSetMemPoolV13000 RuntimeTraceCBID = 520 RuntimeCBIDCudaDeviceGetHostAtomicCapabilitiesV13000 RuntimeTraceCBID = 521 RuntimeCBIDCudaDeviceGetP2PAtomicCapabilitiesV13000 RuntimeTraceCBID = 522 RuntimeCBIDCudaDeviceGetDevResourceV13010 RuntimeTraceCBID = 523 RuntimeCBIDCudaDevSmResourceSplitByCountV13010 RuntimeTraceCBID = 524 RuntimeCBIDCudaDevResourceGenerateDescV13010 RuntimeTraceCBID = 525 RuntimeCBIDCudaGreenCtxCreateV13010 RuntimeTraceCBID = 526 RuntimeCBIDCudaExecutionCtxDestroyV13010 RuntimeTraceCBID = 527 RuntimeCBIDCudaExecutionCtxGetDevResourceV13010 RuntimeTraceCBID = 528 RuntimeCBIDCudaExecutionCtxGetDeviceV13010 RuntimeTraceCBID = 529 RuntimeCBIDCudaExecutionCtxGetIdV13010 RuntimeTraceCBID = 530 RuntimeCBIDCuda531 RuntimeTraceCBID = 531 RuntimeCBIDCuda532 RuntimeTraceCBID = 532 RuntimeCBIDCudaExecutionCtxStreamCreateV13010 RuntimeTraceCBID = 533 RuntimeCBIDCudaExecutionCtxSynchronizeV13010 RuntimeTraceCBID = 534 RuntimeCBIDCudaGraphConditionalHandleCreateV2V13010 RuntimeTraceCBID = 535 RuntimeCBIDCudaStreamGetDevResourceV13010 RuntimeTraceCBID = 536 RuntimeCBIDCudaStreamGetDevResourcePtszV13010 RuntimeTraceCBID = 537 RuntimeCBIDCudaGraphNodeGetContainingGraphV13010 RuntimeTraceCBID = 538 RuntimeCBIDCudaGraphNodeGetLocalIdV13010 RuntimeTraceCBID = 539 RuntimeCBIDCudaGraphNodeGetToolsIdV13010 RuntimeTraceCBID = 540 RuntimeCBIDCudaGraphGetIdV13010 RuntimeTraceCBID = 541 RuntimeCBIDCudaGraphExecGetIdV13010 RuntimeTraceCBID = 542 RuntimeCBIDCudaExecutionCtxRecordEventV13010 RuntimeTraceCBID = 543 RuntimeCBIDCudaExecutionCtxWaitEventV13010 RuntimeTraceCBID = 544 RuntimeCBIDCuda545 RuntimeTraceCBID = 545 RuntimeCBIDCuda546 RuntimeTraceCBID = 546 RuntimeCBIDCuda547 RuntimeTraceCBID = 547 RuntimeCBIDCudaDeviceGetExecutionCtxV13010 RuntimeTraceCBID = 548 RuntimeCBIDCudaDevSmResourceSplitV13010 RuntimeTraceCBID = 549 RuntimeCBIDCudaLaunchHostFuncV2V13020 RuntimeTraceCBID = 550 RuntimeCBIDCudaLaunchHostFuncV2PtszV13020 RuntimeTraceCBID = 551 RuntimeCBIDCudaFuncGetParamCountV13020 RuntimeTraceCBID = 552 RuntimeCBIDCuda553 RuntimeTraceCBID = 553 RuntimeCBIDCudaMemcpyWithAttributesAsyncV13020 RuntimeTraceCBID = 554 RuntimeCBIDCudaMemcpyWithAttributesAsyncPtszV13020 RuntimeTraceCBID = 555 RuntimeCBIDCudaMemcpy3DWithAttributesAsyncV13020 RuntimeTraceCBID = 556 RuntimeCBIDCudaMemcpy3DWithAttributesAsyncPtszV13020 RuntimeTraceCBID = 557 RuntimeCBIDCudaGraphNodeGetParamsV13020 RuntimeTraceCBID = 558 RuntimeCBIDCuda559 RuntimeTraceCBID = 559 RuntimeCBIDCuda560 RuntimeTraceCBID = 560 RuntimeCBIDCuda561 RuntimeTraceCBID = 561 RuntimeCBIDCudaStreamBeginRecaptureToGraphV13030 RuntimeTraceCBID = 562 RuntimeCBIDCudaStreamBeginRecaptureToGraphPtszV13030 RuntimeTraceCBID = 563 RuntimeCBIDCuda564 RuntimeTraceCBID = 564 RuntimeCBIDCudaMemGetLocationInfoV13040 RuntimeTraceCBID = 565 RuntimeCBIDCuda566 RuntimeTraceCBID = 566 RuntimeCBIDSize RuntimeTraceCBID = 567 RuntimeCBIDForceInt RuntimeTraceCBID = 0x7fffffff // // Deprecated: Use RuntimeCBIDCuda531. CUDA 13.4 renamed CUPTI_RUNTIME_TRACE_CBID_cuda531_v13010; the value is unchanged. RuntimeCBIDCuda531V13010 = RuntimeCBIDCuda531 // // Deprecated: Use RuntimeCBIDCuda532. CUDA 13.4 renamed CUPTI_RUNTIME_TRACE_CBID_cuda532_v13010; the value is unchanged. RuntimeCBIDCuda532V13010 = RuntimeCBIDCuda532 // // Deprecated: Use RuntimeCBIDCuda545. CUDA 13.4 renamed CUPTI_RUNTIME_TRACE_CBID_cuda545_v13010; the value is unchanged. RuntimeCBIDCuda545V13010 = RuntimeCBIDCuda545 // // Deprecated: Use RuntimeCBIDCuda546. CUDA 13.4 renamed CUPTI_RUNTIME_TRACE_CBID_cuda546_v13010; the value is unchanged. RuntimeCBIDCuda546V13010 = RuntimeCBIDCuda546 // // Deprecated: Use RuntimeCBIDCuda547. CUDA 13.4 renamed CUPTI_RUNTIME_TRACE_CBID_cuda547_v13010; the value is unchanged. RuntimeCBIDCuda547V13010 = RuntimeCBIDCuda547 // // Deprecated: Use RuntimeCBIDCuda553. CUDA 13.4 renamed CUPTI_RUNTIME_TRACE_CBID_cuda553_v13020; the value is unchanged. RuntimeCBIDCuda553V13020 = RuntimeCBIDCuda553 // CUDA 12 only. The callback ID value is unchanged. RuntimeCBIDCudaSignalExternalSemaphoresAsyncV2V11020 = RuntimeCBIDCudaSignalExternalSemaphoresAsyncV11020 // CUDA 12 only. The callback ID value is unchanged. RuntimeCBIDCudaSignalExternalSemaphoresAsyncV2PtszV11020 = RuntimeCBIDCudaSignalExternalSemaphoresAsyncPtszV11020 // CUDA 12 only. The callback ID value is unchanged. RuntimeCBIDCudaWaitExternalSemaphoresAsyncV2V11020 = RuntimeCBIDCudaWaitExternalSemaphoresAsyncV11020 // CUDA 12 only. The callback ID value is unchanged. RuntimeCBIDCudaWaitExternalSemaphoresAsyncV2PtszV11020 = RuntimeCBIDCudaWaitExternalSemaphoresAsyncPtszV11020 // CUDA 12 only. The callback ID value is unchanged. RuntimeCBIDCudaGetDevicePropertiesV2V12000 = RuntimeCBIDCudaGetDevicePropertiesV12000 // CUDA 12 only. The callback ID value is unchanged. RuntimeCBIDCudaMemAdviseV2V12020 = RuntimeCBIDCudaMemAdviseV12020 // CUDA 12 only. The callback ID value is unchanged. RuntimeCBIDCudaMemPrefetchAsyncV2V12020 = RuntimeCBIDCudaMemPrefetchAsyncV12020 // CUDA 12 only. The callback ID value is unchanged. RuntimeCBIDCudaMemPrefetchAsyncV2PtszV12020 = RuntimeCBIDCudaMemPrefetchAsyncPtszV12020 )
func (RuntimeTraceCBID) String ¶
func (e RuntimeTraceCBID) String() string
String returns the constant name, or a numeric representation for unknown values.
type SassMetricsConfig ¶
SassMetricsConfig represents CUpti_SassMetrics_Config.
type SassMetricsData ¶
type SassMetricsData struct {
StructSize uint
PPriv uintptr
CubinCrc uint32
FunctionIndex uint32
FunctionName uintptr
PcOffset uint32
PInstanceValues uintptr
}
SassMetricsData represents CUpti_SassMetrics_Data.
type SassMetricsDisableParams ¶
type SassMetricsDisableParams struct {
StructSize uint
PPriv uintptr
Ctx driver.Context
NumOfDroppedRecords uint
}
SassMetricsDisableParams represents params for SassMetricsDisable.
type SassMetricsEnableParams ¶
type SassMetricsEnableParams struct {
StructSize uint
PPriv uintptr
Ctx driver.Context
EnableLazyPatching uint8
}
SassMetricsEnableParams represents params for SassMetricsEnable.
type SassMetricsFlushDataParams ¶
type SassMetricsFlushDataParams struct {
StructSize uint
PPriv uintptr
Ctx driver.Context
NumOfPatchedInstructionRecords uint
NumOfInstances uint
PMetricsData uintptr
}
SassMetricsFlushDataParams represents params for SassMetricsFlushData.
type SassMetricsGetDataPropertiesParams ¶
type SassMetricsGetDataPropertiesParams struct {
StructSize uint
PPriv uintptr
Ctx driver.Context
NumOfPatchedInstructionRecords uint
NumOfInstances uint
}
SassMetricsGetDataPropertiesParams represents params for SassMetricsGetDataProperties.
type SassMetricsGetMetricsParams ¶
type SassMetricsGetMetricsParams struct {
StructSize uint
PPriv uintptr
PChipName uintptr
NumOfMetrics uint
PMetricsList uintptr
}
SassMetricsGetMetricsParams represents params for SassMetricsGetMetrics.
type SassMetricsGetNumOfMetricsParams ¶
type SassMetricsGetNumOfMetricsParams struct {
StructSize uint
PPriv uintptr
PChipName uintptr
NumOfMetrics uint
}
SassMetricsGetNumOfMetricsParams represents params for SassMetricsGetNumOfMetrics.
type SassMetricsGetPropertiesParams ¶
type SassMetricsGetPropertiesParams struct {
StructSize uint
PPriv uintptr
PChipName uintptr
PMetricName uintptr
Metric SassMetricsMetricDetails
}
SassMetricsGetPropertiesParams represents params for SassMetricsGetProperties.
type SassMetricsInstanceValue ¶
SassMetricsInstanceValue represents CUpti_SassMetrics_InstanceValue.
type SassMetricsMetricDetails ¶
type SassMetricsMetricDetails struct {
MetricId uint64
PMetricName uintptr
PMetricDescription uintptr
}
SassMetricsMetricDetails represents CUpti_SassMetrics_MetricDetails.
type SassMetricsOutputGranularity ¶
type SassMetricsOutputGranularity int32
SassMetricsOutputGranularity specifies the sass metrics output granularity (CUpti_SassMetrics_OutputGranularity).
const ( // SassMetricsOutputGranularityGpu: SASS metric data will be collected at GPU level. In [SassMetricsGetDataPropertiesParams] struct the numOfInstances will be equal to 1. SassMetricsOutputGranularityGpu SassMetricsOutputGranularity = 0 // SassMetricsOutputGranularitySm: SASS metric data will be collected at SM level In [SassMetricsGetDataPropertiesParams] struct the numOfInstances will be equal to number of SMs in the GPU. SassMetricsOutputGranularitySm SassMetricsOutputGranularity = 1 // SassMetricsOutputGranularitySmsp: SASS metric data will be collected at SM sub-partition level In [SassMetricsGetDataPropertiesParams] struct the numOfInstances will be equal to number of SM sub-partitions in the GPU. SassMetricsOutputGranularitySmsp SassMetricsOutputGranularity = 2 SassMetricsOutputGranularityInvalid SassMetricsOutputGranularity = 3 )
func (SassMetricsOutputGranularity) String ¶
func (e SassMetricsOutputGranularity) String() string
String returns the constant name, or a numeric representation for unknown values.
type SassMetricsSetConfigParams ¶
type SassMetricsSetConfigParams struct {
StructSize uint
PPriv uintptr
NumOfMetricConfig uint
PConfigs uintptr
DeviceIndex uint32
}
SassMetricsSetConfigParams represents params for SassMetricsSetConfig.
type SassMetricsUnsetConfigParams ¶
SassMetricsUnsetConfigParams represents params for SassMetricsUnsetConfig.
type StateData ¶
type StateData struct {
Notification [2]uint64
}
StateData represents data passed into a State callback function.
Data passed into a State callback function as the cbdata argument to CallbackFunc. The cbdata will be this type for domain equal to CbDomainState and callback Ids belonging to CallbackIdState. Unless otherwise noted, the callback data is valid only within the invocation of the callback function that is passed the data. If you need to retain some data for use outside of the callback, you must make a copy of that data.
type StreamAttrData ¶
StreamAttrData represents stream attribute data passed into a resource callback function for CbidResourceStreamAttributeChanged callback.
Data passed into a resource callback function as the cbdata argument to CallbackFunc. The cbdata will be this type for domain equal to CbDomainResource. The stream attribute data is valid only within the invocation of the callback function that is passed the data. If you need to retain some data for use outside of the callback, you must make a copy of that data.
type Subscriber ¶
type Subscriber uintptr
Subscriber is an opaque handle for CUpti_SubscriberHandle.
func Subscribe ¶
func Subscribe(callback uintptr, userdata uintptr) (Subscriber, error)
Subscribe initializes a callback subscriber with a callback function and user data.
Initializes a callback subscriber with a callback function and (optionally) a pointer to user data. The returned subscriber handle can be used to enable and disable the callback for specific domains and callback IDs.
Note: Only a single subscriber can be registered at a time. To ensure that no other CUPTI client interrupts the profiling session, it’s the responsibility of all the CUPTI clients to call this function before starting the profling session. In case profiling session is already started by another CUPTI client, this function returns the error code ErrMultipleSubscribersNotSupported. Note that this function returns the same error when application is launched using NVIDIA tools like Nsight Systems, Nsight Compute, cuda-gdb and cuda-memcheck.
Note: This function does not enable any callbacks.
Note: Thread-safety: this function is thread safe.
- subscriber: Returns handle to initialize subscriber
- callback: The callback function (see CallbackFunc)
- userdata: A pointer to user data. This data will be passed to the callback function via the userdata parameter
Errors:
- ErrInvalidParameter: if subscriber is NULL
- ErrMultipleSubscribersNotSupported: if there is already a CUPTI subscriber, or if the application is launched with NVIDIA tools like Nsight Systems, Nsight Compute, cuda-gdb and cuda-memcheck.
- ErrNotInitialized: if unable to initialize CUPTI
Wraps cuptiSubscribe.
Note: NVIDIA plans to deprecate this function in a future release. Use SubscribeV2 instead.
func SubscribeV1 ¶
func SubscribeV1(callback uintptr, userdata uintptr) (Subscriber, error)
SubscribeV1 initializes a callback subscriber with a callback function and user data.
Initializes a callback subscriber with a callback function and (optionally) a pointer to user data. The returned subscriber handle can be used to enable and disable the callback for specific domains and callback IDs.
Note: Only a single subscriber can be registered at a time. To ensure that no other CUPTI client interrupts the profiling session, it’s the responsibility of all the CUPTI clients to call this function before starting the profling session. In case profiling session is already started by another CUPTI client, this function returns the error code ErrMultipleSubscribersNotSupported. Note that this function returns the same error when application is launched using NVIDIA tools like Nsight Systems, Nsight Compute, cuda-gdb and cuda-memcheck.
Note: This function does not enable any callbacks.
Note: Thread-safety: this function is thread safe.
- subscriber: Returns handle to initialize subscriber
- callback: The callback function (see CallbackFunc)
- userdata: A pointer to user data. This data will be passed to the callback function via the userdata parameter
Errors:
- ErrInvalidParameter: if subscriber is NULL
- ErrMultipleSubscribersNotSupported: if there is already a CUPTI subscriber, or if the application is launched with NVIDIA tools like Nsight Systems, Nsight Compute, cuda-gdb and cuda-memcheck.
- ErrNotInitialized: if unable to initialize CUPTI
Wraps cuptiSubscribe.
Note: NVIDIA plans to deprecate this function in a future release. Use SubscribeV2 instead.
func SubscribeV2 ¶
func SubscribeV2(callback uintptr, userdata uintptr, pParams *SubscriberParams) (Subscriber, error)
SubscribeV2 initializes a callback subscriber with a callback function and user data.
Initializes a callback subscriber with a callback function and (optionally) a pointer to user data. The returned subscriber handle can be used to enable and disable the callback for specific domains and callback IDs.
Note: Only a single subscriber can be registered at a time. To ensure that no other CUPTI client interrupts the profiling session, it’s the responsibility of all the CUPTI clients to call this function before starting the profling session. In case profiling session is already started by another CUPTI client, this function returns the error code ErrMultipleSubscribersNotSupported. Note that this function returns the same error when application is launched using NVIDIA tools like Nsight Systems, Nsight Compute, cuda-gdb and cuda-memcheck.
Note: This function does not enable any callbacks.
Note: Thread-safety: this function is thread safe.
Requires CUDA 13.0 or later.
- subscriber: Returns handle to initialize subscriber
- callback: The callback function (see CallbackFunc)
- userdata: A pointer to user data. This data will be passed to the callback function via the userdata parameter
- pParams: A pointer to SubscriberParams. Can be NULL
Errors:
- ErrInvalidParameter: if:pParams.structSize is not filled with the size of the structure
- ErrMultipleSubscribersNotSupported: if there is already a CUPTI subscriber, or if the application is launched with NVIDIA tools like Nsight Systems, Nsight Compute, cuda-gdb and cuda-memcheck.
- ErrNotInitialized: if unable to initialize CUPTI
Wraps cuptiSubscribe_v2.
func (Subscriber) ActivityDisableV2 ¶
func (s Subscriber) ActivityDisableV2(kind ActivityKind, pActivityConfig *ActivityConfig) error
ActivityDisableV2 disables collection of a specific kind of activity record for the subscriber.
Disable collection of a specific kind of activity record. Multiple kinds can be disabled by calling this function multiple times. By default all activity kinds are disabled for collection.
Requires CUDA 13.2 or later.
- kind: The kind of activity record to stop collecting
- pActivityConfig: The activity config. It can be NULL
Errors:
- ErrInvalidKind: if the activity kind is not supported
- ErrNotInitialized
Wraps cuptiActivityDisable_v2.
func (Subscriber) ActivityEnableAndDumpV2 ¶
func (s Subscriber) ActivityEnableAndDumpV2(kind ActivityKind, activityConfig *ActivityConfig) error
ActivityEnableAndDumpV2 enables collection of a specific kind of activity record.
For certain activity kinds it dumps existing records. In general, the behavior of this API is similar to the API Subscriber.ActivityEnableV2 i.e. it enables the collection of a specific kind of activity record. Additionally, this API can help in dumping the records for activities which happened in the past before enabling the corresponding activity kind. The API allows to get records for the current resource allocations done in CUDA For ActivityKindDevice, existing device records are dumped For ActivityKindContext, existing context records are dumped For ActivityKindStream, existing stream records are dumped For ActivityKind NVLINK, existing NVLINK records are dumped For ActivityKindPcie, existing PCIE records are dumped For other activities, the behavior is similar to the API ActivityEnable Device records are emitted in CUPTI on CUDA driver initialization. Those records can only be retrieved by the user if CUPTI is attached before CUDA initialization. Context and stream records are emitted on context and stream creation. The use case of the API is to provide the records for CUDA resources (contexts/streams/devices) that are currently active if user late attaches CUPTI. Before calling this function, the user must register buffer callbacks to get the activity records by calling Subscriber.ActivityRegisterCallbacksV2. If the user does not register the buffers and calls API Subscriber.ActivityEnableAndDumpV2, then CUPTI will enable the activity kind but not provide any records for that activity kind.
Requires CUDA 13.2 or later.
- kind: The kind of activity record to collect
- activityConfig: The activity config. It can be NULL
Errors:
- ErrInvalidKind: if the activity kind is not supported
- ErrNotCompatible: if the activity kind cannot be enabled
- ErrNotInitialized
- ErrUnknown: if buffer is not initialized.
Wraps cuptiActivityEnableAndDump_v2.
func (Subscriber) ActivityEnableDriverApiV2 ¶
func (s Subscriber) ActivityEnableDriverApiV2(cbid uint32, enable uint8) error
ActivityEnableDriverApiV2 controls the collection of activity records for specific CUDA Driver APIs for a given subscriber.
This is the per-subscriber version of ActivityEnableDriverApi. It allows each subscriber to independently enable or disable tracing of specific CUDA Driver APIs.
Note: This API is supported with user-defined activity records (see Subscriber.ActivityEnableV2 with ActivityConfig.fieldSelection). When using user-defined records, the activity kind must first be registered via Subscriber.ActivityEnableV2 before calling this API to control per-cbid collection. Support for cbid filtering with user-defined records requires CUPTI_API_VERSION 130400 or later.
Note: If cbid-level filtering is only needed at enable time and does not change thereafter, the ActivityApiCbidOptions allowlist/denylist passed through Subscriber.ActivityEnableV2 is a simpler alternative to calling this API per cbid.
Requires CUDA 13.3 or later.
- cbid: callback id of the CUDA Driver API
- enable: is a boolean, denoting whether to enable or disable the collection
Errors:
- ErrInvalidParameter: if the subscriber handle is invalid or cbid is out of range
- ErrNotInitialized
Wraps cuptiActivityEnableDriverApi_v2.
func (Subscriber) ActivityEnableRuntimeApiV2 ¶
func (s Subscriber) ActivityEnableRuntimeApiV2(cbid uint32, enable uint8) error
ActivityEnableRuntimeApiV2 controls the collection of activity records for specific CUDA Runtime APIs for a given subscriber.
This is the per-subscriber version of ActivityEnableRuntimeApi. It allows each subscriber to independently enable or disable tracing of specific CUDA Runtime APIs.
Note: This API is supported with user-defined activity records (see Subscriber.ActivityEnableV2 with ActivityConfig.fieldSelection). When using user-defined records, the activity kind must first be registered via Subscriber.ActivityEnableV2 before calling this API to control per-cbid collection. Support for cbid filtering with user-defined records requires CUPTI_API_VERSION 130400 or later.
Note: If cbid-level filtering is only needed at enable time and does not change thereafter, the ActivityApiCbidOptions allowlist/denylist passed through Subscriber.ActivityEnableV2 is a simpler alternative to calling this API per cbid.
Requires CUDA 13.3 or later.
- cbid: callback id of the CUDA Runtime API
- enable: is a boolean, denoting whether to enable or disable the collection
Errors:
- ErrInvalidParameter: if the subscriber handle is invalid or cbid is out of range
- ErrNotInitialized
Wraps cuptiActivityEnableRuntimeApi_v2.
func (Subscriber) ActivityEnableV2 ¶
func (s Subscriber) ActivityEnableV2(kind ActivityKind, pActivityConfig *ActivityConfig) error
ActivityEnableV2 enables collection of a specific kind of activity record for the subscriber.
Enable collection of a specific kind of activity record. Multiple kinds can be enabled by calling this function multiple times. By default all activity kinds are disabled for collection.
Requires CUDA 13.2 or later.
- kind: The kind of activity record to collect
- pActivityConfig: The activity config. It can be NULL
Errors:
- ErrInvalidKind: if the activity kind is not supported
- ErrNotCompatible: if the activity kind cannot be enabled
- ErrNotInitialized
Wraps cuptiActivityEnable_v2.
func (Subscriber) ActivityGetAttributeV2 ¶
func (s Subscriber) ActivityGetAttributeV2(attr ActivityAttribute, valueSize *uint, value unsafe.Pointer) error
ActivityGetAttributeV2 reads an activity API attribute.
This function is similar to ActivityGetAttribute. Note that in case of multiple subscribers, only Subscriber.ActivityGetAttributeV2 can be used to read the attribute for the subscriber.
Read an activity API attribute and return it in *value.
Requires CUDA 13.2 or later.
- attr: The attribute to read
- valueSize: Size of buffer pointed by the value, and returns the number of bytes written to value
- value: Returns the value of the attribute
Errors:
- ErrInvalidParameter: if valueSize or value is NULL, or if attr is not an activity attribute
- ErrNotInitialized
- ErrParameterSizeNotSufficient: Indicates that the value buffer is too small to hold the attribute value.
Wraps cuptiActivityGetAttribute_v2.
func (Subscriber) ActivityGetEnabledKinds ¶
func (s Subscriber) ActivityGetEnabledKinds(buffer *ActivityKind, bufferSize *uint32) (uint32, error)
ActivityGetEnabledKinds gets the enabled activity kinds for a subscriber.
Note: If the provided buffer size is not sufficient to store all the enabled activity kinds, we populate the buffer with as much as we can, but return the true value of the number of enabled activity kinds.
Requires CUDA 13.2 or later.
- buffer: The buffer to store the enabled activity kinds. If NULL, the number of enabled activity kinds is returned in enabledKindsCount
- bufferSize: The size of the buffer. If NULL, only the number of enabled activity kinds is returned in enabledKindsCount. If NULL and buffer is not NULL, ErrInvalidParameter is returned
- enabledKindsCount: The number of enabled activity kinds. If NULL, ErrInvalidParameter is returned
Errors:
- ErrInvalidParameter: if enabledKindsCount is NULL or if subscriber is invalid.
Wraps cuptiActivityGetEnabledKinds.
func (Subscriber) ActivityGetNextRecordV2 ¶
func (s Subscriber) ActivityGetNextRecordV2(buffer *uint8, validBufferSizeBytes uint, record **Activity) error
ActivityGetNextRecordV2 iterates over the activity records in the supplied buffer.
This function is similar to ActivityGetNextRecord and accepts a subscriber handle. It should be used instead of ActivityGetNextRecord when using subscriber-aware V2 APIs.
Requires CUDA 13.3 or later.
- buffer: The buffer containing activity records
- validBufferSizeBytes: The number of valid bytes in the buffer
- record: Inputs the previous record returned by Subscriber.ActivityGetNextRecordV2 and returns the next activity record from the buffer. If input value is NULL, returns the first activity record in the buffer
Errors:
- ErrInvalidKind: if activity record is either incomplete or invalid
- ErrInvalidParameter: if subscriber, buffer or record is NULL.
- ErrMaxLimitReached: if no more records in the buffer
- ErrNotInitialized
Wraps cuptiActivityGetNextRecord_v2.
func (Subscriber) ActivityGetNumDroppedRecordsV2 ¶
func (s Subscriber) ActivityGetNumDroppedRecordsV2(context driver.Context, streamId uint32) (uint, error)
ActivityGetNumDroppedRecordsV2 gets the number of dropped activity records for a specific subscriber.
This is the per-subscriber version of ActivityGetNumDroppedRecords.
Note: This API resets the subscriber’s dropped record count to 0 after reading.
Requires CUDA 13.3 or later.
- context: CUDA context (reserved for future use)
- streamId: Stream ID (reserved for future use)
- dropped: Returns the number of dropped records
Errors:
- ErrInvalidParameter: if subscriber or dropped is NULL
Wraps cuptiActivityGetNumDroppedRecords_v2.
func (Subscriber) ActivityPopExternalCorrelationIdV2 ¶
func (s Subscriber) ActivityPopExternalCorrelationIdV2(kind ExternalCorrelationKind) (uint64, error)
ActivityPopExternalCorrelationIdV2 pops an external correlation id for a specific subscriber.
Subscriber aware V2 version of ActivityPopExternalCorrelationId. This allows each subscriber to maintain its own external correlation context.
Requires CUDA 13.3 or later.
- kind: The kind of external API to pop correlation for
- lastId: Returns the last external correlation id popped, can be NULL
Errors:
- ErrInvalidParameter: if subscriber or kind is invalid.
- ErrQueueEmpty: No external id is currently associated with kind for this subscriber.
Wraps cuptiActivityPopExternalCorrelationId_v2.
func (Subscriber) ActivityPushExternalCorrelationIdV2 ¶
func (s Subscriber) ActivityPushExternalCorrelationIdV2(kind ExternalCorrelationKind, id uint64) error
ActivityPushExternalCorrelationIdV2 pushes an external correlation id for a specific subscriber.
Subscriber aware V2 version of ActivityPushExternalCorrelationId. This allows each subscriber to maintain its own external correlation context.
Requires CUDA 13.3 or later.
- kind: The kind of external API activities should be correlated with
- id: External correlation id
Errors:
- ErrInvalidParameter: if subscriber or kind is invalid.
Wraps cuptiActivityPushExternalCorrelationId_v2.
func (Subscriber) ActivityRegisterCallbacksV2 ¶
func (s Subscriber) ActivityRegisterCallbacksV2(funcBufferRequested uintptr, funcBufferCompleted uintptr) error
ActivityRegisterCallbacksV2 registers callback functions with CUPTI for activity buffer handling for the subscriber.
This function registers two callback functions to be used in asynchronous buffer handling. If registered, activity record buffers are handled using asynchronous requested/completed callbacks from CUPTI. Registering these callbacks prevents the client from using CUPTI’s blocking enqueue/dequeue functions.
Requires CUDA 13.2 or later.
- funcBufferRequested: callback which is invoked when an empty buffer is requested by CUPTI (see BuffersCallbackRequestFuncV2)
- funcBufferCompleted: callback which is invoked when a buffer containing activity records is available from CUPTI (see BuffersCallbackCompleteFuncV2)
Errors:
- ErrInvalidParameter: if either funcBufferRequested or funcBufferCompleted_v2 is NULL
Wraps cuptiActivityRegisterCallbacks_v2.
func (Subscriber) ActivitySetAttributeV2 ¶
func (s Subscriber) ActivitySetAttributeV2(attr ActivityAttribute, valueSize *uint, value unsafe.Pointer) error
ActivitySetAttributeV2 writes an activity API attribute.
In case of multiple subscribers, use Subscriber.ActivitySetAttributeV2 to write the attribute for the subscriber.
Requires CUDA 13.2 or later.
- attr: The attribute to write
- valueSize: The size, in bytes, of the value
- value: The attribute value to write
Errors:
- ErrInvalidParameter: if valueSize or value is NULL, or if attr is not an activity attribute
- ErrNotInitialized
- ErrParameterSizeNotSufficient: Indicates that the value buffer is too small to hold the attribute value.
Wraps cuptiActivitySetAttribute_v2.
func (Subscriber) CallbackState ¶
func (s Subscriber) CallbackState(domain CallbackDomain, cbid uint32) (uint32, error)
CallbackState gets the current enabled/disabled state of a callback for a specific domain and function ID.
Returns non-zero if the callback for a domain and callback ID is enabled, and zero if not enabled.
Note: Thread-safety : a subscriber must serialize access to Subscriber.CallbackState, Subscriber.EnableCallback, Subscriber.EnableDomain, and Subscriber.EnableAllDomains. For example, if Subscriber.CallbackState(sub, d, c) and Subscriber.EnableCallback(sub, d, c) are called concurrently, the results are undefined.
- enable: Returns non-zero if callback enabled, zero if not enabled
- domain: The domain of the callback
- cbid: The ID of the callback
Errors:
- ErrInvalidParameter: if enabled is NULL, or if subscriber, domain or cbid is invalid.
- ErrNotInitialized: if unable to initialized CUPTI
Wraps cuptiGetCallbackState.
func (Subscriber) EnableAllDomains ¶
func (s Subscriber) EnableAllDomains(enable uint32) error
EnableAllDomains enables or disables all callbacks in all domains.
Note: Thread-safety : a subscriber must serialize access to Subscriber.CallbackState, Subscriber.EnableCallback, Subscriber.EnableDomain, and Subscriber.EnableAllDomains. For example, if Subscriber.CallbackState(sub, d, *) and Subscriber.EnableAllDomains(sub) are called concurrently, the results are undefined.
- enable: New enable state for all callbacks in all domain. Zero disables all callbacks, non-zero enables all callbacks
Errors:
- ErrInvalidParameter: if subscriber is invalid
- ErrNotInitialized: if unable to initialized CUPTI
Wraps cuptiEnableAllDomains.
func (Subscriber) EnableCallback ¶
func (s Subscriber) EnableCallback(enable uint32, domain CallbackDomain, cbid uint32) error
EnableCallback enables or disabled callbacks for a specific domain and callback ID.
Enable or disabled callbacks for a subscriber for a specific domain and callback ID.
Note: Thread-safety : a subscriber must serialize access to Subscriber.CallbackState, Subscriber.EnableCallback, Subscriber.EnableDomain, and Subscriber.EnableAllDomains. For example, if Subscriber.CallbackState(sub, d, c) and Subscriber.EnableCallback(sub, d, c) are called concurrently, the results are undefined.
- enable: New enable state for the callback. Zero disables the callback, non-zero enables the callback
- domain: The domain of the callback
- cbid: The ID of the callback
Errors:
- ErrInvalidParameter: if subscriber, domain or cbid is invalid.
- ErrNotInitialized: if unable to initialized CUPTI
Wraps cuptiEnableCallback.
func (Subscriber) EnableDomain ¶
func (s Subscriber) EnableDomain(enable uint32, domain CallbackDomain) error
EnableDomain enables or disabled all callbacks for a specific domain.
Note: Thread-safety : a subscriber must serialize access to Subscriber.CallbackState, Subscriber.EnableCallback, Subscriber.EnableDomain, and Subscriber.EnableAllDomains. For example, if cuptiGetCallbackEnabled(sub, d, *) and Subscriber.EnableDomain(sub, d) are called concurrently, the results are undefined.
- enable: New enable state for all callbacks in the domain. Zero disables all callbacks, non-zero enables all callbacks
- domain: The domain of the callback
Errors:
- ErrInvalidParameter: if subscriber or domain is invalid
- ErrNotInitialized: if unable to initialized CUPTI
Wraps cuptiEnableDomain.
func (Subscriber) EnabledCallbacks ¶
func (s Subscriber) EnabledCallbacks(domain CallbackDomain, buffer *uint32, bufferSize *uint32) (uint32, error)
EnabledCallbacks gets the enabled callbacks for a subscriber.
Note: If the provided buffer size is not sufficient to store all the enabled callbacks, we populate the buffer with as much as we can, but return the true value of the number of enabled callbacks.
Requires CUDA 13.2 or later.
- domain: The domain of the callbacks to get. If NULL, ErrInvalidParameter is returned
- buffer: The buffer to store the enabled callbacks. If NULL, the number of enabled callbacks is returned in enabledCallbacksCount
- bufferSize: The size of the buffer. If NULL, only the number of enabled callbacks is returned in enabledCallbacksCount. If NULL and buffer is not NULL, ErrInvalidParameter is returned
- enabledCallbacksCount: The number of enabled callbacks. If NULL, ErrInvalidParameter is returned
Errors:
- ErrInvalidParameter: if enabledCallbacksCount is NULL, or if subscriber or domain is invalid.
Wraps cuptiGetEnabledCallbacks.
func (Subscriber) TimestampV2 ¶
func (s Subscriber) TimestampV2() (uint64, error)
TimestampV2 gets the CUPTI timestamp.
If a subscriber registers a particular timestamp callback, this API will use that callback to get the timestamp. In CUDA 13.3, this API falls back to GetTimestamp. In CUDA 13.4 and later, this API provides the timestamp callback registered by the requesting subscriber. Returns a timestamp normalized to correspond with the start and end timestamps reported in the CUPTI activity records. The timestamp is reported in nanoseconds.
Requires CUDA 13.3 or later.
- timestamp: Returns the CUPTI timestamp
Errors:
- ErrInvalidParameter: if timestamp is NULL or subscriber is NULL
Wraps cuptiGetTimestamp_v2.
func (Subscriber) Unsubscribe ¶
func (s Subscriber) Unsubscribe() error
Unsubscribe unregisters a callback subscriber.
Removes a callback subscriber so that no future callbacks will be issued to that subscriber.
Note: Thread-safety: this function is thread safe.
Errors:
- ErrInvalidParameter: if subscriber is NULL or not initialized
- ErrNotInitialized: if unable to initialized CUPTI
Wraps cuptiUnsubscribe.
type SubscriberParams ¶
type SubscriberParams struct {
StructSize uint
SubscriberName uintptr
OldSubscriberName uintptr
OldSubscriberSize uint
AllowMultipleSubscribers uint8
Padding [7]uint8
}
SubscriberParams represents params for SubscribeV2.
type SymbolError ¶
SymbolError reports that a symbol is not callable.
Err distinguishes the two ways that happens. A nil Err means the loaded library does not export the symbol, which is what an installation older than the symbol looks like. A non-nil Err means the library does export it and the binding itself failed; the library is not at fault.
func (*SymbolError) Error ¶
func (e *SymbolError) Error() string
Error reports the uncallable library symbol and, when the symbol was present but could not be bound, why.
func (*SymbolError) Unwrap ¶
func (e *SymbolError) Unwrap() error
Unwrap returns the reason the symbol could not be bound, or nil when the loaded library does not export it.
type SynchronizeData ¶
SynchronizeData represents data passed into a synchronize callback function.
Data passed into a synchronize callback function as the cbdata argument to CallbackFunc. The cbdata will be this type for domain equal to CbDomainSynchronize. The callback data is valid only within the invocation of the callback function that is passed the data. If you need to retain some data for use outside of the callback, you must make a copy of that data.
type TimestampCallbackFunc ¶
type TimestampCallbackFunc func() uint64
TimestampCallbackFunc is the Go form of CUpti_TimestampCallbackFunc.
It corresponds to the C signature
typedef uint64_t (CUPTIAPI *CUpti_TimestampCallbackFunc)(void);
Pass one to the API by converting it with purego.NewCallback, which is why every pointer argument is a uintptr rather than a Go pointer: the memory belongs to the C library and must not be traced by the collector.
type VersionMismatchError ¶
type VersionMismatchError struct {
Path string // the library that was opened
Want int // major version these bindings were generated for
Got int // major version the library reports
Raw int // the version value the library reported, undecoded
}
VersionMismatchError reports that the shared library that opened is not from the version train cupti was generated for. dlsym matches on name alone, so a library from a neighbouring train opens and resolves nearly every symbol; asking it its own version is what tells the two apart.
func (*VersionMismatchError) Error ¶
func (e *VersionMismatchError) Error() string
Error reports which library was opened and the two majors that disagree.
A decoder is only a decoder for the version schemes it was measured against, and a library from a train that predates the scheme can report a value it does not decode. Naming a major of 0 in that case would attribute to the library a claim it never made, so the raw value is reported instead.
type VirtualizationMode ¶
type VirtualizationMode int32
VirtualizationMode indicates the virtualization mode in which CUDA device is running.
const ( // DeviceVirtualizationModeNone: No virtualization mode is associated with the device i.e. it's a baremetal GPU DeviceVirtualizationModeNone VirtualizationMode = 0 // DeviceVirtualizationModePassThrough: The device is associated with the pass-through GPU. In this mode, an entire physical GPU is directly assigned to one virtual machine (VM). DeviceVirtualizationModePassThrough VirtualizationMode = 1 // DeviceVirtualizationModeVirtualGpu: The device is associated with the virtual GPU (vGPU). In this mode multiple virtual machines (VMs) have simultaneous, direct access to a single physical GPU. DeviceVirtualizationModeVirtualGpu VirtualizationMode = 2 DeviceVirtualizationModeForceInt VirtualizationMode = 0x7fffffff )
func (VirtualizationMode) String ¶
func (e VirtualizationMode) String() string
String returns the constant name, or a numeric representation for unknown values.
Source Files
¶
- activity_device_attribute.gen.go
- activity_kernel.go
- activity_memcpy.go
- activity_memset.go
- callbacks.gen.go
- doc.gen.go
- enums.gen.go
- event_group.gen.go
- funcs.gen.go
- handles.gen.go
- init.gen.go
- loader_unix.gen.go
- param_layout.gen.go
- pcsampling.go
- provenance.gen.go
- result.gen.go
- structs.gen.go
- subscriber.gen.go
- types.gen.go