Skip to content

Commit

Permalink
PR openxla#13058: Use BufferF32 instead of Buffer in GPU FFI example
Browse files Browse the repository at this point in the history
Imported from GitHub PR openxla#13058

Copybara import of the project:

--
5db8e9e by Andrey Portnoy <aportnoy@nvidia.com>:

Use `BufferF32` instead of `Buffer` in GPU FFI example

Merging this change closes openxla#13058

COPYBARA_INTEGRATE_REVIEW=openxla#13058 from openxla:aportnoy/fix-ffi-docs-buffer 5db8e9e
PiperOrigin-RevId: 640072298
andportnoy authored and copybara-github committed Jun 4, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 8ac30ef commit 67f1815
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/custom_call.md
Original file line number Diff line number Diff line change
@@ -116,9 +116,9 @@ void do_custom_call(CUstream stream, BufferF32 in0, BufferF32 in1,
XLA_FFI_DEFINE_HANDLER(handler, do_custom_call,
ffi::Ffi::Bind()
.Ctx<xla::ffi::PlatformStream<CUstream>>()
.Arg<Buffer>()
.Arg<Buffer>()
.Ret<Buffer>());
.Arg<BufferF32>()
.Arg<BufferF32>()
.Ret<BufferF32>());
XLA_FFI_REGISTER_HANDLER(xla::ffi::GetXlaFfiApi(), "do_custom_call",
"CUDA", handler);

0 comments on commit 67f1815

Please sign in to comment.