Skip to content

#899 exposes allocating throw paths on malloc-less backends #906

Description

@michel2323

GPUCompiler@v2.2.2 contains #899, which sets CC.OptimizationParams(; compilesig_invokes=false). With that, the @noinline throw1(x) = throw(DomainError(x, ...)) closure inside Base.Math.exponent now gets codegen'd into the kernel, and DomainError(x, msg) needs a heap box → gc_pool_allocgpu_malloc. gpu_malloc is a backend-provided runtime symbol (compile(:malloc, ...) in GPUCompiler's runtime.jl), and oneAPI.jl doesn't provide one. Under 2.2.1, the throw path never reached the IR.

I'm working on a malloc for oneAPI.jl and pinned the GPUCompiler.jl version for now. From what I understand, the latter is needed for Julia 1.14.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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