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.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of GPUs

GPUs

Photo of libc

libc

Related news:

News photo

How AMD Is Taking Standard C/C++ Code To Run Directly On GPUs

News photo

John Carmack imagines a future where GPUs don't need PCs

News photo

Wrote a custom libc for POSIX and x86-64