Skip to content

1.11: reduce_private test generates gcframe under --check-bounds=yes #528

Closed as not planned

Description

@maleadt

MWE, reduced from the tests:

using KernelAbstractions

@kernel function reduce_private(out, A)
    I = @index(Global, NTuple)
    i = @index(Local)

    priv = @private eltype(A) (1,)
    @inbounds begin
        priv[1] = zero(eltype(A))
        for k in 1:size(A, ndims(A))
            priv[1] += A[I..., k]
        end
        out[I...] = priv[1]
    end
end

KernelAbstractions.ka_code_llvm(
    reduce_private(CPU(), (8,)), Tuple{Array{Float64, 1}, Array{Float64, 2}},
    optimize=true, ndrange = (64,), debuginfo=:none
)

This generates a gcframe (the absence of which is being tested) when running on 1.11 under --check-bounds=yes, as done by Pkg.

Activity

  1. vchuravy commented on Nov 30, 2024

    @vchuravy
    Member

    Yeah we would need a scratch space that doesn't capture the array on a bounds-error.

  2. added
    kernels
    pocl
    on Oct 19, 2026
  3. added theissue type on Oct 19, 2026
  4. maleadt commented on Oct 19, 2026

    @maleadt
    MemberAuthor

    Same as #433: the gcframe check and the Julia-task CPU back end it tested were removed in #556; the CPU back end is now PoCL-based and compiles kernels like the GPU back ends, without GC frames.

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

    kernelspocl

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions