-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
83 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
module KernelIntrinsics | ||
|
||
""" | ||
get_global_size()::@NamedTuple{x::Int32, y::Int32, z::Int32} | ||
Return the number of global work-items specified. | ||
!!! note | ||
1-based. | ||
""" | ||
function get_global_size end | ||
|
||
""" | ||
get_global_id()::@NamedTuple{x::Int32, y::Int32, z::Int32} | ||
Returns the unique global work-item ID. | ||
""" | ||
function get_global_id end | ||
|
||
""" | ||
get_local_size()::@NamedTuple{x::Int32, y::Int32, z::Int32} | ||
Return the number of local work-items specified. | ||
""" | ||
function get_local_size end | ||
|
||
""" | ||
get_local_id()::@NamedTuple{x::Int32, y::Int32, z::Int32} | ||
Returns the unique local work-item ID. | ||
""" | ||
function get_local_id end | ||
|
||
""" | ||
get_num_groups()::@NamedTuple{x::Int32, y::Int32, z::Int32} | ||
Returns the number of groups. | ||
""" | ||
function get_num_groups end | ||
|
||
""" | ||
get_group_id()::@NamedTuple{x::Int32, y::Int32, z::Int32} | ||
Returns the unique group ID. | ||
""" | ||
function get_group_id end | ||
|
||
function localmemory end | ||
function barrier end | ||
function print end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters