From 8cf49a44a964a56d95509dc83d58e6abb0ab2805 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Attila=20T=2E=20=C3=81fra?= Date: Thu, 20 Mar 2025 21:37:25 +0200 Subject: [PATCH] Fix compile errors on Windows and Linux (#2002) * Fix compile error on Windows (call to 'amd_wave_read_first_lane' is ambiguous) * Fix compile error (no matching function for call to 'cast_to_f32_from_f8') [ROCm/composable_kernel commit: c79bf11148ac7abd7504f0e700b409b4c63a052c] --- include/ck/utility/amd_ck_fp8.hpp | 2 +- include/ck/utility/data_type.hpp | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/include/ck/utility/amd_ck_fp8.hpp b/include/ck/utility/amd_ck_fp8.hpp index 429ba44b89..5c80c42d6c 100644 --- a/include/ck/utility/amd_ck_fp8.hpp +++ b/include/ck/utility/amd_ck_fp8.hpp @@ -243,7 +243,7 @@ __host__ __device__ static inline T cast_from_f8(fp8_storage_t x) #if CK_FP8_CVT_FAST_PATH template -static __device__ float cast_to_f32_from_f8(fp8_storage_t v) +static __host__ __device__ float cast_to_f32_from_f8(fp8_storage_t v) { union { diff --git a/include/ck/utility/data_type.hpp b/include/ck/utility/data_type.hpp index b25ab5ab5f..a4d96edc6d 100644 --- a/include/ck/utility/data_type.hpp +++ b/include/ck/utility/data_type.hpp @@ -2479,7 +2479,11 @@ struct vector_type()>> } }; +#if defined(_WIN32) +using int64_t = long long; +#else using int64_t = long; +#endif // fp64 using double2_t = typename vector_type::type;