mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01: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:
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 {
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user