1 // RUN: %libomptarget-compile-run-and-check-generic
10 #include "register_non_emi.h"
14 int main(int argc
, char **argv
) {
18 h_a
= (int *)malloc(N
* sizeof(int));
21 d_a
= (int *)omp_target_alloc(N
* sizeof(int), omp_get_default_device());
23 omp_target_associate_ptr(h_a
, d_a
, N
* sizeof(int), 0,
24 omp_get_default_device());
25 omp_target_disassociate_ptr(h_a
, omp_get_default_device());
27 omp_target_free(d_a
, omp_get_default_device());
34 /// CHECK: Callback Init:
35 /// CHECK: Callback DataOp: target_id=[[TARGET_ID:[0-9]+]] host_op_id=[[HOST_OP_ID:[0-9]+]] optype=1
36 /// CHECK: Callback DataOp: target_id=[[TARGET_ID:[0-9]+]] host_op_id=[[HOST_OP_ID:[0-9]+]] optype=5
37 /// CHECK: Callback DataOp: target_id=[[TARGET_ID:[0-9]+]] host_op_id=[[HOST_OP_ID:[0-9]+]] optype=6
38 /// CHECK: Callback DataOp: target_id=[[TARGET_ID:[0-9]+]] host_op_id=[[HOST_OP_ID:[0-9]+]] optype=4
39 /// CHECK: Callback Fini: