[libc-commits] [PATCH] D151735: [libc] Implement basic `malloc` and `free` support on the GPU

Joseph Huber via Phabricator via libc-commits libc-commits at lists.llvm.org
Tue May 30 12:48:24 PDT 2023


jhuber6 added a comment.

In D151735#4381586 <https://reviews.llvm.org/D151735#4381586>, @JonChesterfield wrote:

> HSA should be fine allocating memory while kernels are running. At least it won't deadlock. Cuda needs a separate stream for various things, I think mmap succeeded without one but marking the result as GPU accessible deadlocks.
>
> I'm not sure whether 'malloc' should be GPU local or system wide by default.

We'll probably need to associate each one of these servers with a device and make that implicit for these opcodes.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D151735



More information about the libc-commits mailing list