Get the latest tech news
Using Libc for GPUs
libc for GPUs¶ 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.
Including the wrapper headers, linking the C library, and running the RPC server are all handled automatically by the compiler and runtime. The startup utility in lib/amdgcn-amd-amdhsa/crt1.o will handle the necessary steps to execute the main function along with global initializers and command line arguments. A utility called clang-nvlink-wrapper instead wraps around the standard link job to give the illusion that nvlink is a functional linker.
Or read this on Hacker News