We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca11482 commit d6f3e66Copy full SHA for d6f3e66
src/KernelAbstractions.jl
@@ -369,6 +369,25 @@ macro context()
369
return esc(:(__ctx__))
370
end
371
372
+# Defined to keep cpu support for `__print`
373
+@generated function KernelIntrinsics._print(items...)
374
+ str = ""
375
+ args = []
376
+
377
+ for i in 1:length(items)
378
+ item = :(items[$i])
379
+ T = items[i]
380
+ if T <: Val
381
+ item = QuoteNode(T.parameters[1])
382
+ end
383
+ push!(args, item)
384
385
386
+ return quote
387
+ print($(args...))
388
389
+end
390
391
"""
392
@print(items...)
393
0 commit comments