Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit 4c7560c

Browse files
authored
Xetla Fix GRF Mode Settings (#322)
1 parent 8fc6c57 commit 4c7560c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

include/common/core/arch_config.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -147,18 +147,18 @@ struct fpu_attr_t {
147147
template <gpu_arch arch_tag>
148148
inline constexpr bool arch_has_fpu = fpu_attr_t<arch_tag>::has_fpu;
149149

150-
#ifdef NORMAL_GRF
151-
#define GRF grf_mode::normal_grf
152-
#else
150+
#ifdef USE_DOUBLE_GRF
153151
#define GRF grf_mode::double_grf
152+
#else
153+
#define GRF grf_mode::normal_grf
154154
#endif
155155

156156
template <grf_mode grf_num_mode>
157157
struct register_nums_t {
158158
static constexpr uint32_t register_nums =
159-
(grf_num_mode == grf_mode::normal) ? 128 : 256;
159+
(grf_num_mode == grf_mode::normal_grf) ? 128 : 256;
160160
static constexpr uint32_t acc_register_nums =
161-
(grf_num_mode == grf_mode::normal) ? 4 : 8;
161+
(grf_num_mode == grf_mode::normal_grf) ? 4 : 8;
162162
};
163163

164164
template <gpu_arch arch_tag>

include/common/core/common_types.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ inline constexpr bool valid_xe_arch_tag = (arch_tag < gpu_arch::XeLast);
2828

2929
enum class mma_engine : uint8_t { xmx = 0, fpu = 1 };
3030

31-
enum class grf_mode : uint8_t { normal = 0, double_grf = 1 };
31+
enum class grf_mode : uint8_t { normal_grf = 0, double_grf = 1 };
3232

3333
enum class mem_layout : uint8_t { row_major = 0, col_major = 1 };
3434

0 commit comments

Comments
 (0)