HPCToolkit
|
#include <messages/messages.h>
#include "gpu_ctxt_actions.h"
#include <cuda.h>
#include <cuda_runtime.h>
#include <lib/prof-lean/atomic.h>
#include "gpu_blame-cuda-runtime-header.h"
#include "gpu_blame-cuda-driver-header.h"
Go to the source code of this file.
Classes | |
struct | cuda_ctxt_t |
Macros | |
#define | Cuda_RTcall(fn) cudaRuntimeFunctionPointer[fn ## Enum].fn ## Real |
#define | Cuda_Dcall(fn) cuDriverFunctionPointer[fn ## Enum].fn ## Real |
Functions | |
void | cuda_ncontexts_reset (void) |
uint64_t | cuda_ncontexts_incr (void) |
uint64_t | cuda_ncontexts_decr (void) |
cuda_ctxt_t * | cuda_capture_ctxt (void) |
void | cuda_set_ctxt (cuda_ctxt_t *ctxt) |
void * | cuda_get_handle (cuda_ctxt_t *ctxt) |
Variables | |
static uint64_t | ncontexts = 0L |
struct cuda_ctxt_t | local_ctxt |
#define Cuda_Dcall | ( | fn | ) | cuDriverFunctionPointer[fn ## Enum].fn ## Real |
Definition at line 11 of file gpu_ctxt_actions.c.
#define Cuda_RTcall | ( | fn | ) | cudaRuntimeFunctionPointer[fn ## Enum].fn ## Real |
Definition at line 10 of file gpu_ctxt_actions.c.
cuda_ctxt_t* cuda_capture_ctxt | ( | void | ) |
Definition at line 55 of file gpu_ctxt_actions.c.
void* cuda_get_handle | ( | cuda_ctxt_t * | ctxt | ) |
Definition at line 77 of file gpu_ctxt_actions.c.
uint64_t cuda_ncontexts_decr | ( | void | ) |
Definition at line 43 of file gpu_ctxt_actions.c.
uint64_t cuda_ncontexts_incr | ( | void | ) |
Definition at line 36 of file gpu_ctxt_actions.c.
void cuda_ncontexts_reset | ( | void | ) |
Definition at line 30 of file gpu_ctxt_actions.c.
void cuda_set_ctxt | ( | cuda_ctxt_t * | ctxt | ) |
Definition at line 66 of file gpu_ctxt_actions.c.
struct cuda_ctxt_t local_ctxt |
|
static |
Definition at line 26 of file gpu_ctxt_actions.c.