20#ifndef TVM_RUNTIME_DISCO_CUDA_IPC_MEMORY_H_
21#define TVM_RUNTIME_DISCO_CUDA_IPC_MEMORY_H_
92 explicit CUDAIPCMemory(ffi::UnsafeInit tag, ffi::ObjectPtr<CUDAIPCMemoryObj> n)
93 : ffi::ObjectRef(tag) {
A cache of owning device tensors.
Definition tensor.h:218
The CUDA IPC (interprocess communication) memory object, which internally contains data pointers to C...
Definition cuda_ipc_memory.h:40
static constexpr const bool _type_mutable
Definition cuda_ipc_memory.h:72
std::vector< void * > barrier_out
The pointers to output barrier signals of all workers for all-reduce. It has "num_workers" pointers,...
Definition cuda_ipc_memory.h:68
std::vector< void * > barrier_in
The pointers to input barrier signals of all workers for all-reduce. It has "num_workers" pointers,...
Definition cuda_ipc_memory.h:63
TVM_FFI_DECLARE_OBJECT_INFO("tvm.runtime.disco.cuda_ipc_memory", CUDAIPCMemoryObj, ffi::Object)
int barrier_flag
The integer buffer flag for all-reduce.
Definition cuda_ipc_memory.h:70
int num_workers
The number of GPU workers.
Definition cuda_ipc_memory.h:43
int worker_id
The worker id corresponding to this IPC memory object.
Definition cuda_ipc_memory.h:45
std::vector< void * > remote_data
The data pointers of all all-reduce inputs. It has "num_workers" pointers. The i-th pointer is the da...
Definition cuda_ipc_memory.h:52
Managed reference to CUDAIPCMemoryObj.
Definition cuda_ipc_memory.h:80
static TVM_RUNTIME_DLL CUDAIPCMemory GetIPCMemoryFromDevicePtr(void *ptr)
Given a local CUDA data pointer, return the CUDAIPCMemory object of the pointer.
CUDAIPCMemory(ffi::UnsafeInit tag, ffi::ObjectPtr< CUDAIPCMemoryObj > n)
Definition cuda_ipc_memory.h:92
static TVM_RUNTIME_DLL TensorMemoryPool * GlobalMemoryPool()
Get the global singleton CUDAIPCMemory pool.
TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE(CUDAIPCMemory, ffi::ObjectRef, CUDAIPCMemoryObj)
An object that builds and maintains block scope and StmtSref mapping for Dependence analysis.
Definition attr.h:23
#define TVM_RUNTIME_DLL
Definition base.h:100
Device-independent tensor allocation, copies, views and serialization.