File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -388,6 +388,8 @@ typedef enum {
388
388
PI_MEM_TYPE_IMAGE1D_BUFFER = CL_MEM_OBJECT_IMAGE1D_BUFFER
389
389
} _pi_mem_type;
390
390
391
+ typedef pi_int32 _pi_mem_advice;
392
+
391
393
typedef enum {
392
394
PI_IMAGE_CHANNEL_ORDER_A = CL_A,
393
395
PI_IMAGE_CHANNEL_ORDER_R = CL_R,
@@ -517,7 +519,7 @@ using pi_fp_capabilities = _pi_fp_capabilities;
517
519
using pi_event_info = _pi_event_info;
518
520
using pi_command_type = _pi_command_type;
519
521
using pi_mem_type = _pi_mem_type;
520
- using pi_mem_advice = pi_int32 ;
522
+ using pi_mem_advice = _pi_mem_advice ;
521
523
using pi_image_channel_order = _pi_image_channel_order;
522
524
using pi_image_channel_type = _pi_image_channel_type;
523
525
using pi_buffer_create_type = _pi_buffer_create_type;
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ int main() {
36
36
if (s_head == nullptr ) {
37
37
return -1 ;
38
38
}
39
- q.mem_advise (s_head, sizeof (Node), PI_MEM_ADVICE_SET_READ_MOSTLY );
39
+ q.mem_advise (s_head, sizeof (Node), 0 );
40
40
Node *s_cur = s_head;
41
41
42
42
for (int i = 0 ; i < numNodes; i++) {
@@ -47,7 +47,7 @@ int main() {
47
47
if (s_cur->pNext == nullptr ) {
48
48
return -1 ;
49
49
}
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 );
51
51
} else {
52
52
s_cur->pNext = nullptr ;
53
53
}
You can’t perform that action at this time.
0 commit comments