Sign in
llvm
/
llvm-project
/
a32d88b79abaaab46cb1580d75df7422d0a9e4d3
/
.
/
offload
/
unittests
/
OffloadAPI
/
device_code
/
global_dtor.cpp
blob: 6b1f941342b40f6414adb81630c25cd27ebabfac [
file
] [
log
] [
blame
]
#include
<gpuintrin.h>
#include
<stdint.h>
extern
"C"
{
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
}
}
// extern "C"