compute-runtime icon indicating copy to clipboard operation
compute-runtime copied to clipboard

Fail to find kernel name in the attached spirv file with Level Zero driver

Open pengtu opened this issue 1 year ago • 7 comments

The kernel 'CeedKernelhHipGenOperator_Scale' cannot be found in the module created.

The binary SPIRV is at: https://github.com/CHIP-SPV/chipStar/files/12419361/spirv.zip.

More details can be found in the chipStar issue: #https://github.com/CHIP-SPV/chipStar/issues/562

pengtu avatar Oct 05 '23 20:10 pengtu

#https://github.com/CHIP-SPV/chipStar/issues/562

pengtu avatar Oct 05 '23 20:10 pengtu

Hi @pengtu @pvelesko

Could you share kernel binary compiled by ocloc?

JablonskiMateusz avatar Oct 06 '23 06:10 JablonskiMateusz

@JablonskiMateusz : It is in the following link: https://github.com/CHIP-SPV/chipStar/files/12419361/spirv.zip. Thanks.

pengtu avatar Oct 09 '23 18:10 pengtu

@pengtu that's spv format which is intermediate format. I meant device binary format. What is target GPU?

JablonskiMateusz avatar Oct 10 '23 20:10 JablonskiMateusz

When trying to compile the kernel for DG2 device I see compilation error:

error: Double type is not supported on this platform. in kernel: 'CeedKernelHipGenOperator_Scale' error: backend compiler failed build. Build failed with error code: -11 Command was: ocloc compile -device dg2 -file hip-spirv-cb1f41.spv -spirv_input

I used ocloc from recent release (https://github.com/intel/compute-runtime/releases/tag/23.30.26918.9)

JablonskiMateusz avatar Oct 10 '23 20:10 JablonskiMateusz

@JablonskiMateusz Thank you for looking into this. Our build target is PVC. In the past, we have encounter similar missing kernel problem when the register spills + user local memory allocation usage exceeds the hardware SLM size.

pengtu avatar Oct 11 '23 04:10 pengtu

Could you share zebin from the module? To do that you need to run the application with env variables: NEOReadDebugKeys=1 DumpZEBin=1

JablonskiMateusz avatar Oct 13 '23 08:10 JablonskiMateusz