ComputeLibrary icon indicating copy to clipboard operation
ComputeLibrary copied to clipboard

MinMaxloc kernel for S16 output mismatch between GPU and NEON - ACL v 17.10 - request for inputs

Open vinithsrvv1-path opened this issue 8 years ago • 6 comments

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

vinithsrvv1-path avatar Apr 09 '18 12:04 vinithsrvv1-path

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,

AnthonyBarbier avatar Apr 09 '18 12:04 AnthonyBarbier

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 ?

vinithsrvv1-path avatar Apr 09 '18 12:04 vinithsrvv1-path

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

AnthonyBarbier avatar Apr 09 '18 13:04 AnthonyBarbier

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

manjunathahg avatar Jun 29 '18 15:06 manjunathahg

Hi @vinithsrvv1

I downloaded your test and just removed one call to map() which was not necessary

maaaap

The output looks good to me: minmax

Could you please try this with ACL 18.05. Reopen if you still see the problem.

morgolock avatar Aug 14 '18 15:08 morgolock

Hi @morgolock the output matches with NEON output with CL 18.05. Thank you for the support.

manjunathahg avatar Aug 16 '18 06:08 manjunathahg