halide / Halide

a language for fast, portable data-parallel computation
https://halide-lang.org
Other
5.77k stars 1.07k forks source link

[vulkan] Broken SIMT mappings for block & thread IDs in CodeGen #8258

Closed derek-gerstmann closed 4 weeks ago

derek-gerstmann commented 1 month ago

It appears the Vulkan SIMT mappings for block and thread ids for GPU loops are broken in main:

Internal Error at .../Halide_main/src/CodeGen_Vulkan_Dev.cpp:2527 triggered by user code at :
map_simt_builtin called on bad variable name: .thread_id_x

I've got a fix that I'll push to repair this regression.