-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
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
Add printf support #163
base: main
Are you sure you want to change the base?
Add printf support #163
Conversation
src/KernelAbstractions.jl
Outdated
# @sprintf($sfmt, $(args...)) | ||
@print(@sprintf($sfmt, $(args...))) | ||
# @print("test") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# @sprintf($sfmt, $(args...)) | |
@print(@sprintf($sfmt, $(args...))) | |
# @print("test") | |
@printf($sfmt, $(args...)) |
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This results in a StackOverflowError
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe it should be Base.@printf
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, yes. Needed Printf.@printf
Co-authored-by: Simon Byrne <simonbyrne@gmail.com>
fe34241
to
4a3acad
Compare
Let's see if CI passes. bors try |
tryBuild failed: |
CI fails with: (link to CI log)
|
This is my first pass at adding
printf
support. I'm still experimenting, but I may need help with this!