[GPU] Use unique symbol name for typedef (#16777)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user