Skip to content

Commit 6aea198

Browse files
committed
[SYCL] fix ABI test
Signed-off-by: Sergey V Maslov <[email protected]>
1 parent 4d10153 commit 6aea198

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

sycl/include/CL/sycl/detail/pi.h

100644100755
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,8 @@ typedef enum {
388388
PI_MEM_TYPE_IMAGE1D_BUFFER = CL_MEM_OBJECT_IMAGE1D_BUFFER
389389
} _pi_mem_type;
390390

391+
typedef pi_int32 _pi_mem_advice;
392+
391393
typedef enum {
392394
PI_IMAGE_CHANNEL_ORDER_A = CL_A,
393395
PI_IMAGE_CHANNEL_ORDER_R = CL_R,
@@ -517,7 +519,7 @@ using pi_fp_capabilities = _pi_fp_capabilities;
517519
using pi_event_info = _pi_event_info;
518520
using pi_command_type = _pi_command_type;
519521
using pi_mem_type = _pi_mem_type;
520-
using pi_mem_advice = pi_int32;
522+
using pi_mem_advice = _pi_mem_advice;
521523
using pi_image_channel_order = _pi_image_channel_order;
522524
using pi_image_channel_type = _pi_image_channel_type;
523525
using pi_buffer_create_type = _pi_buffer_create_type;

sycl/test/usm/memadvise.cpp

100644100755
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ int main() {
3636
if (s_head == nullptr) {
3737
return -1;
3838
}
39-
q.mem_advise(s_head, sizeof(Node), PI_MEM_ADVICE_SET_READ_MOSTLY);
39+
q.mem_advise(s_head, sizeof(Node), 0);
4040
Node *s_cur = s_head;
4141

4242
for (int i = 0; i < numNodes; i++) {
@@ -47,7 +47,7 @@ int main() {
4747
if (s_cur->pNext == nullptr) {
4848
return -1;
4949
}
50-
q.mem_advise(s_cur->pNext, sizeof(Node), PI_MEM_ADVICE_SET_READ_MOSTLY);
50+
q.mem_advise(s_cur->pNext, sizeof(Node), 0);
5151
} else {
5252
s_cur->pNext = nullptr;
5353
}

0 commit comments

Comments
 (0)