[CK_BUILDER] old ck build fixes (#3075)

* Disable c++20-compat warnings when building old CK in C++20 mode

Turns out that this creates some warnings for no good reason.

* ck-builder: add missing layouts and element-wise op names

For layouts, we can directly use the ::name attribute, which should
cover all layouts. For element-wise ops, I just added the ones which
are currently missing when compiling CK with -DMIOPEN_REQ_LIBS_ONLY.
This commit is contained in:
Robin Voetter
2025-10-23 22:01:19 +02:00
committed by GitHub
parent 0fd7d1a607
commit d0364641ed
2 changed files with 22 additions and 26 deletions

View File

@@ -99,6 +99,9 @@ else()
-Wno-unused-lambda-capture
-Wno-nvcc-compat
)
if(CK_CXX_STANDARD GREATER_EQUAL 20)
list(APPEND CMAKE_COMPILER_WARNINGS -Wno-c++20-compat)
endif()
else()
if (CMAKE_${COMPILER}_COMPILER_ID MATCHES "GNU" AND ${COMPILER} MATCHES "CXX")
# cmake 3.5.2 does not support >=.