brintos

brintos / llvm-project-archived public Read only

0
0
Text · 235 B · 6b1f941 Raw
17 lines · cpp
1#include <gpuintrin.h>2#include <stdint.h>3 4extern "C" {5 6uint32_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-op15}16} // extern "C"17