Parallel Config#
-
struct ParallelGroupConfig#
Configuration for one logical parallel group.
Public Members
-
ParallelType type = {ParallelType::kTensor}#
Logical parallelism type.
-
int32_t size = {1}#
Number of ranks in this group.
-
int32_t rank = {0}#
Local rank within this group.
-
int32_t globalRank = {0}#
Global rank within the full parallel world.
-
int32_t localDevice = {0}#
CUDA device for this rank.
-
ParallelType type = {ParallelType::kTensor}#
-
struct ParallelBackendHandles#
External communication handles for one parallel group (e.g. NCCL communicators). Shared by the public runtime config and the runtime coordinator.
-
struct ParallelConfig#
Top-level parallel execution configuration. Size-1 dimensions are the single-device default.
Public Functions
-
std::string toString() const#
-
std::string toString() const#
-
struct ParallelMapping#
Fully resolved tensor-parallel coordinates for one runtime rank. Size-1 dimensions are explicit so single-device execution is the TP size-1 case.
- char const *trt_edgellm::rt::parallelTypeName(
- ParallelType type
- char const *trt_edgellm::rt::parallelLaunchModeName(
- ParallelLaunchMode mode
- bool trt_edgellm::rt::isInlineSingleRank(
- ParallelLaunchMode launchMode,
- int32_t worldSize,
- size_t localRankCount
True when a parallel plan should execute inline on the caller’s thread: threaded launch, a single-rank world, and exactly one local rank. In this case the coordinator skips worker threads, condition-variable dispatch, and NUMA pinning so single-device execution keeps its original latency and caller-thread streaming/audio semantics.
- bool trt_edgellm::rt::isFullLocalParallelGroup(
- int32_t groupSize,
- std::vector<int32_t> const &localRanks
True when
localRankscontains every rank in [0, groupSize) in rank order.
- int32_t trt_edgellm::rt::parallelGroupSize(
- ParallelConfig const &config,
- ParallelType type
- int32_t trt_edgellm::rt::parallelWorldSize(
- ParallelConfig const &config
- int32_t trt_edgellm::rt::parallelGroupRank(
- ParallelConfig const &config,
- ParallelType type,
- int32_t globalRank
- ParallelMapping trt_edgellm::rt::makeParallelMapping(
- ParallelConfig const &config,
- int32_t globalRank,
- int32_t localDevice
- ParallelGroupConfig trt_edgellm::rt::makeParallelGroupConfig(
- ParallelConfig const &config,
- ParallelType type,
- int32_t globalRank,
- int32_t localDevice
- std::vector<ParallelGroupConfig> trt_edgellm::rt::activeParallelGroups(
- ParallelConfig const &config,
- int32_t globalRank,
- int32_t localDevice