You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You need a C++ compiler that supports C++17 to build TE and I assume that the version of GCC that is shipped with Ubuntu 18.04 is too old for that. According to the GCC feature list support for filesystem from C++17 was added in GCC 8.1. Could you try with at least that version?
This error message suggests that your compiler does not have C++17 support. You should first try building with verbose output so that we can see what compiler command is being run:
cd transformer_engine
pip install -v -v -v .
This will spit out a lot of info, so you'll need to search for where cuda_driver.cpp is being compiled. Some possible outcomes:
CMake is not compiling with GCC 12.4, but is using an older compiler. Set CXX in the environment to tell CMake what C++ compiler you want to use.
CMake is using the right compiler, but is not enabling C++17 support (look for -std=c++17 or -std=gnu++17 flags). This would be very strange since we explicity tell CMake to use C++17:
Activity
ptrendx commentedon Oct 5, 2023
You need a C++ compiler that supports C++17 to build TE and I assume that the version of GCC that is shipped with Ubuntu 18.04 is too old for that. According to the GCC feature list support for filesystem from C++17 was added in GCC 8.1. Could you try with at least that version?
Zhihan1996 commentedon Nov 27, 2024
Hello, did you figure out the issue? I am facing the same issue with cmake 3.28/3.29/3.30 and gcc 12.4.
timmoon10 commentedon Nov 28, 2024
This error message suggests that your compiler does not have C++17 support. You should first try building with verbose output so that we can see what compiler command is being run:
This will spit out a lot of info, so you'll need to search for where
cuda_driver.cppis being compiled. Some possible outcomes:CXXin the environment to tell CMake what C++ compiler you want to use.-std=c++17or-std=gnu++17flags). This would be very strange since we explicity tell CMake to use C++17:TransformerEngine/transformer_engine/common/CMakeLists.txt
Line 11 in a132ac4
See #355 (comment) for more guidance on build errors.