intel / torch-ccl

oneCCL Bindings for Pytorch*
BSD 3-Clause "New" or "Revised" License
86 stars 25 forks source link

Build with latest pytorch from git fails #39

Open gshimansky opened 1 year ago

gshimansky commented 1 year ago

Pytorch updated its version definition to #define TORCH_VERSION_MAJOR 2 and #define TORCH_VERSION_MINOR 0. Using #if TORCH_VERSION_MINOR >= 13 in ProcessGroupCCL.hpp now causes a build problem because it doesn't check TORCH_VERSION_MAJOR.