llvm-project
2d0eeb55 - [Offload][Omp] Don't pack zero size firstprivate objects (#243817)

Commit
6 hours ago
[Offload][Omp] Don't pack zero size firstprivate objects (#243817) When an objects of size 0 is mapped (e.g. a zero-size array) the execution finishes with an assert (in debug mode) as it results in a packaged first-private bundle of size 0. The solution is simply to set the kernel argument to null and avoid adding the argument to the firstprivates that need to be copied. Assisted by Claude.
Author
Parents
Loading