Sign in
llvm
/
llvm-project
/
0110168f6aa5c8a8d02ffd9e62c7929ce6d24d26
/
.
/
offload
/
unittests
/
OffloadAPI
/
device_code
/
global_dtor.c
blob: cadcc19cc296b2a6bdbda72eef6bd0b75d2c8128 [
file
]
#include
<gpuintrin.h>
#include
<stdint.h>
uint32_t
global
[
64
];
[[
gnu
::
destructor
]]
void
dtor
()
{
for
(
unsigned
I
=
0
;
I
<
64
;
I
++)
global
[
I
]
=
1
;
}
__gpu_kernel
void
global_dtor
()
{
// no-op
}