Skip to content
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 an fmt::print()-like function #2

Open
eyalroz opened this issue Jun 23, 2021 · 0 comments
Open

Add an fmt::print()-like function #2

eyalroz opened this issue Jun 23, 2021 · 0 comments
Assignees
Labels
task A task which needs to be carried out

Comments

@eyalroz
Copy link
Owner

eyalroz commented Jun 23, 2021

The fmt library's fmt::print() function targets the stdout stream, so we can't use it. However, we should be able to adapt it, or most of it, to use CUDA's printf() function. Let's do that.

... this is not so trivial, since while fmt may be willing to call system library functions several times, even at the level of a single characters, we mustn't do that - to avoid different threads' printing getting jumbled on the same line. That means we have to be more pro-active with buffering. But that means we're in the dilemma of static vs dynamic sizing of a buffer etc.

@eyalroz eyalroz added the task A task which needs to be carried out label Jun 23, 2021
@eyalroz eyalroz self-assigned this Jun 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
task A task which needs to be carried out
Projects
None yet
Development

No branches or pull requests

1 participant