Add simple tid kernel that has zero arguments

This commit is contained in:
Hansung Kim
2023-09-20 17:31:14 -07:00
parent 3846d2ae59
commit 905b1877fb
4 changed files with 299 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
__kernel void tid()
{
__global int *out = (__global int *)0xc0000000;
int gid = get_global_id(0);
out[gid] = gid;
}