Okay my problem is since pytorch 2.1 before the were no problem . Since then all max(…) function get automatically assumed to be std::max(…) . It is easy to suppress the problem with define NOMINMAX when I load the pre build binaries . Someone deleted properly half a line of code there somewhere.
My problem now is I try to build myself the c++ backend with DNN and MPI so I run into this
E:\pytorch\third_party\gloo\gloo\mpi\context.cc(43): warning C4297: “gloo::mpi::MPIScope::~MPIScope”: The function throws an unexpected exception
E:\pytorch\third_party\gloo\gloo\mpi\context.cc(43): note: Destructor or deallocator has an (possibly implicit) non-throwing exception specification
E:\pytorch\third_party\gloo\gloo\mpi\context.cc(105): error C2672: “std::max”: No matching overloaded function found