Add tensorrt_multi_device_inference operator (multi-GPU TensorRT Multi-Device)#1631
Draft
pkisfaludi-nv wants to merge 2 commits into
Draft
Conversation
A self-contained HoloHub operator that runs a single TensorRT engine sharded across >=2 GPUs via TensorRT Multi-Device (NCCL DistCollective + setCommunicator), so one operator drives N GPUs (TRT-28040). Wraps the hardware-validated MultiDeviceTrt core (ncclCommInitAll -> per-rank deserialize -> concurrent setCommunicator -> host-bounce input replication -> fan-out enqueueV3). - operators/tensorrt_multi_device_inference/: operator + reused MD core + metadata.json + CMakeLists + README; registered in operators/CMakeLists.txt. - applications/multi_device_inference/: minimal source -> MD inference -> checksum sink demo (cpp), config, metadata, README; registered in applications/CMakeLists.txt. Requires TensorRT >= 11 (Multi-Device GA), NCCL, and >= 2 homogeneous GPUs (SM80+). MD core validated on 2x B200 (TensorRT 11.1): TP-sharded MLP across 2 GPUs vs the 1-GPU reference, max_rel 1.24e-05. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: Peter Kisfaludi <pkisfaludi@nvidia.com>
for more information, see https://pre-commit.ci
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a self-contained
tensorrt_multi_device_inferenceoperator (+ a minimal sample app) that runs a single TensorRT engine sharded across ≥2 GPUs via TensorRT Multi-Device (NCCLDistCollective+IExecutionContext::setCommunicator), so one operator drives N GPUs — for models too large for one GPU or that benefit from tensor parallelism. (TRT-28040)It wraps a hardware-validated
MultiDeviceTrtcore:ncclCommInitAll→ per-rank deserialize → concurrentsetCommunicator→ host-bounce input replication → fan-outenqueueV3→ rank-0 output. It does not depend on the SDK's HoloInfer/InferenceOp.What's added
operators/tensorrt_multi_device_inference/— operator (TensorRtMultiDeviceInferenceOp) + the reused MD core +metadata.json+CMakeLists.txt+README.md; registered inoperators/CMakeLists.txt.applications/multi_device_inference/— a minimalsource → MD inference → checksum sinkC++ demo + config + metadata + README; registered inapplications/CMakeLists.txt.Requirements (please review)
DockerfileperAGENTS.md.Validation status
multidevice.cpp) is validated on 2× NVIDIA B200 (TensorRT 11.1): a tensor-parallel MLP sharded across 2 GPUs matched the 1-GPU reference (max_rel 1.24e-05).clang-formatand metadata structure pass locally. Marking draft until the build environment question is resolved and CI is green.DCO signed-off. Companion Holoscan-SDK MR (HoloInfer-internal variant): TRT-28040 / holoscan-sdk!4577.
🤖 Generated with Claude Code