We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
return
return nothing
I use JuliaFormatter to format my source code. This adds explicit return statements. This leads to
JuliaFormatter
ERROR: LoadError: Return statement not permitted in a kernel function sum2_kernel!
even if the return statement is just return nothing.
At the same time, ending a kernel with an expression (which is equivalent to a return statement) is allowed.
Could this check be changed to allow only empty return or return nothing statements?
The text was updated successfully, but these errors were encountered:
KernelAbstractions will politly ignore those and insert a return nothing for you. But yes we could explicitly allow return or return nothing
Sorry, something went wrong.
Closed by #446.
No branches or pull requests
I use
JuliaFormatter
to format my source code. This adds explicitreturn
statements. This leads toeven if the
return
statement is justreturn nothing
.At the same time, ending a kernel with an expression (which is equivalent to a
return
statement) is allowed.Could this check be changed to allow only empty
return
orreturn nothing
statements?The text was updated successfully, but these errors were encountered: