Skip to content

Failed to translate LLVM code to SPIR-V on PVC #502

Open
@michel2323

Description

@michel2323

I get this error when using oneAPI.jl on Oceananigans.jl on PVC. I tried both [email protected] and v2.0.3 with the new SPIR-V translator. This is the output with v2.0.3. The code is a mapreduce implementing a sum! on a custom type (Field). I've also attached the file that is recommended for the bug report. I can try to reduce this into an MWE if this is not helpful.

jl_POTmPmRCT2.zip

InvalidInstruction: Can't translate llvm instruction:
 Global variable cannot have Function storage class. Consider setting a proper address space.
 Original LLVM value:
@_j_const1 = private unnamed_addr constant i64 0, align 8
ERROR: LoadError: Failed to translate LLVM code to SPIR-V.
If you think this is a bug, please file an issue and attach /var/tmp/pbs.4904394.aurora-pbs-0001.hostmgmt.cm.aurora.alcf.anl.gov/jl_POTmPmRCT2.bc.
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:35
  [2] macro expansion
    @ /lus/flare/projects/Julia/mschanen/julia_depot_path/packages/GPUCompiler/fi1Sa/src/spirv.jl:153 [inlined]
  [3] mcgen(job::GPUCompiler.CompilerJob{GPUCompiler.SPIRVCompilerTarget, oneAPI.oneAPICompilerParams}, mod::LLVM.Module, format::LLVM.API.LLVMCodeGenFileType)
    @ GPUCompiler /lus/flare/projects/Julia/mschanen/julia_depot_path/packages/GPUCompiler/fi1Sa/src/utils.jl:134
  [4] macro expansion
    @ /lus/flare/projects/Julia/mschanen/julia_depot_path/packages/Tracy/GcShf/src/tracepoint.jl:158 [inlined]
  [5] macro expansion
    @ /lus/flare/projects/Julia/mschanen/julia_depot_path/packages/GPUCompiler/fi1Sa/src/driver.jl:404 [inlined]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions