mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-05-21 05:19:20 +00:00
* Refactor CK tile permute ctests to gtests
* Refactor CK tile MOE smoothquant ctests to gtests
* fix typo in comment
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update invalid case in else clause for get_precision_string
* Refactor permute gtests to use templated versions of matrix_core_swizzle and permute functions
---------
Co-authored-by: root <root@splinter-126-wr-c2.aus.dcgpu>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
[ROCm/composable_kernel commit: 10395fc895]
22 lines
648 B
CMake
22 lines
648 B
CMake
# Currently ck_tile is only built on gfx9
|
|
if(GPU_TARGETS MATCHES "gfx9")
|
|
|
|
function(add_permute_test TARGET_NAME MAIN_SRC)
|
|
add_gtest_executable(${TARGET_NAME} ${MAIN_SRC})
|
|
|
|
if(NOT DEFINED PERMUTE_USE_ALTERNATIVE_IMPL)
|
|
set(PERMUTE_USE_ALTERNATIVE_IMPL true)
|
|
endif()
|
|
|
|
if(PERMUTE_USE_ALTERNATIVE_IMPL)
|
|
target_compile_options(${TARGET_NAME} PRIVATE -DPERMUTE_USE_ALTERNATIVE_IMPL)
|
|
endif()
|
|
|
|
endfunction(add_permute_test TARGET_NAME MAIN_SRC)
|
|
|
|
add_permute_test(test_ck_tile_permute test_permute.cpp)
|
|
|
|
else()
|
|
message(DEBUG "Skipping ck_tile_permute tests for current target")
|
|
endif()
|