Fix fp8 convert & add option for basic example (#2129)

[ROCm/composable_kernel commit: 8add2cf45d]
This commit is contained in:
Yi DING
2025-04-28 07:26:05 +08:00
committed by GitHub
parent 7b61b0e4fa
commit 790e7bbd4b
2 changed files with 2 additions and 1 deletions

View File

@@ -5,4 +5,5 @@ if(CK_USE_OCP_FP8)
list(APPEND EXAMPLE_GEMM_COMPILE_OPTIONS -DCK_TILE_USE_OCP_FP8)
endif()
list(APPEND EXAMPLE_GEMM_COMPILE_OPTIONS -mllvm -enable-noalias-to-md-conversion=0)
target_compile_options(tile_example_gemm_basic PRIVATE ${EXAMPLE_GEMM_COMPILE_OPTIONS})
target_compile_options(tile_example_gemm_universal PRIVATE ${EXAMPLE_GEMM_COMPILE_OPTIONS})

View File

@@ -530,7 +530,7 @@ CK_TILE_HOST_DEVICE DstT run_cast_from_f8(SrcT x)
}
else
{
if(x == 0x80)
if(x == SrcT(0x80))
{
return fNeg0;
}