mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-05-15 18:42:06 +00:00
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:
@@ -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
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user