fabric detection - fix build on an old toolkit (#160984)

Fixes #160960

Pull Request resolved: https://github.com/pytorch/pytorch/pull/160984
Approved by: https://github.com/eqy
This commit is contained in:
Natalia Gimelshein
2025-08-19 23:43:32 +00:00
committed by PyTorch MergeBot
parent e836323a23
commit 0d19541284

View File

@ -67,7 +67,11 @@
_(nvmlDeviceGetComputeRunningProcesses) \
_(nvmlSystemGetCudaDriverVersion_v2)
#if defined(CUDA_VERSION) && (CUDA_VERSION >= 12040)
#define C10_NVML_DRIVER_API_OPTIONAL(_) _(nvmlDeviceGetGpuFabricInfoV)
#else
#define C10_NVML_DRIVER_API_OPTIONAL(_)
#endif
namespace c10::cuda {