mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Summary: Adds a Python to C binding to get the NCCL_SUFFIX value for more accurate NCCL version information and add that to the NCCL version tuple. Differential Revision: D50978181 Pull Request resolved: https://github.com/pytorch/pytorch/pull/112884 Approved by: https://github.com/kwen2501
14 lines
682 B
C
14 lines
682 B
C
#pragma once
|
|
|
|
#include <torch/csrc/python_headers.h>
|
|
|
|
PyObject* THCPModule_nccl_version(PyObject* self, PyObject* args);
|
|
PyObject* THCPModule_nccl_version_suffix(PyObject* self, PyObject* args);
|
|
PyObject* THCPModule_nccl_unique_id(PyObject* self, PyObject* args);
|
|
PyObject* THCPModule_nccl_init_rank(PyObject* self, PyObject* args);
|
|
PyObject* THCPModule_nccl_reduce(PyObject* self, PyObject* args);
|
|
PyObject* THCPModule_nccl_all_reduce(PyObject* self, PyObject* args);
|
|
PyObject* THCPModule_nccl_broadcast(PyObject* self, PyObject* args);
|
|
PyObject* THCPModule_nccl_all_gather(PyObject* self, PyObject* args);
|
|
PyObject* THCPModule_nccl_reduce_scatter(PyObject* self, PyObject* args);
|