Using libc for GPUs — The LLVM C Library
Table of Contents
Using the GPU C library
Offloading usage
OpenMP Offloading example
Binary format
Direct compilation
Building for AMDGPU targets
Building for NVPTX targets
Using the GPU C library¶
Once you have finished building the GPU C library it
can be used to run libc or libm functions directly on the GPU. Currently, not
all C standard functions are supported on the GPU. Consult the list of
supported functions for a comprehensive list.
The GPU C library supports two main usage modes. The f...
Read more at libc.llvm.org