PAPI  5.3.2.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
linux-cuda.h File Reference

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...

Include dependency graph for linux-cuda.h:
This graph shows which files directly or indirectly include this file:

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
 

Macros

#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_tcuda_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_tdevice
 
static CUcontext cuCtx
 

Detailed Description

Author
Heike Jagode (in collaboration with Robert Dietrich, TU Dresden) jagod.nosp@m.e@ee.nosp@m.cs.ut.nosp@m.k.ed.nosp@m.u

Definition in file linux-cuda.h.

Macro Definition Documentation

#define CHECK_CU_ERROR (   err,
  cufunc 
)
Value:
if (err != CUDA_SUCCESS) \
{ \
printf ("Error %d for CUDA Driver API function '%s'. cuptiQuery failed\n", err, cufunc); \
return -1; \
}
#define printf
Definition: papi_test.h:125
err
Definition: linux-cuda.c:323
return
Definition: iozone.c:22170

Definition at line 26 of file linux-cuda.h.

#define CHECK_CUPTI_ERROR (   err,
  cuptifunc 
)
Value:
if (err != CUPTI_SUCCESS) \
{ \
printf ("Error %d for CUPTI API function '%s'. cuptiQuery failed\n", err, cuptifunc); \
return -1; \
}
#define printf
Definition: papi_test.h:125
err
Definition: linux-cuda.c:323
return
Definition: iozone.c:22170

Definition at line 34 of file linux-cuda.h.

#define CUDA_MAX_COUNTERS   512

Definition at line 47 of file linux-cuda.h.

Function Documentation

static int enumEventDomains ( CUdevice  dev,
int  deviceId 
)
static
static int enumEvents ( int  domainId,
int  eventCount 
)
static

Here is the caller graph for this function:

Variable Documentation

CUcontext cuCtx
static

Definition at line 156 of file linux-cuda.h.

int CUDA_FREED = 0
static

Definition at line 140 of file linux-cuda.h.

CUDA_native_event_entry_t* cuda_native_table
static

Definition at line 133 of file linux-cuda.h.

int currentDeviceID
static

Definition at line 139 of file linux-cuda.h.

DeviceData_t* device
static

Definition at line 155 of file linux-cuda.h.

int deviceCount = 0
static

Definition at line 136 of file linux-cuda.h.

int NUM_EVENTS = 0
static

Definition at line 135 of file linux-cuda.h.

int totalDomainCount = 0
static

Definition at line 137 of file linux-cuda.h.

int totalEventCount = 0
static

Definition at line 138 of file linux-cuda.h.