cubecl-spirv 0.11.0

SPIR-V compiler for CubeCL
docs.rs failed to build cubecl-spirv-0.11.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: cubecl-spirv-0.12.0-pre.2

SPIR-V Compiler

This crate is a compiler for cubecl_ir that passes through cubecl_opt to generate directly SPIR-V. It is then run with the cubecl-wgpu runtime.

How to debug SPIR-V errors

  1. Ensure that VK_LAYER_KHRONOS_validation is installed, it is not enabled by default on most linux distro.

For ubuntu, install it with

sudo apt install vulkan-validationlayers
  1. Add a logger for WGPU like env_logger in the environment that you needs crash information.

If the shader generated by cubecl-spirv contains undetected error it will send at the Error level the crash instead of just segfaulting.

Part 2

You can activate the feature pliron-dump and set the environment variable CUBECL_DEBUG_PLIRON={directory} to have all shaders, along with the pliron IR after every pass, saved in that directory.