Skip to content

Is there a replacement for printf in a kernel #389

Answered by eyalroz
EmmanuelMess asked this question in Q&A
Discussion options

You must be logged in to vote

That would be a device-side facility, while this is a host-side library. I had toyed with a cout-like stream in my cuda-kat library, but the implementation I had was incredibly slow to compile. For now, we have my additionals for this issue, which provides more of the C standard library's printf functionality, but can also serve as a basis for a stream-like facility; or better yet, an std::format / fmt::format-like function.

Are you sure you like the former rather than the latter?

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@EmmanuelMess
Comment options

@eyalroz
Comment options

Answer selected by EmmanuelMess
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants