EnzymeAD / EnzymeAD/Enzyme-JAX

`error: 'stablehlo.multiply' op requires compatible types for all operands and results`

Open
#839 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
MLIR
Stars
131
Forks
53
Avg merge
1d 10h
Merged PRs (30d)
193

Description

```
loc(callsite(fused<#llvm.di_subprogram, compileUnit = , sourceLanguage = DW_LANG_Julia, file = <"julia" in ".">, producer = "julia", isOptimized = true, emissionKind = None, nameTableKind = None>, scope = #llvm.di_file<"float.jl" in ".">, name = "*;", linkageName = "*", file = <"float.jl" in ".">, subprogramFlags = "Definition|Optimized", type = <>>>["float.jl":493:0] at callsite(fused<#llvm.di_subprogram, compileUnit = , sourceLanguage = DW_LANG_Julia, file = <"julia" in ".">, producer = "julia", isOptimized = true, emissionKind = None, nameTableKind = None>, scope = #llvm.di_file<"operators.jl" in ".">, name = "*;", linkageName = "*", file = <"operators.jl" in ".">, subprogramFlags = "Definition|Optimized", type = <>>>["operators.jl":596:0] at callsite(fused<#llvm.di_subprogram, compileUnit = , sourceLanguage = DW_LANG_Julia, file = <"julia" in ".">, producer = "julia", isOptimized = true, emissionKind = None, nameTableKind = None>, scope = #llvm.di_file<"/home/giordano/.julia/packages/Oceananigans/L7qIm/src/Advection/upwind_biased_advective_fluxes.jl" in ".">, name = "advective_tracer_flux_y;", linkageName = "advective_tracer_flux_y", file = <"/home/giordano/.julia/packages/Oceananigans/L7qIm/src/Advection/upwind_biased_advective_fluxes.jl" in ".">, subprogramFlags = "Definition|Optimized", type = <>>>["/home/giordano/.julia/packages/Oceananigans/L7qIm/src/Advection/upwind_biased_advective_fluxes.jl":112:0] at callsite(fused<#llvm.di_subprogram, compileUnit = , sourceLanguage = DW_LANG_Julia, file = <"julia" in ".">, producer = "julia", isOptimized = true, emissionKind = None, nameTableKind = None>, scope = #llvm.di_file<"/home/giordano/.julia/packages/Oceananigans/L7qIm/src/Advection/tracer_advection_operators.jl" in ".">, name = "_advective_tracer_flux_y;", linkageName = "_advective_tracer_flux_y", file = <"/home/giordano/.julia/packages/Oceananigans/L7qIm/src/Advection/tracer_advection_operators.jl" in ".">, subprogramFlags = "Definition|Optimized", type = <>>>["/home/giordano/.julia/packages/Oceananigans/L7qIm/src/Advection/tracer_advection_operators.jl":3:0] at callsite(fused<#llvm.di_subprogram, compileUnit = , sourceLanguage = DW_LANG_Julia, file = <"julia" in ".">, producer = "julia", isOptimized = true, emissionKind = None, nameTableKind = None>, scope = #llvm.di_file<"/home/giordano/.julia/packages/Oceananigans/L7qIm/src/Operators/difference_operators.jl" in ".">, name = "\CE\B4y\E1\B5\83\E1\B6\9C\E1\B5\83;", linkageName = "\CE\B4y\E1\B5\83\E1\B6\9C\E1\B5\83", file = <"/home/giordano/.julia/packages/Oceananigans/L7qIm/src/Operators/difference_operators.jl" in ".">, subprogramFlags = "Definition|Optimized", type = <>>>["/home/giordano/.julia/packages/Oceananigans/L7qIm/src/Operators/difference_operators.jl":23:0] at callsite(fused<#llvm.di_subprogram, compileUnit = , sourceLanguage = DW_LANG_Julia, file = <"julia" in ".">, producer = "julia", isOptimized = true, emissionKind = None, nameTableKind = None>, scope = #llvm.di_file<"/home/giordano/.julia/packages/Oceananigans/L7qIm/src/Advection/tracer_advection_operators.jl" in ".">, name = "div_Uc;", linkageName = "div_Uc", file = <"/home/giordano/.julia/packages/Oceananigans/L7qIm/src/Advection/tracer_advection_operators.jl" in ".">, subprogramFlags = "Definition|Optimized", type = <>>>["/home/giordano/.julia/packages/Oceananigans/L7qIm/src/Advection/tracer_advection_operators.jl":31:0] at callsite(fused<#llvm.di_subprogram, compileUnit = , sourceLanguage = DW_LANG_Julia, file = <"julia" in ".">, producer = "julia", isOptimized = true, emissionKind = None, nameTableKind = None>, scope = #llvm.di_file<"/home/giordano/.julia/packages/Oceananigans/L7qIm/src/Models/HydrostaticFreeSurfaceModels/hydrostatic_free_surface_tendency_kernel_functions.jl" in ".">, name = "hydrostatic_free_surface_tracer_tendency;", linkageName = "hydrostatic_free_surface_tracer_tendency", file = <"/home/giordano/.julia/packages/Oceananigans/L7qIm/src/Models/HydrostaticFreeSurfaceModels/hydrostatic_free_surface_tendency_kernel_functions.jl" in ".">, subprogramFlags = "Definition|Optimized", type = <>>>["/home/giordano/.julia/packages/Oceananigans/L7qIm/src/Models/HydrostaticFreeSurfaceModels/hydrostatic_free_surface_tendency_kernel_functions.jl":137:0] at callsite(fused<#llvm.di_subprogram, compileUnit = , sourceLanguage = DW_LANG_Julia, file = <"julia" in ".">, producer = "julia", isOptimized = true, emissionKind = None, nameTableKind = None>, scope = #llvm.di_file<"/home/giordano/.julia/packages/KernelAbstractions/sWSE0/src/macros.jl" in ".">, name = "gpu_compute_hydrostatic_free_surface_Gc!;", linkageName = "gpu_compute_hydrostatic_free_surface_Gc!", file = <"/home/giordano/.julia/packages/KernelAbstractions/sWSE0/src/macros.jl" in ".">, subprogramFlags = "Definition|Optimized", type = <>>>["/home/giordano/.julia/packages/KernelAbstractions/sWSE0/src/macros.jl":322:0] at fused<#llvm.di_subprogram, compileUnit = , sourceLanguage = DW_LANG_Julia, file = <"julia" in ".">, producer = "julia", isOptimized = true, emissionKind = None, nameTableKind = None>, name = "gpu_compute_hydrostatic_free_surface_Gc!", linkageName = "julia_gpu_compute_hydrostatic_free_surface_Gc!_67178", file = <"none" in ".">, subprogramFlags = "Definition|Optimized", type = <>>>["none":0:0]))))))))): error: 'stablehlo.multiply' op requires compatible types for all operands and results
┌ Error: Compilation failed, MLIR module written to /tmp/reactant_bUMwnG/module_000_dRTh_post_to_mhlo_shardings_pm.mlir
└ @ Reactant.MLIR.IR ~/.julia/dev/Reactant/src/mlir/IR/Pass.jl:116
ERROR: LoadError: "failed to run pass manager on module"
Stacktrace:
[1] run!(pm::Reactant.MLIR.IR.PassManager, mod::Reactant.MLIR.IR.Module, key::String)
@ Reactant.MLIR.IR ~/.julia/dev/Reactant/src/mlir/IR/Pass.jl:160
[2] run_pass_pipeline!(mod::Reactant.MLIR.IR.Module, pass_pipeline::String, key::String; enable_verifier::Bool)
@ Reactant.Compiler ~/.julia/dev/Reactant/src/Compiler.jl:897
[3] run_pass_pipeline!
@ ~/.julia/dev/Reactant/src/Compiler.jl:892 [inlined]
```

https://gist.github.com/giordano/0a1890ba94ff8ec65343c223e208086f

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.