Hi,
How did you installed pytorch?
This test is designed to find if the compiler used to build the binaries is compatible with the compiler you use for your extensions.
Compiling pytorch from source will solve the problem for sure. Otherwise @smth should be able to tell you which compiler was used to build the package (depending on how you installed pytorch).