Don't include cuh header when USE_NVSHMEM is off (#162635)

Signed-off-by: Edward Yang <ezyang@meta.com>

Pull Request resolved: https://github.com/pytorch/pytorch/pull/162635
Approved by: https://github.com/kwen2501
This commit is contained in:
Edward Yang
2025-09-10 16:28:59 -04:00
committed by PyTorch MergeBot
parent 4fd2a2b273
commit da5069f289

View File

@ -48,7 +48,10 @@
#include <torch/csrc/distributed/c10d/PrefixStore.hpp>
#include <torch/csrc/distributed/c10d/symm_mem/DMAConnectivity.hpp>
#include <torch/csrc/distributed/c10d/symm_mem/SymmetricMemory.hpp>
#ifdef USE_NVSHMEM
#include <torch/csrc/distributed/c10d/symm_mem/nvshmem_extension.cuh>
#endif
#include <torch/csrc/distributed/c10d/comm.hpp>
#include <torch/csrc/distributed/c10d/debug.h>