@@ -12,17 +12,17 @@ export get_work_dim,
12
12
13
13
@device_function get_work_dim () = @builtin_ccall (" get_work_dim" , UInt32, ()) % Int
14
14
15
- @device_function get_global_size (dimindx:: Integer = 1 u32) = @builtin_ccall (" get_global_size" , UInt, (UInt32,), dimindx- 1 u32) % Int
16
- @device_function get_global_id (dimindx:: Integer = 1 u32) = @builtin_ccall (" get_global_id" , UInt, (UInt32,), dimindx- 1 u32) % Int + 1
15
+ @device_function get_global_size (dimindx:: Integer = 1 u32) = @builtin_ccall (" get_global_size" , UInt, (UInt32,), dimindx - 1 u32) % Int
16
+ @device_function get_global_id (dimindx:: Integer = 1 u32) = @builtin_ccall (" get_global_id" , UInt, (UInt32,), dimindx - 1 u32) % Int + 1
17
17
18
- @device_function get_local_size (dimindx:: Integer = 1 u32) = @builtin_ccall (" get_local_size" , UInt, (UInt32,), dimindx- 1 u32) % Int
19
- @device_function get_enqueued_local_size (dimindx:: Integer = 1 u32) = @builtin_ccall (" get_enqueued_local_size" , UInt, (UInt32,), dimindx- 1 ) % Int
20
- @device_function get_local_id (dimindx:: Integer = 1 u32) = @builtin_ccall (" get_local_id" , UInt, (UInt32,), dimindx- 1 u32) % Int + 1
18
+ @device_function get_local_size (dimindx:: Integer = 1 u32) = @builtin_ccall (" get_local_size" , UInt, (UInt32,), dimindx - 1 u32) % Int
19
+ @device_function get_enqueued_local_size (dimindx:: Integer = 1 u32) = @builtin_ccall (" get_enqueued_local_size" , UInt, (UInt32,), dimindx - 1 ) % Int
20
+ @device_function get_local_id (dimindx:: Integer = 1 u32) = @builtin_ccall (" get_local_id" , UInt, (UInt32,), dimindx - 1 u32) % Int + 1
21
21
22
- @device_function get_num_groups (dimindx:: Integer = 1 u32) = @builtin_ccall (" get_num_groups" , UInt, (UInt32,), dimindx- 1 u32) % Int
23
- @device_function get_group_id (dimindx:: Integer = 1 u32) = @builtin_ccall (" get_group_id" , UInt, (UInt32,), dimindx- 1 u32) % Int + 1
22
+ @device_function get_num_groups (dimindx:: Integer = 1 u32) = @builtin_ccall (" get_num_groups" , UInt, (UInt32,), dimindx - 1 u32) % Int
23
+ @device_function get_group_id (dimindx:: Integer = 1 u32) = @builtin_ccall (" get_group_id" , UInt, (UInt32,), dimindx - 1 u32) % Int + 1
24
24
25
- @device_function get_global_offset (dimindx:: Integer = 1 u32) = @builtin_ccall (" get_global_offset" , UInt, (UInt32,), dimindx- 1 u32) % Int + 1
25
+ @device_function get_global_offset (dimindx:: Integer = 1 u32) = @builtin_ccall (" get_global_offset" , UInt, (UInt32,), dimindx - 1 u32) % Int + 1
26
26
27
27
@device_function get_global_linear_id () = @builtin_ccall (" get_global_linear_id" , UInt, ()) % Int + 1
28
28
@device_function get_local_linear_id () = @builtin_ccall (" get_local_linear_id" , UInt, ()) % Int + 1
0 commit comments