25#ifndef TVM_RELAX_DISTRIBUTED_GLOBAL_INFO_H_
26#define TVM_RELAX_DISTRIBUTED_GLOBAL_INFO_H_
29#include <tvm/ffi/container/shape.h>
34namespace distributed {
51 namespace refl = tvm::ffi::reflection;
52 refl::ObjectDef<DeviceMeshObj>()
66 TVM_DLL
DeviceMesh(ffi::Shape shape, ffi::Array<int64_t> device_ids);
GlobalInfo are globally static object that are referred by the IR itself. Base node for all global in...
Definition global_info.h:36
Managed reference to GlobalInfoObj.
Definition global_info.h:47
Range container
Definition expr.h:883
Definition global_info.h:39
ffi::Array< int64_t > device_ids
device ids in the mesh
Definition global_info.h:45
ffi::Optional< Range > device_range
Optionally use range to represent device_ids.
Definition global_info.h:48
static void RegisterReflection()
Definition global_info.h:50
TVM_FFI_DECLARE_OBJECT_INFO_FINAL("relax.distributed.DeviceMesh", DeviceMeshObj, GlobalInfoObj)
ffi::Shape shape
logical shape of the mesh
Definition global_info.h:42
Managed reference to a DeviceMesh.
Definition global_info.h:64
TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE(DeviceMesh, GlobalInfo, DeviceMeshObj)
DeviceMesh(ffi::Shape shape, Range device_range)
DeviceMesh(ffi::Shape shape, ffi::Array< int64_t > device_ids)
Parent compiler symbol visibility.
IRModule that holds the functions and type definitions.
An object that builds and maintains block scope and StmtSref mapping for Dependence analysis.
Definition analysis.h:41