25 days ago · Tech · 0 comments

If you are a developer working with HLSL or GPU compilers you likely prefer working in Linux. You might have felt sidelined because Linux lacks a dedicated DirectX device. However, if you are on Windows, you have a powerful tool at your disposal: Windows Subsystem for Linux (WSL) 2.Since 2020, WSL 2 has supported DirectX, exposing the DxCore (libdxcore.so) and D3D12 (libd3d12.so) APIs. This bridge allows you to run the Offload test suite directly within your Linux environment by leveraging the underlying Windows hardware. What is the Offload Test Suite? The LLVM Offload Test Suite is an experimental runtime test suite designed specifically for HLSL (High-Level Shader Language). It provides a framework for verifying the correctness of GPU code generated by compilers like Clang and DXC. By using a YAML-based pipeline description, it allows developers to define GPU workloads, buffers, and expected results, which are then executed across various backends including DirectX 12, Vulkan, and…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.