ComputeLibrary icon indicating copy to clipboard operation
ComputeLibrary copied to clipboard

Half scale gaussian kernel GPU output mismatch - 5x5 kernel ACL version 17.10 - request for inputs

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

Hi Sir,

When executing Half scale gaussian kernel in ACL GPU, output mismatches with NEON output. NEON is matching with reference OpenVx implementation . Attaching the logs, sample workspace for reference .

Can you please help in resolving this issue?

Thanks, Vinith cl_halfscale_gaussian_api.txt neon_halfscalegaussian_output.txt cl_halfscale_gaussian_log.txt

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

Seems to be a problem with your OpenCL driver, not an issue with the library:

cl_halfscalegaussian: /usr/src/debug/adreno/1.0+git-r0/graphics/adreno200/llvm/lib/Target/Oxili/QGPUTargetObjGen.cpp:933: virtual bool llvm::QGPUModuleEncoder::runOnModule(llvm::Module&): Assertion `0 && "The total instruction number in CreateLabelPass does not match the total number after CodeGen"' failed.

AnthonyBarbier avatar Apr 09 '18 13:04 AnthonyBarbier

@vinithsrvv1 I wouldn't expect the Arm Compute Library written for Arm Mali GPUs to play well with Qualcomm Adreno GPUs. Any reason you are trying that?

psyhtest avatar Apr 17 '18 13:04 psyhtest

We are working on the customer project which we needed to use this. So you are telling this is the problem with the driver of the Adreno ?

vinithsrvv1-path avatar Apr 17 '18 13:04 vinithsrvv1-path

As far as we know our OpenCL kernels are OpenCL compliants, so it should run on Adreno. (Performance is unlikely to be good though).

AnthonyBarbier avatar Apr 17 '18 14:04 AnthonyBarbier

@AnthonyARM Oh, I do not question OpenCL compliance of Arm CL kernels (apart of occasional use of Arm specific extensions such as cl_arm_non_uniform_work_group_size).

It's more about OpenCL compliance of Adreno drivers. If you look at the GraphicsFuzz results, Qualcomm devices are unfortunately at the very bottom in terms of reliability. And those are recent devices (2017) with Adreno 5xx series. @vinithsrvv1's device seems to be based on Adreno 2xx?

/cc @afd

psyhtest avatar Apr 20 '18 14:04 psyhtest

@vinithsrvv1 Actually, according to Wikipedia, Adreno 2xx is not OpenCL capable at all? Or are you using OpenGLES kernels?

psyhtest avatar Apr 20 '18 14:04 psyhtest

@vinithsrvv1 @psyhtest For Adreno GPU, you can have a look at MACE, which is initially optimized for Adreno GPU and also supports Mali and PowerVR. There are some benchmark results.

llhe avatar Jul 17 '18 06:07 llhe

Closing the issue is the same as: https://github.com/ARM-software/ComputeLibrary/issues/422#issuecomment-413154346

morgolock avatar Aug 15 '18 14:08 morgolock