From fff90303403edd4b5b359075a710e31c263eef99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mirza=20Halil=C4=8Devi=C4=87?= <109971222+mirza-halilcevic@users.noreply.github.com> Date: Fri, 30 May 2025 17:23:44 +0200 Subject: [PATCH] Define CHAR_BIT during hipRTC (#2264) * Fix failing codegen tests. * fix clang format --------- Co-authored-by: illsilin [ROCm/composable_kernel commit: fbce6c7bb6dad3750e33e999d438197cdc5c7fe8] --- include/ck/utility/data_type.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/include/ck/utility/data_type.hpp b/include/ck/utility/data_type.hpp index c11b9c0272..b90ff237dc 100644 --- a/include/ck/utility/data_type.hpp +++ b/include/ck/utility/data_type.hpp @@ -11,6 +11,7 @@ /// /opt/rocm/include/hip/amd_detail/amd_hip_vector_types.h. #if defined(__HIPCC_RTC__) || defined(CK_CODE_GEN_RTC) +#define CHAR_BIT 8 using int8_t = signed char; using uint8_t = unsigned char; using int16_t = signed short;