Skip to content

Commit a07150b

Browse files
committed
1 parent a7483a1 commit a07150b

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

src/intrinsics.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
module KernelIntrinsics
22

33
"""
4-
get_global_size()::@NamedTuple{x::Int32, y::Int32, z::Int32}
4+
get_global_size()::@NamedTuple{x::Int, y::Int, z::Int}
55
66
Return the number of global work-items specified.
77
"""
88
function get_global_size end
99

1010
"""
11-
get_global_id()::@NamedTuple{x::Int32, y::Int32, z::Int32}
11+
get_global_id()::@NamedTuple{x::Int, y::Int, z::Int}
1212
1313
Returns the unique global work-item ID.
1414
@@ -18,14 +18,14 @@ Returns the unique global work-item ID.
1818
function get_global_id end
1919

2020
"""
21-
get_local_size()::@NamedTuple{x::Int32, y::Int32, z::Int32}
21+
get_local_size()::@NamedTuple{x::Int, y::Int, z::Int}
2222
2323
Return the number of local work-items specified.
2424
"""
2525
function get_local_size end
2626

2727
"""
28-
get_local_id()::@NamedTuple{x::Int32, y::Int32, z::Int32}
28+
get_local_id()::@NamedTuple{x::Int, y::Int, z::Int}
2929
3030
Returns the unique local work-item ID.
3131
@@ -35,14 +35,14 @@ Returns the unique local work-item ID.
3535
function get_local_id end
3636

3737
"""
38-
get_num_groups()::@NamedTuple{x::Int32, y::Int32, z::Int32}
38+
get_num_groups()::@NamedTuple{x::Int, y::Int, z::Int}
3939
4040
Returns the number of groups.
4141
"""
4242
function get_num_groups end
4343

4444
"""
45-
get_group_id()::@NamedTuple{x::Int32, y::Int32, z::Int32}
45+
get_group_id()::@NamedTuple{x::Int, y::Int, z::Int}
4646
4747
Returns the unique group ID.
4848

src/pocl/backend.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -143,27 +143,27 @@ end
143143
const KI = KA.KernelIntrinsics
144144

145145
@device_override @inline function KI.get_local_id()
146-
return (; x = get_local_id(1), y = get_local_id(2), z = get_local_id(3))
146+
return (; x = Int(get_local_id(1)), y = Int(get_local_id(2)), z = Int(get_local_id(3)))
147147
end
148148

149149
@device_override @inline function KI.get_group_id()
150-
return (; x = get_group_id(1), y = get_group_id(2), z = get_group_id(3))
150+
return (; x = Int(get_group_id(1)), y = Int(get_group_id(2)), z = Int(get_group_id(3)))
151151
end
152152

153153
@device_override @inline function KI.get_global_id()
154-
return (; x = get_global_id(1), y = get_global_id(2), z = get_global_id(3))
154+
return (; x = Int(get_global_id(1)), y = Int(get_global_id(2)), z = Int(get_global_id(3)))
155155
end
156156

157157
@device_override @inline function KI.get_local_size()
158-
return (; x = get_local_size(1), y = get_local_size(2), z = get_local_size(3))
158+
return (; x = Int(get_local_size(1)), y = Int(get_local_size(2)), z = Int(get_local_size(3)))
159159
end
160160

161161
@device_override @inline function KI.get_num_groups()
162-
return (; x = get_num_groups(1), y = get_num_groups(2), z = get_num_groups(3))
162+
return (; x = Int(get_num_groups(1)), y = Int(get_num_groups(2)), z = Int(get_num_groups(3)))
163163
end
164164

165165
@device_override @inline function KI.get_global_size()
166-
return (; x = get_global_size(1), y = get_global_size(2), z = get_global_size(3))
166+
return (; x = Int(get_global_size(1)), y = Int(get_global_size(2)), z = Int(get_global_size(3)))
167167
end
168168

169169
@device_override @inline function KA.__validindex(ctx)

0 commit comments

Comments
 (0)