================ @@ -423,9 +423,10 @@ Error offloading::intel::containerizeOpenMPSPIRVImage( Header.Class = ELF::ELFCLASS64; Header.Data = ELF::ELFDATA2LSB; Header.Type = ELF::ET_DYN; - // Use an existing Intel machine type as there is not one specifically for - // Intel GPUs. - Header.Machine = ELF::EM_IA_64; + // Use a fake machine type as there is not one specifically for + // Intel GPUs, the associated runtime plugin is looking for + // this value. + Header.Machine = 0x8086; ---------------- sarnex wrote:
The complication here is that we're jitting, so the device imagine is an elf that just contains a spirv image. when we compile that with the gpu driver we do get an elf that contains actual device code, let me see what machine code theyre using and i guess we can just use that https://github.com/llvm/llvm-project/pull/159623 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
