easybuild-easyblocks
easybuild-easyblocks copied to clipboard
Set build type for PyTorch explicitely
PyTorch checks these environment variables in this order to determine the build type (for CMake) to use:
- CMAKE_BUILD_TYPE
- DEBUG
- REL_WITH_DEB_INFO
If we don't set it explicitely we might end up with an unexpected debug build.
Add the build_type
EC option used in the CMakeMake easyblock with similar semantics.