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

[libc] Implement (v|f)printf on the GPU #96369

Merged
merged 1 commit into from
Jul 13, 2024
Merged

Commits on Jul 12, 2024

  1. [libc] Implement (v|f)printf on the GPU

    Summary:
    This patch implements the `printf` family of functions on the GPU using
    the new variadic support. This patch adapts the old handling in the
    `rpc_fprintf` placeholder, but adds an extra RPC call to get the size of
    the buffer to copy. This prevents the GPU from needing to parse the
    string. While it's theoretically possible for the pass to know the size
    of the struct, it's prohibitively difficult to do while maintaining ABI
    compatibility with NVIDIA's varargs.
    
    Depends on llvm#96015.
    jhuber6 committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    8e6a550 View commit details
    Browse the repository at this point in the history