[libc-commits] [PATCH] D153069: [libc][obvious] Actually return the value from `malloc` for NVPTX

Joseph Huber via Phabricator via libc-commits libc-commits at lists.llvm.org
Thu Jun 15 13:13:30 PDT 2023


This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG490958b9eabc: [libc][obvious] Actually return the value from `malloc` for NVPTX (authored by jhuber6).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D153069/new/

https://reviews.llvm.org/D153069

Files:
  libc/utils/gpu/loader/nvptx/Loader.cpp


Index: libc/utils/gpu/loader/nvptx/Loader.cpp
===================================================================
--- libc/utils/gpu/loader/nvptx/Loader.cpp
+++ libc/utils/gpu/loader/nvptx/Loader.cpp
@@ -190,6 +190,7 @@
           // Wait until the memory allocation is complete.
           while (cuStreamQuery(memory_stream) == CUDA_ERROR_NOT_READY)
             ;
+          buffer->data[0] = static_cast<uintptr_t>(dev_ptr);
         };
         rpc_recv_and_send(port, malloc_handler, data);
       },


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D153069.531888.patch
Type: text/x-patch
Size: 507 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230615/592cd8fa/attachment.bin>


More information about the libc-commits mailing list