2 // RUN: %libomptarget-compile-generic
3 // RUN: %not --crash env -u LLVM_DISABLE_SYMBOLIZATION OFFLOAD_TRACK_NUM_KERNEL_LAUNCH_TRACES=24 %libomptarget-run-generic 2>&1 | %fcheck-generic --check-prefixes=CHECK,NDEBG
4 // RUN: %libomptarget-compile-generic -g
5 // RUN: %not --crash env -u LLVM_DISABLE_SYMBOLIZATION OFFLOAD_TRACK_NUM_KERNEL_LAUNCH_TRACES=16 %libomptarget-run-generic 2>&1 | %fcheck-generic --check-prefixes=CHECK,DEBUG
8 // UNSUPPORTED: nvptx64-nvidia-cuda
9 // UNSUPPORTED: nvptx64-nvidia-cuda-LTO
10 // UNSUPPORTED: aarch64-unknown-linux-gnu
11 // UNSUPPORTED: aarch64-unknown-linux-gnu-LTO
12 // UNSUPPORTED: x86_64-unknown-linux-gnu
13 // UNSUPPORTED: x86_64-unknown-linux-gnu-LTO
14 // UNSUPPORTED: s390x-ibm-linux-gnu
15 // UNSUPPORTED: s390x-ibm-linux-gnu-LTO
21 for (int i
= 0; i
< 10; ++i
) {
31 // CHECK: Display 8 of the 8 last kernel launch traces
32 // CHECK: Kernel 0: {{.*}} (__omp_offloading_{{.*}}_main_l26)
33 // CHECK: launchKernel
35 // DEBUG: main {{.*}}kernel_crash_many.c:26
37 // CHECK: Kernel 1: {{.*}} (__omp_offloading_{{.*}}_main_l22)
38 // CHECK: launchKernel
40 // DEBUG: main {{.*}}kernel_crash_many.c:
42 // CHECK: Kernel 2: {{.*}} (__omp_offloading_{{.*}}_main_l22)
43 // CHECK: launchKernel
45 // DEBUG: main {{.*}}kernel_crash_many.c:
47 // CHECK: Kernel 3: {{.*}} (__omp_offloading_{{.*}}_main_l22)
48 // CHECK: launchKernel
50 // DEBUG: main {{.*}}kernel_crash_many.c:
52 // CHECK: Kernel 4: {{.*}} (__omp_offloading_{{.*}}_main_l22)
53 // CHECK: launchKernel
55 // DEBUG: main {{.*}}kernel_crash_many.c:
57 // CHECK: Kernel 5: {{.*}} (__omp_offloading_{{.*}}_main_l22)
58 // CHECK: launchKernel
60 // DEBUG: main {{.*}}kernel_crash_many.c:
62 // CHECK: Kernel 6: {{.*}} (__omp_offloading_{{.*}}_main_l22)
63 // CHECK: launchKernel
65 // DEBUG: main {{.*}}kernel_crash_many.c:
67 // CHECK: Kernel 7: {{.*}} (__omp_offloading_{{.*}}_main_l22)
68 // CHECK: launchKernel
70 // DEBUG: main {{.*}}kernel_crash_many.c:
72 // CHECK-NOT: Kernel {{[[0-9]]+}}: