[libc-commits] [PATCH] D138856: [libc][docs] Add documentation for the new GPU mode

Joseph Huber via Phabricator via libc-commits libc-commits at lists.llvm.org
Tue Nov 29 04:56:29 PST 2022


jhuber6 added a comment.

In D138856#3956592 <https://reviews.llvm.org/D138856#3956592>, @tschuett wrote:

> In the original diff, you hinted at that there is currently no support for malloc and free. Could you inspect the archive with llvm-nm for unsupported functions?

The device code is embedded inside the objects so `llvm-nm` won't show the interesting symbols, but we could probably tell by name. The functions listed in the `Supported Functions` header is intended to be an inclusive list. Implementing `malloc` and `free` will require an RPC mechanism to call the host OS from the GPU which we're still working on. I could make this more clear in the current documentation.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D138856



More information about the libc-commits mailing list