Sign in
llvm
/
llvm-project.git
/
refs/heads/main
/
.
/
offload
/
unittests
/
OffloadAPI
/
device_code
/
multiargs.cpp
blob: 712512b964d27fee9871d4d69740fa40d91e1a72 [
file
] [
edit
]
#include
<gpuintrin.h>
extern
"C"
__gpu_kernel
void
multiargs
(
char
A
,
int
*
B
,
short
C
)
{
B
[
__gpu_thread_id
(
0
)]
=
A
+
C
+
__gpu_thread_id
(
0
);
}