CHIP-SPV / chipStar

chipStar is a tool for compiling and running HIP/CUDA on SPIR-V via OpenCL or Level Zero APIs.
Other
166 stars 27 forks source link

Templated kernels with the same signature end up mapping to incorrect modules #808

Open pvelesko opened 3 months ago

pvelesko commented 3 months ago
863: CHIP warning [TID 3650729] [1710422994.385196816] : A device function is already registered and mapped to a different module.

Fix draft PR which includes an added test: https://github.com/CHIP-SPV/chipStar/pull/807

linehill commented 3 months ago

In case of template and inline qualified __global__ functions the warning is false positive. There is a patch (#809) to erase the warning for being confusing.

pvelesko commented 3 months ago

This issue isn't about inline qualified functions

linehill commented 3 months ago

This issue isn't about inline qualified functions

It is. Template functions are inline functions by default too and they trigger the confusing warning.