[GPU] Fixed AS_TYPE macro usage (#8276)
This commit is contained in:
parent
8fb699a42c
commit
c1a352a136
@ -6,8 +6,6 @@
|
||||
#include "include/batch_headers/fetch_data.cl"
|
||||
#include "include/mmad.cl"
|
||||
|
||||
#define AS_TYPE(type, val) CAT(as_, type)(val)
|
||||
|
||||
#ifdef ACCUMULATOR_TYPE
|
||||
#undef ACCUMULATOR_TYPE
|
||||
#endif
|
||||
|
@ -7,7 +7,6 @@
|
||||
#include "include/imad.cl"
|
||||
|
||||
#define CEIL_DIV(x, y) (1 + ((x) - 1) / (y))
|
||||
#define AS_TYPE(type, val) CAT(as_, type)(val)
|
||||
|
||||
#define ISV 4
|
||||
|
||||
|
@ -7,7 +7,6 @@
|
||||
#include "include/imad.cl"
|
||||
|
||||
#define CEIL_DIV(x, y) (1 + ((x) - 1) / (y))
|
||||
#define AS_TYPE(type, val) CAT(as_, type)(val)
|
||||
|
||||
#ifdef ACCUMULATOR_TYPE
|
||||
#undef ACCUMULATOR_TYPE
|
||||
|
@ -17,8 +17,6 @@
|
||||
|
||||
#define MMAD CAT(MMAD_, SUB_GROUP_SIZE)
|
||||
|
||||
#define AS_TYPE(type, val) CAT(as_, type)(val)
|
||||
|
||||
__attribute__((intel_reqd_sub_group_size(SUB_GROUP_SIZE)))
|
||||
KERNEL(fully_connected_gpu_MMAD)(
|
||||
const __global INPUT0_TYPE* input,
|
||||
@ -302,4 +300,3 @@ KERNEL(fully_connected_gpu_MMAD)(
|
||||
#undef BLOCK_READ_8
|
||||
|
||||
#undef MMAD
|
||||
#undef AS_TYPE
|
||||
|
@ -8,7 +8,6 @@
|
||||
|
||||
#define PACK_SIZE 4
|
||||
|
||||
#define AS_TYPE(type, val) CAT(as_, type)(val)
|
||||
#define ACCUMULATOR_TYPE_VEC CAT(ACCUMULATOR_TYPE, SUB_GROUP_SIZE)
|
||||
#define ACTIVATION_TYPE_VEC CAT(ACTIVATION_TYPE, SUB_GROUP_SIZE)
|
||||
#define PACKED_INPUT0_TYPE_VEC CAT(PACKED_INPUT0_TYPE, SUB_GROUP_SIZE)
|
||||
@ -498,7 +497,6 @@ KERNEL(gemm_mmad_int8)(
|
||||
#endif // OUTPUT_LEFTOVERS_M || OUTPUT_LEFTOVERS_N || OUTPUT_LEFTOVERS_K
|
||||
|
||||
#undef PACK_SIZE
|
||||
#undef AS_TYPE
|
||||
#undef ACCUMULATOR_TYPE_VEC
|
||||
#undef ACTIVATION_TYPE_VEC
|
||||
#undef PACKED_INPUT0_TYPE_VEC
|
||||
|
@ -6,7 +6,6 @@
|
||||
#include "include/batch_headers/fetch_data.cl"
|
||||
#include "include/mmad.cl"
|
||||
|
||||
#define AS_TYPE(type, val) CAT(as_, type)(val)
|
||||
#define ACCUMULATOR_TYPE_VEC CAT(ACCUMULATOR_TYPE, SUB_GROUP_SIZE)
|
||||
#define ACTIVATION_TYPE_VEC CAT(ACTIVATION_TYPE, SUB_GROUP_SIZE)
|
||||
#define PACKED_INPUT0_TYPE_VEC CAT(PACKED_INPUT0_TYPE, SUB_GROUP_SIZE)
|
||||
@ -212,7 +211,6 @@ KERNEL(gemm_mmad_int8_slm)(
|
||||
}
|
||||
}
|
||||
|
||||
#undef AS_TYPE
|
||||
#undef ACCUMULATOR_TYPE_VEC
|
||||
#undef ACTIVATION_TYPE_VEC
|
||||
#undef PACKED_INPUT0_TYPE_VEC
|
||||
|
@ -4,7 +4,6 @@
|
||||
|
||||
#include "include/batch_headers/data_types.cl"
|
||||
#include "include/batch_headers/fetch_data.cl"
|
||||
#include "include/batch_headers/data_types.cl"
|
||||
|
||||
#define ALIGN_TO(val, multiple) (((val) + (multiple) - 1) / (multiple) * (multiple))
|
||||
|
||||
|
@ -4,7 +4,6 @@
|
||||
|
||||
#include "include/batch_headers/data_types.cl"
|
||||
#include "include/batch_headers/fetch_data.cl"
|
||||
#include "include/batch_headers/data_types.cl"
|
||||
|
||||
#define ALIGN_TO(val, multiple) (((val) + (multiple) - 1) / (multiple) * (multiple))
|
||||
|
||||
|
@ -4,11 +4,9 @@
|
||||
|
||||
#include "include/batch_headers/data_types.cl"
|
||||
#include "include/batch_headers/fetch_data.cl"
|
||||
#include "include/batch_headers/data_types.cl"
|
||||
|
||||
#define ALIGN_TO(val, multiple) (((val) + (multiple)-1) / (multiple) * (multiple))
|
||||
|
||||
#define AS_TYPE(type, val) CAT(as_, type)(val)
|
||||
#define IN_VEC16 MAKE_VECTOR_TYPE(INPUT0_TYPE, 16)
|
||||
#define OUT_VEC16 MAKE_VECTOR_TYPE(OUTPUT_TYPE, 16)
|
||||
#define CONVERT_OUT CAT(convert_, OUTPUT_TYPE)
|
||||
@ -167,7 +165,6 @@ KERNEL(pooling_gpu_bs_fs_yx_bsv16_fsv16)(const __global INPUT0_TYPE* input,
|
||||
}
|
||||
|
||||
#undef ALIGN_TO
|
||||
#undef AS_TYPE
|
||||
#undef IN_VEC16
|
||||
#undef OUT_VEC16
|
||||
#undef CONVERT_OUT
|
||||
|
Loading…
Reference in New Issue
Block a user