Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
maleadt opened this issue Sep 17, 2024 · 0 comments
Open

Comments

@maleadt
Copy link
Member

maleadt commented Sep 17, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant