Skip to content

Commit

Permalink
Allow recursion in kernels in the context of constant evaluation
Browse files Browse the repository at this point in the history
This should address #267
  • Loading branch information
keryell committed Mar 22, 2023
1 parent 786a7a0 commit 96f1e0e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion adoc/chapters/device_compiler.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,8 @@ these restrictions:
* Exception-handling cannot be used inside a
<<device-function>>.
[code]#noexcept# is allowed.
* Recursion is not allowed in a <<device-function>>.
* Recursion is not allowed in a <<device-function>> except in a
constant evaluation.
* Variables with thread storage duration ([code]#thread_local#
storage class specifier) are not allowed to be odr-used in a
<<device-function>>.
Expand Down

0 comments on commit 96f1e0e

Please sign in to comment.