From b953544a59899d8d7ccdc76b2c87ec9cb709ec36 Mon Sep 17 00:00:00 2001 From: Wenkai Du <43822138+wenkaidu@users.noreply.github.com> Date: Wed, 7 Dec 2022 13:36:11 -0800 Subject: [PATCH] Fix typo in detecting Intel platforms (#661) --- src/graph/paths.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graph/paths.cc b/src/graph/paths.cc index b0de0dc991..46721a8e0d 100644 --- a/src/graph/paths.cc +++ b/src/graph/paths.cc @@ -816,7 +816,7 @@ ncclResult_t ncclTopoComputeP2pChannels(struct ncclComm* comm) { int arch, vendor, model; NCCLCHECK(ncclTopoCpuType(comm->topo, &arch, &vendor, &model)); - if (arch == NCCL_TOPO_CPU_ARCH_X86 || vendor == NCCL_TOPO_CPU_VENDOR_INTEL) { + if (arch == NCCL_TOPO_CPU_ARCH_X86 && vendor == NCCL_TOPO_CPU_VENDOR_INTEL) { // Adjust P2P channels on Intel platform comm->p2pnChannelsPerPeer = 1; comm->p2pnChannels = 2;