-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve docstring for kernel_api functions.
- Makes sure that summary fits on one line. - Add links to sycl specs - Adds some missing Args and Return tags to docstring.
- Loading branch information
Diptorup Deb
committed
Mar 29, 2024
1 parent
b6a13b0
commit c478b77
Showing
11 changed files
with
197 additions
and
121 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,56 @@ | ||
# SPDX-FileCopyrightText: 2020 - 2024 Intel Corporation | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
"""Links to the SYCL 2020 specification that are used in docstring. | ||
The module provides a dictionary in the format needed by the sphinx.ext.extlinks | ||
extension. | ||
""" | ||
|
||
sycl_ext_links = { | ||
"sycl_item": ( | ||
"https://registry.khronos.org/SYCL/specs/sycl-2020/html/sycl-2020.html#subsec:item.class%s", | ||
None, | ||
), | ||
"sycl_group": ( | ||
"https://registry.khronos.org/SYCL/specs/sycl-2020/html/sycl-2020.html#group-class%s", | ||
None, | ||
), | ||
"sycl_nditem": ( | ||
"https://registry.khronos.org/SYCL/specs/sycl-2020/html/sycl-2020.html#subsec:nditem.class%s", | ||
None, | ||
), | ||
"sycl_ndrange": ( | ||
"https://registry.khronos.org/SYCL/specs/sycl-2020/html/sycl-2020.html#subsubsec:nd-range-class%s", | ||
None, | ||
), | ||
"sycl_range": ( | ||
"https://registry.khronos.org/SYCL/specs/sycl-2020/html/sycl-2020.html#range-class%s", | ||
None, | ||
), | ||
"sycl_atomic_ref": ( | ||
"https://registry.khronos.org/SYCL/specs/sycl-2020/html/sycl-2020.html#sec:atomic-references%s", | ||
None, | ||
), | ||
"sycl_local_accessor": ( | ||
"https://registry.khronos.org/SYCL/specs/sycl-2020/html/sycl-2020.html#sec:accessor.local%s", | ||
None, | ||
), | ||
"sycl_private_memory": ( | ||
"https://registry.khronos.org/SYCL/specs/sycl-2020/html/sycl-2020.html#_parallel_for_hierarchical_invoke%s", | ||
None, | ||
), | ||
"sycl_memory_scope": ( | ||
"https://registry.khronos.org/SYCL/specs/sycl-2020/html/sycl-2020.html#sec:memory-scope%s", | ||
None, | ||
), | ||
"sycl_memory_order": ( | ||
"https://registry.khronos.org/SYCL/specs/sycl-2020/html/sycl-2020.html#sec:memory-ordering%s", | ||
None, | ||
), | ||
"sycl_addr_space": ( | ||
"https://registry.khronos.org/SYCL/specs/sycl-2020/html/sycl-2020.html#_address_space_classes%s", | ||
None, | ||
), | ||
} |
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
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
Oops, something went wrong.