Debian Codegraph @

offload/unittests/OffloadAPI/device_code/global_dtor.cpp

raw
1 #include <gpuintrin.h>
2 #include <stdint.h>
3
4 extern "C" {
5
6 uint32_t global[64];
7
8 [[gnu::destructor]] void dtor() {
9 for (unsigned I = 0; I < 64; I++)
10 global[I] = 1;
11 }
12
13 __gpu_kernel void global_dtor() {
14 // no-op
15 }
16 } // extern "C"