[libc-commits] [PATCH] D148485: [libc] Add the '--threads' and '--blocks' option to the GPU loaders

Joseph Huber via Phabricator via libc-commits libc-commits at lists.llvm.org
Sun Apr 16 17:53:45 PDT 2023


jhuber6 created this revision.
jhuber6 added reviewers: jdoerfert, tianshilei1992, JonChesterfield, lntue, sivachandra, tra.
Herald added subscribers: libc-commits, kosarev, mattd, asavonic, ecnelises, kerbowa, tschuett, Anastasia, jvesely.
Herald added projects: libc-project, All.
jhuber6 requested review of this revision.

We will want to test the GPU `libc` with multiple threads in the future.
This patch adds the `--threads` and `--blocks` option to set the `x`
dimension of the kernel. Using CUDA terminology instead of OpenCL for
familiarity.

Depends on D148288 <https://reviews.llvm.org/D148288> D148342 <https://reviews.llvm.org/D148342>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D148485

Files:
  libc/utils/gpu/loader/Loader.h
  libc/utils/gpu/loader/Main.cpp
  libc/utils/gpu/loader/amdgpu/Loader.cpp
  libc/utils/gpu/loader/nvptx/Loader.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D148485.514072.patch
Type: text/x-patch
Size: 4533 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230417/db46789f/attachment.bin>


More information about the libc-commits mailing list