Can we build PyTorch extensions for c++17?

Hi folks,

I’m trying to build an extension that uses another library that was developed using c++17.

For now I’m just including the header of that library and the build process is complaining a lot, I tried to compile it myself by changing ‘-std=c++11’ to ‘-std=c++17’ and the compilation went fine, however, I’m wondering if it’s possible to build extensions with c++17 and if it’s the case then how to use the torch.utils.cpp_extension module to configure the build?

1 Like