Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-bridge/blob/main/tests/cabi/golden/ombrfx.h # omega-bridge Omega-first language interoperability: checked conversion backends and native language bindings Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-bridge / tests / cabi / golden / ombrfx.h` 40 lines ยท 1500 bytes Raw Blame History 1 #ifndef OMBR_OMBRFX_H 2 #define OMBR_OMBRFX_H 3 #ifdef __cplusplus 4 extern "C" { 5 #endif 6 #ifndef NVML_NO_UNVERSIONED_FUNC_DEFS 7 #define nvmlDeviceGetCount nvmlDeviceGetCount_v2 8 #define nvmlDeviceGetHandleByIndex nvmlDeviceGetHandleByIndex_v2 9 #endif 10 #define NVML_DEVICE_NAME_BUFFER_SIZE 64 11 typedef enum nvmlReturn_enum { 12 NVML_SUCCESS = 0, 13 NVML_ERROR_INVALID_ARGUMENT = 2, 14 NVML_ERROR_INSUFFICIENT_SIZE = 7, 15 NVML_ERROR_UNKNOWN = 999 16 } nvmlReturn_t; 17 typedef struct nvmlDevice_st *nvmlDevice_t; 18 typedef struct nvmlMemory_st { 19 unsigned long long total; 20 unsigned long long free; 21 unsigned long long used; 22 } nvmlMemory_t; 23 typedef struct nvmlProcessInfo_v2_st { 24 unsigned int pid; 25 unsigned long long usedGpuMemory; 26 unsigned int gpuInstanceId; 27 unsigned int computeInstanceId; 28 } nvmlProcessInfo_v2_t, nvmlProcessInfo_t; 29 nvmlReturn_t nvmlDeviceGetCount_v2(unsigned int *deviceCount); 30 nvmlReturn_t nvmlDeviceGetHandleByIndex_v2(unsigned int index, nvmlDevice_t *device); 31 nvmlReturn_t nvmlDeviceGetName(nvmlDevice_t device, char *name, unsigned int length); 32 nvmlReturn_t nvmlDeviceGetMemoryInfo(nvmlDevice_t device, nvmlMemory_t *memory); 33 nvmlReturn_t nvmlDeviceGetComputeRunningProcesses_v2(nvmlDevice_t device, unsigned int *infoCount, nvmlProcessInfo_v2_t *infos); 34 const char *nvmlErrorString(nvmlReturn_t result); 35 nvmlReturn_t ombrFxBump(unsigned long long *value); 36 nvmlReturn_t ombrFxSum(unsigned long long seed, unsigned long long *sum); 37 #ifdef __cplusplus 38 } 39 #endif 40 #endif