Get the latest tech news

Zig and GPUs


programming used to mean wrangling C++ compilers, bloated SDKs, and vendor-specific toolchains. That’s changing.

After roughly 4 years, the self-hosted SPIR-V backend is now mature enough to experiment with and port basic shaders and compute kernels. Zig can also use LLVM to directly generate PTX (NVIDIA) and AMDGCN (AMD) code, producing native binaries that can be loaded at runtime. For example, unlike Zig or OpenCL, some Vulkan instructions ( fma, sqrt, exp, log) do NOT guarantee correctly rounded results.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of GPUs

GPUs

Related news:

News photo

Nvidia writes off $5.5 billion in GPUs as US gov't chokes off supply of H20s to China | AMD's Instinct MI308 reportedly gets export restrictions too.

News photo

EGPU: Extending eBPF Programmability and Observability to GPUs

News photo

Parasail says its fleet of on-demand GPUs is larger than Oracle’s entire cloud