[libc-commits] [PATCH] D148635: [libc] Add a support library for GPU utilities

Jon Chesterfield via Phabricator via libc-commits libc-commits at lists.llvm.org
Tue Apr 18 09:47:52 PDT 2023


JonChesterfield added a comment.

It seems like an abstraction over these things shows up in essentially every GPU codebase. I think they're a good candidate for clang intrinsics that translate to the corresponding platform specific incantation.

However there are currently no such intrinsics and it's hard to anticipate how well received such a proposal would be so I'm very much I'm favour of the approach you're taking here. Long term maybe the file would shrink to zero as intrinsics are created.

It seems credible that this could be a header only library. I know openmp devicertl does it's own thing based around variant dispatch but maybe it wouldn't be the worst thing to include header files from libc for part of that. It would use intrinsics if they existed I think.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D148635



More information about the libc-commits mailing list