|
PAPI
5.0.1.0
|
This file has the source code for a component that enables PAPI-C to access hardware monitoring counters for GPU devices through the CUPTI library. More...


Go to the source code of this file.
Data Structures | |
| struct | EventData_t |
| struct | DomainData_t |
| struct | DeviceData_t |
| struct | AddedEvents_t |
| struct | CUDA_register_t |
| struct | CUDA_native_event_entry_t |
| struct | CUDA_reg_alloc_t |
| struct | CUDA_control_state_t |
| struct | CUDA_context_t |
Defines | |
| #define | CHECK_CU_ERROR(err, cufunc) |
| #define | CHECK_CUPTI_ERROR(err, cuptifunc) |
| #define | CUDA_MAX_COUNTERS 512 |
Functions | |
| static int | enumEventDomains (CUdevice dev, int deviceId) |
| static int | enumEvents (int domainId, int eventCount) |
Variables | |
| static CUDA_native_event_entry_t * | cuda_native_table |
| static int | NUM_EVENTS = 0 |
| static int | deviceCount = 0 |
| static int | totalDomainCount = 0 |
| static int | totalEventCount = 0 |
| static int | currentDeviceID |
| static int | CUDA_FREED = 0 |
| static DeviceData_t * | device |
| static CUcontext | cuCtx |
Definition in file linux-cuda.h.
| #define CHECK_CU_ERROR | ( | err, | |
| cufunc | |||
| ) |
if (err != CUDA_SUCCESS) \ { \ printf ("Error %d for CUDA Driver API function '%s'. cuptiQuery failed\n", err, cufunc); \ return -1; \ }
Definition at line 26 of file linux-cuda.h.
| #define CHECK_CUPTI_ERROR | ( | err, | |
| cuptifunc | |||
| ) |
if (err != CUPTI_SUCCESS) \ { \ printf ("Error %d for CUPTI API function '%s'. cuptiQuery failed\n", err, cuptifunc); \ return -1; \ }
Definition at line 34 of file linux-cuda.h.
| #define CUDA_MAX_COUNTERS 512 |
Definition at line 47 of file linux-cuda.h.
| static int enumEventDomains | ( | CUdevice | dev, |
| int | deviceId | ||
| ) | [static] |
| static int enumEvents | ( | int | domainId, |
| int | eventCount | ||
| ) | [static] |
CUcontext cuCtx [static] |
Definition at line 157 of file linux-cuda.h.
int CUDA_FREED = 0 [static] |
Definition at line 141 of file linux-cuda.h.
CUDA_native_event_entry_t* cuda_native_table [static] |
Definition at line 134 of file linux-cuda.h.
int currentDeviceID [static] |
Definition at line 140 of file linux-cuda.h.
DeviceData_t* device [static] |
Definition at line 156 of file linux-cuda.h.
int deviceCount = 0 [static] |
Definition at line 137 of file linux-cuda.h.
int NUM_EVENTS = 0 [static] |
Definition at line 136 of file linux-cuda.h.
int totalDomainCount = 0 [static] |
Definition at line 138 of file linux-cuda.h.
int totalEventCount = 0 [static] |
Definition at line 139 of file linux-cuda.h.