Docs / nablatensor-engine-vulkan / com.nablatensor.backend.vulkan
final class
VulkanBackend
Vulkan compute backend. Math runs in GLSL compute shaders compiled to SPIR-V at runtime with libshaderc and dispatched through the Vulkan loader via foreign; tensors stay resident in device memory (host-visible on an APU) between operations.
Elementwise (including generated fused chains) / reductions / matmul / transpose / broadcast / relu-backward / 2-D convolution are implemented. The shader library is VulkanShaders; this class is op dispatch only.
Methods
Runs a whole elementwise Expr chain as one generated GLSL compute shader (one dispatch, one intermediate buffer), instead of the SPI default of one dispatch and one buffer per node. The shader is emitted with the same SSA post-order walk as the CUDA backend, compiled to SPIR-V once by libshaderc, and cached (as a registered pipeline) by its source.