Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions core/runtime/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,7 @@ cc_library(
"TensorRTBindingNames.h",
"runtime.h",
],
copts = if_torch_nccl(["-DUSE_C10D_NCCL"]),
defines = select({
defines = if_torch_nccl(["USE_C10D_NCCL"]) + select({
# nvinfer1::IRuntimeConfig (and the matching ICudaEngine::createRuntimeConfig
# / createExecutionContext(IRuntimeConfig*) overloads) was introduced in
# TensorRT 10.11. The TensorRT shipped with the Jetpack l4t-r36.4 toolchain
Expand Down
6 changes: 3 additions & 3 deletions py/torch_tensorrt/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def is_platform_supported_for_trtllm() -> bool:
return True

except Exception as e:
logger.warning(f"Failed to detect CUDA version: {e}")
logger.info(f"Failed to detect CUDA version: {e}")
return False

return True
Expand Down Expand Up @@ -236,7 +236,7 @@ def download_and_get_plugin_lib_path() -> Optional[str]:
wheel_path.unlink(missing_ok=True)
logger.debug(f"Deleted wheel file: {wheel_path}")
except Exception as e:
logger.warning(f"Could not delete wheel file {wheel_path}: {e}")
logger.info(f"Could not delete wheel file {wheel_path}: {e}")
if not plugin_lib_path.exists():
logger.error(
f"Plugin library not found at expected location: {plugin_lib_path}"
Expand Down Expand Up @@ -356,7 +356,7 @@ def load_tensorrt_llm_for_nccl() -> bool:
"on",
)
if not use_trtllm_plugin:
logger.warning(
logger.info(
"Neither TRTLLM_PLUGIN_PATH is set nor is it directed to download the shared library. Please set either of the two to use TRT-LLM libraries in torchTRT"
)
return False
Expand Down
12 changes: 12 additions & 0 deletions py/torch_tensorrt/dynamo/conversion/_TRTInterpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,18 @@ def _populate_trt_builder_config(
) -> trt.IBuilderConfig:
builder_config = self.builder.create_builder_config()

# Enable TRT's native multi-device runtime preview feature when the
# Torch-TRT runtime was built with NCCL collectives support. Without
# this, IBuilder::buildEngineWithConfig() rejects networks that contain
# IDistCollectiveLayer with "PreviewFeature::kMULTIDEVICE_RUNTIME_10_16
# is not enabled in the builder config".
if ENABLED_FEATURES.native_trt_collectives and hasattr(
trt.PreviewFeature, "MULTIDEVICE_RUNTIME_10_16"
):
builder_config.set_preview_feature(
trt.PreviewFeature.MULTIDEVICE_RUNTIME_10_16, True
)

if self._debugger_config and self._debugger_config.engine_builder_monitor:
builder_config.progress_monitor = TRTBulderMonitor()

Expand Down
Loading