intel / compute-runtime

Intel® Graphics Compute Runtime for oneAPI Level Zero and OpenCL™ Driver
MIT License
1.1k stars 229 forks source link

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

Open pengtu opened 9 months ago

pengtu commented 9 months ago

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 commented 9 months ago

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

JablonskiMateusz commented 9 months ago

Hi @pengtu @pvelesko

Could you share kernel binary compiled by ocloc?

pengtu commented 9 months ago

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

JablonskiMateusz commented 9 months ago

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

JablonskiMateusz commented 9 months ago

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)

pengtu commented 9 months ago

@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.

JablonskiMateusz commented 9 months ago

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