llvm
f5d5b47f - [UR] Fix validation of arguments of urKernelLaunchWithArgsExp() (#21628)

Commit
31 days ago
[UR] Fix validation of arguments of urKernelLaunchWithArgsExp() (#21628) The validation layer in ur_valddi.cpp (generated from YAML spec) checked pGlobalWorkSize[0], [1], and [2] and pLocalWorkSize[0], [1], and [2] regardless of workDim. For 1D kernels, indices [1] and [2] read out-of-bounds memory, causing spurious UR_RESULT_ERROR_INVALID_WORK_DIMENSION errors. Removed the hardcoded 3-element validation expressions for pGlobalWorkSize and pLocalWorkSize that couldn't account for workDim. Signed-off-by: Lukasz Dorau <lukasz.dorau@intel.com>
Author
Parents
Loading