@@ -712,15 +712,19 @@ void AllreducePlugin::setGroupTopology() noexcept
712712 if (isMultiNode)
713713 {
714714 TLLM_LOG_INFO (" Found inter-node TP group for rank %d" , rank);
715- // For MNNVL (Multi-Node NVLink), we need to check P2P/NVLINK even in multi-node
716- // For other strategies, multi-node means no P2P/NVLINK support
717- if (mStrategy != AllReduceStrategyType::MNNVL)
715+ // Strategies that don't support multi-node P2P/NVLINK
716+ // MIN_LATENCY, ONESHOT, TWOSHOT, LOWPRECISION are designed for intra-node only
717+ if (mStrategy == AllReduceStrategyType::MIN_LATENCY || mStrategy == AllReduceStrategyType::ONESHOT
718+ || mStrategy == AllReduceStrategyType::TWOSHOT || mStrategy == AllReduceStrategyType::LOWPRECISION)
718719 {
719720 mIsP2PSupported = false ;
720721 mIsNVLINKSupported = false ;
722+ TLLM_LOG_INFO (" Strategy %s does not support multi-node, setting P2P/NVLINK to false for rank %d" ,
723+ tensorrt_llm::kernels::toString (mStrategy ).c_str (), rank);
721724 return ;
722725 }
723- TLLM_LOG_INFO (" MNNVL strategy detected - checking multi-node P2P/NVLINK for rank %d" , rank);
726+ // Other strategies (like MNNVL) will continue to check P2P/NVLINK in multi-node
727+ TLLM_LOG_INFO (" Multi-node strategy detected - checking P2P/NVLINK across nodes for rank %d" , rank);
724728 }
725729 else
726730 {
@@ -732,10 +736,9 @@ void AllreducePlugin::setGroupTopology() noexcept
732736 mIsP2PSupported = true ;
733737 mIsNVLINKSupported = true ;
734738
735- // For MNNVL in multi-node, check all devices in the full group
739+ // For multi-node with supported strategies , check all devices in the full group
736740 // For intra-node, check only localGroup
737- std::set<int > const & devicesToCheck
738- = (isMultiNode && mStrategy == AllReduceStrategyType::MNNVL) ? mGroup : localGroup;
741+ std::set<int > const & devicesToCheck = isMultiNode ? mGroup : localGroup;
739742
740743 // Use cudaDeviceCanAccessPeer to determine whether p2p is supported,
741744 // and use nvml to determine whether there are nvlink links between ranks.
0 commit comments