[OpenMP] Implicitly include the 'cgpu' and 'mgpu' libraries for OpenMP (#67557)
Summary: [The LLVM C library for GPUs](https://libc.llvm.org/gpu/) supports standard function calls on the GPU that users are familiar with. Currently, this requires that users include these manually. The support for this library is dependent upon whether or not associated LLVM build was built with the GPU C library support. This patch implicitly adds these for an OpenMP offloading compilation if we find that the toolchain contains the GPU declarations that allow us to use this. I do not know how to test this, given that it requires information from the resource directory in the install. That means it won't be present for any internal tests. It works when I test it and the idea is simple enough so it should be simple enough.
Loading
Please sign in to comment