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: c79bf11148]
This commit is contained in:
Attila T. Áfra
2025-03-20 21:37:25 +02:00
committed by GitHub
parent f588e4b08e
commit 8cf49a44a9
2 changed files with 5 additions and 1 deletions

View File

@@ -243,7 +243,7 @@ __host__ __device__ static inline T cast_from_f8(fp8_storage_t x)
#if CK_FP8_CVT_FAST_PATH
template <ck_fp8_interpretation_t interpret>
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
{

View File

@@ -2479,7 +2479,11 @@ struct vector_type<T, 64, typename ck::enable_if_t<!is_native_type<T>()>>
}
};
#if defined(_WIN32)
using int64_t = long long;
#else
using int64_t = long;
#endif
// fp64
using double2_t = typename vector_type<double, 2>::type;