[GPU] Use unique symbol name for typedef (#16777)

This commit is contained in:
Mingyu Kim
2023-04-07 09:03:28 +09:00
committed by GitHub
parent 24ab3f7c41
commit e17a6f29bf
2 changed files with 4 additions and 2 deletions

View File

@@ -86,7 +86,7 @@ KERNEL(edgpsi_ref_stage_0)
#endif /* EDGPSI_STAGE_0 */
#ifdef EDGPSI_STAGE_1
#define Box FUNC(_Box)
typedef struct __attribute__((__packed__)) {
INPUT0_TYPE x0;
INPUT0_TYPE y0;
@@ -181,6 +181,7 @@ KERNEL(edgpsi_ref_stage_1)(__global OUTPUT_TYPE* proposals) {
FUNC_CALL(quickSortIterative)(boxes, 0, NUM_PROPOSALS-1);
}
#undef Box
#endif /* EDGPSI_STAGE_1 */
#ifdef EDGPSI_STAGE_2

View File

@@ -92,7 +92,7 @@ KERNEL(generate_proposals_ref_stage_0)
#endif /* GENERATE_PROPOSALS_STAGE_0 */
#ifdef GENERATE_PROPOSALS_STAGE_1
#define Box FUNC(__Box)
typedef struct __attribute__((__packed__)) {
INPUT0_TYPE x0;
INPUT0_TYPE y0;
@@ -190,6 +190,7 @@ KERNEL(generate_proposals_ref_stage_1)(__global OUTPUT_TYPE* proposals) {
FUNC_CALL(quickSortIterative)(boxes, 0, NUM_PROPOSALS-1);
}
#undef Box
#endif /* GENERATE_PROPOSALS_STAGE_1 */
#ifdef GENERATE_PROPOSALS_STAGE_2