MinMaxloc kernel for S16 output mismatch between GPU and NEON - ACL v 17.10 - request for inputs
Hi Sir,
When executing MinMax loc kernel for GPU, output is getting mismatched compated to NEON. NEON is matching with C-Model reference (OpenVx) . This is observed for S16 formats. U8 works fine in GPU with out of order .
Version : 17.10
Attaching the sample workspace, logs for reference .
Can you please help us in resolving the same?
Thanks, Vinith minmax_loc_log.txt neon_minmaxloc_s16_16x16_api.txt cl_minmax_loc_s16_16x16_api.txt
HI, You can't do:
memcpy(src.buffer(), buffer, 16 * 16 * sizeof(int16_t));
because the library uses padded images, instead you need to copy one row at the time as explained in the documentation
Hope this helps,
Thanks for the update. But for U8 types, it works fine. So this should had been observed there also na ? Why it is not happening when format is U8 ? Can you please explain ?
Might just be luck, it's hard to tell what's happening given that part of the buffer ends up being uninitialised. Try fix the buffer read/write accesses and see if the issue is still there. By the way all these functions have tests in our validation test suite
Hi @AnthonyARM, thank you for the response. The issue is still seen even after modifying the read/write accesses. Can you please let us know your inputs? Attaching standalone code and logs. cl_minmax_8x8_log.txt cl_minmax_loc_u8xu8_api.txt
Thanks in advance
Hi @vinithsrvv1
I downloaded your test and just removed one call to map() which was not necessary

The output looks good to me:

Could you please try this with ACL 18.05. Reopen if you still see the problem.
Hi @morgolock the output matches with NEON output with CL 18.05. Thank you for the support.