Skip to content

Commit 0a45913

Browse files
committed
_print docstring
1 parent 2371f88 commit 0a45913

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

src/intrinsics.jl

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,20 @@ function barrier()
8989
error("Group barrier used outside kernel or not captured")
9090
end
9191

92-
# TODO
92+
"""
93+
_print(items...)
94+
95+
Overloaded by backends to enable `KernelAbstractions.@print`
96+
functionality.
97+
98+
!!! note
99+
Backend implementations **must** implement:
100+
```
101+
_print(items...)
102+
```
103+
As well as the on-device functionality,
104+
or define it to return `nothing`
105+
"""
93106
@generated function _print(items...)
94107
str = ""
95108
args = []

0 commit comments

Comments
 (0)