Skip to content

Commit c953fce

Browse files
committed
Bring back block write macro
1 parent 355b0fa commit c953fce

4 files changed

Lines changed: 13 additions & 13 deletions

File tree

src/plugins/intel_gpu/src/graph/impls/ocl_v2/utils/jitter.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,8 @@ JitConstants make_type_jit_constants(const std::string& name, const ov::element:
277277
min_val = "-" + name + "_VAL_MAX";
278278
val_one = "1.0h";
279279
val_zero = "0.0h";
280-
to_type = "_convert_half(v)";
281-
to_type_sat = "_convert_half(v)";
280+
to_type = "convert_half(v)";
281+
to_type_sat = "convert_half(v)";
282282
as_type = "as_half(v)";
283283
max_func = "fmax";
284284
min_func = "fmin";
@@ -311,8 +311,8 @@ JitConstants make_type_jit_constants(const std::string& name, const ov::element:
311311
min_val = "-" + name + "_VAL_MAX";
312312
val_one = "1.0f";
313313
val_zero = "0.0f";
314-
to_type = "_convert_float(v)";
315-
to_type_sat = "_convert_float(v)";
314+
to_type = "convert_float(v)";
315+
to_type_sat = "convert_float(v)";
316316
as_type = "as_float(v)";
317317
max_func = "fmax";
318318
min_func = "fmin";

src/plugins/intel_gpu/src/kernel_selector/cl_kernels/dynamic_quantize_gpu_opt.cl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
#define CONVERT_UCHAR_N CAT(convert_uchar, VEC_SIZE)
1919
#define CONVERT_CHAR_N CAT(convert_char, VEC_SIZE)
2020
#define CONVERT_INT_N CAT(convert_int, VEC_SIZE)
21-
#define TO_TYPE_N_(type, n, x) _convert_##type##n(x)
21+
#define TO_TYPE_N_(type, n, x) convert_##type##n(x)
2222
#define TO_TYPE_N(type, n, x) TO_TYPE_N_(type, n, x)
23-
#define TO_TYPE_N_SAT_(type, n, x) _convert_##type##n##_sat(x)
23+
#define TO_TYPE_N_SAT_(type, n, x) convert_##type##n##_sat(x)
2424
#define TO_TYPE_N_SAT(type, n, x) TO_TYPE_N_SAT_(type, n, x)
2525
#define AS_TYPE_N_(type, n, x) as_##type##n(x)
2626
#define AS_TYPE_N(type, n, x) AS_TYPE_N_(type, n, x)
@@ -31,7 +31,7 @@
3131
#define ACT_MIN_VAL 0.000000059604645h // min half dtype val
3232
#else
3333
#define SCALE_TYPE half
34-
#define TO_SCALE_TYPE(x) _convert_half(x)
34+
#define TO_SCALE_TYPE(x) convert_half(x)
3535
#define ACT_MIN_VAL 0.003h // Too small value may generate inf during 127/ACT_MIN_VAL
3636
#endif
3737

src/plugins/intel_gpu/src/kernel_selector/cl_kernels/dynamic_quantize_gpu_ref.cl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
#define ACT_MIN_VAL 0.000000059604645h // min half dtype val
1919
#else
2020
#define SCALE_TYPE half
21-
#define TO_SCALE_TYPE(x) _convert_half(x)
22-
#define TO_SCALE_TYPE_8(x) _convert_half8(x)
21+
#define TO_SCALE_TYPE(x) convert_half(x)
22+
#define TO_SCALE_TYPE_8(x) convert_half8(x)
2323
#define ACT_MIN_VAL 0.003h // Too small value may generate inf during 127/ACT_MIN_VAL
2424
#endif
2525

src/plugins/intel_gpu/src/kernel_selector/jitter.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1505,8 +1505,8 @@ JitConstants MakeTypeJitConstants(Datatype dataType, const std::string& macroNam
15051505
min_val = "-" + macroName + "_VAL_MAX";
15061506
val_one = "1.0h";
15071507
val_zero = "0.0h";
1508-
to_type = "_convert_half(v)";
1509-
to_type_sat = "_convert_half(v)";
1508+
to_type = "convert_half(v)";
1509+
to_type_sat = "convert_half(v)";
15101510
as_type = "as_half(v)";
15111511
max_func = "fmax";
15121512
min_func = "fmin";
@@ -1579,8 +1579,8 @@ JitConstants MakeTypeJitConstants(Datatype dataType, const std::string& macroNam
15791579
min_val = "-" + macroName + "_VAL_MAX";
15801580
val_one = "1.0f";
15811581
val_zero = "0.0f";
1582-
to_type = "_convert_float(v)";
1583-
to_type_sat = "_convert_float(v)";
1582+
to_type = "convert_float(v)";
1583+
to_type_sat = "convert_float(v)";
15841584
as_type = "as_float(v)";
15851585
max_func = "fmax";
15861586
min_func = "fmin";

0 commit comments

Comments
 (0)