Sign in
fuchsia
/
third_party
/
github.com
/
Kitware
/
CMake
/
e7a06f93c281ed74a8001291165a879a34db7e89
/
.
/
Tests
/
CudaOnly
/
RuntimeControls
/
file1.cu
blob: 28beb5e87ff1fc4728c0827f19c5c9f5f1229707 [
file
] [
log
] [
blame
]
#ifdef
_WIN32
# define EXPORT __declspec(dllexport)
#else
# define EXPORT
#endif
void
__global__ file1_kernel
(
int
x
,
int
&
r
)
{
r
=
-
x
;
}
EXPORT
int
file1_launch_kernel
(
int
x
)
{
int
r
=
0
;
file1_kernel
<<<
1
,
1
>>>(
x
,
r
);
return
r
;
}