![]() |
Realm
A distributed, event-based tasking library
|
#include "realm/cuda/cuda_module.h"#include <memory>#include <unordered_map>#include <cuda.h>#include <nvml.h>#include <cupti.h>#include <vector_types.h>#include "realm/operation.h"#include "realm/threads.h"#include "realm/circ_queue.h"#include "realm/indexspace.h"#include "realm/proc_impl.h"#include "realm/mem_impl.h"#include "realm/bgwork.h"#include "realm/transfer/channel.h"#include "realm/transfer/ib_memory.h"#include "realm/cuda/cuda_memcpy.h"Go to the source code of this file.
Namespaces | |
| namespace | Realm |
| namespace | Realm::Cuda |
Macros | |
| #define | CUDA_ENABLE_DEPRECATED 1 |
| #define | CHECK_CUDART(cmd) |
| #define | REPORT_CU_ERROR(level, cmd, ret) |
| #define | CHECK_CU(cmd) |
| #define | REPORT_NVML_ERROR(level, cmd, ret) |
| #define | CHECK_NVML(cmd) |
| #define | IS_DEFAULT_STREAM(stream) |
| #define | REPORT_CUPTI_ERROR(level, cmd, ret) |
| #define | CHECK_CUPTI(cmd) |
| #define | CU_GET_PROC_ADDRESS_DEFAULT 0 |
| #define | CUDA_DRIVER_HAS_FNPTR(name) ((name##_fnptr) != nullptr) |
| #define | CUDA_DRIVER_FNPTR(name) (assert(name##_fnptr != nullptr), name##_fnptr) |
| #define | CUDA_VERSION_MIN 11080 |
| #define | CUDA_VERSION_COMPAT ((CUDA_VERSION / 1000) * 1000) |
| #define | CUDA_DRIVER_APIS(__op__) |
| #define | DECL_FNPTR_EXTERN(name, ver) extern decltype(&name) name##_fnptr; |
| #define | NVML_FNPTR(name) (name##_fnptr) |
| #define | NVML_11_APIS(__op__) |
| #define | NVML_12_APIS(__op__) |
| #define | NVML_APIS(__op__) |
| #define | DECL_FNPTR_EXTERN(name) extern decltype(&name) name##_fnptr; |
| #define | CUPTI_APIS(__op__) |
| #define | DECL_FNPTR_EXTERN(name) extern decltype(&name) name##_fnptr; |
| #define | CUPTI_HAS_FNPTR(name) (name##_fnptr != nullptr) |
| #define | CUPTI_FNPTR(name) (assert(name##_fnptr != nullptr), name##_fnptr) |
Typedefs | |
| typedef enum Realm::Cuda::nvmlIntNvLinkDeviceType_enum | Realm::Cuda::nvmlIntNvLinkDeviceType_t |
Functions | |
| CUresult | Realm::Cuda::cuGetProcAddress (const char *, void **, int, int) |
| CUresult | Realm::Cuda::cuCtxRecordEvent (CUcontext hctx, CUevent event) |
| Realm::Cuda::CUDA_DRIVER_APIS (DECL_FNPTR_EXTERN) | |
| nvmlReturn_t | Realm::Cuda::nvmlDeviceGetNvLinkRemoteDeviceType (nvmlDevice_t device, unsigned int link, nvmlIntNvLinkDeviceType_t *pNvLinkDeviceType) |
Variables | |
| CudaModule * | Realm::Cuda::cuda_module_singleton |
| #define CHECK_CU | ( | cmd | ) |
| #define CHECK_CUDART | ( | cmd | ) |
| #define CHECK_CUPTI | ( | cmd | ) |
| #define CHECK_NVML | ( | cmd | ) |
| #define CU_GET_PROC_ADDRESS_DEFAULT 0 |
| #define CUDA_DRIVER_APIS | ( | __op__ | ) |
| #define CUDA_DRIVER_FNPTR | ( | name | ) | (assert(name##_fnptr != nullptr), name##_fnptr) |
| #define CUDA_DRIVER_HAS_FNPTR | ( | name | ) | ((name##_fnptr) != nullptr) |
| #define CUDA_ENABLE_DEPRECATED 1 |
| #define CUDA_VERSION_COMPAT ((CUDA_VERSION / 1000) * 1000) |
| #define CUDA_VERSION_MIN 11080 |
| #define CUPTI_APIS | ( | __op__ | ) |
| #define CUPTI_FNPTR | ( | name | ) | (assert(name##_fnptr != nullptr), name##_fnptr) |
| #define CUPTI_HAS_FNPTR | ( | name | ) | (name##_fnptr != nullptr) |
| #define DECL_FNPTR_EXTERN | ( | name | ) | extern decltype(&name) name##_fnptr; |
| #define DECL_FNPTR_EXTERN | ( | name | ) | extern decltype(&name) name##_fnptr; |
| #define DECL_FNPTR_EXTERN | ( | name, | |
| ver | |||
| ) | extern decltype(&name) name##_fnptr; |
| #define IS_DEFAULT_STREAM | ( | stream | ) |
| #define NVML_11_APIS | ( | __op__ | ) |
| #define NVML_12_APIS | ( | __op__ | ) |
| #define NVML_APIS | ( | __op__ | ) |
| #define NVML_FNPTR | ( | name | ) | (name##_fnptr) |
| #define REPORT_CU_ERROR | ( | level, | |
| cmd, | |||
| ret | |||
| ) |
| #define REPORT_CUPTI_ERROR | ( | level, | |
| cmd, | |||
| ret | |||
| ) |
| #define REPORT_NVML_ERROR | ( | level, | |
| cmd, | |||
| ret | |||
| ) |