mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
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:
committed by
PyTorch MergeBot
parent
e836323a23
commit
0d19541284
@ -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 {
|
||||
|
||||
|
Reference in New Issue
Block a user