You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
153 B
13 lines
153 B
2 years ago
|
__device__ int foo_func(int);
|
||
|
|
||
|
void __global__ bar_kernel(int x)
|
||
|
{
|
||
|
foo_func(x);
|
||
|
}
|
||
|
|
||
|
int launch_kernel(int x)
|
||
|
{
|
||
|
bar_kernel<<<1, 1>>>(x);
|
||
|
return x;
|
||
|
}
|