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

Bump GPUCompiler to 0.25 & add Julia 1.10 CI job #505

Closed
wants to merge 2 commits into from
Closed

Conversation

pxl-th
Copy link
Member

@pxl-th pxl-th commented Sep 30, 2023

No description provided.

@pxl-th
Copy link
Member Author

pxl-th commented Sep 30, 2023

@gbaraldi @jpsamaroo another possible issue related to the new pass manager caused by rand! kernel.
Narrowed down from: https://github.com/JuliaGPU/GPUArrays.jl/blob/bffa036425a3bc07ed4bebd9360d7c0029a9922e/test/testsuite/random.jl#L31.

rng = GPUArrays.default_rng(ROCArray)
A = ROCArray{Bool}(undef, 1024)
rand!(rng, A)

Fails with:

Attributes 'noinline and alwaysinline' are incompatible!
void ({} addrspace(10)*)* @julia__throw_argerror_3600
Debug: Error During Test at /var/lib/buildkite-agent/builds/leleka-pxlth-1/julialang/amdgpu-dot-jl/test/runtests.jl:71
Got exception outside of a @test
LLVM error: Broken module found, compilation aborted!
Stacktrace:
[1] handle_error(reason::Cstring)
 @ LLVM ~/.cache/julia-buildkite-plugin/depots/687d1932-34cc-406b-8aac-ab7952bcde26/packages/LLVM/QadjB/src/core/context.jl:134
[2] LLVMRunNewPMModulePassManager
 @ LLVM ~/.cache/julia-buildkite-plugin/depots/687d1932-34cc-406b-8aac-ab7952bcde26/packages/LLVM/QadjB/lib/libLLVM_extra.jl:626 [inlined]
[3] run!
 @ LLVM ~/.cache/julia-buildkite-plugin/depots/687d1932-34cc-406b-8aac-ab7952bcde26/packages/LLVM/QadjB/src/newpm/passmanager.jl:201 [inlined]
[4] #118
 @ LLVM ~/.cache/julia-buildkite-plugin/depots/687d1932-34cc-406b-8aac-ab7952bcde26/packages/LLVM/QadjB/src/newpm/passes.jl:701 [inlined]
[5] macro expansion
 @ LLVM ~/.cache/julia-buildkite-plugin/depots/687d1932-34cc-406b-8aac-ab7952bcde26/packages/LLVM/QadjB/src/newpm/analyses.jl:75 [inlined]
[6] macro expansion
 @ LLVM ~/.cache/julia-buildkite-plugin/depots/687d1932-34cc-406b-8aac-ab7952bcde26/packages/LLVM/QadjB/src/base.jl:98 [inlined]
[7] analysis_managers(f::LLVM.var"#118#119"{NewPMModulePassManager, LLVM.Module}, pb::PassBuilder, tm::TargetMachine, aa_stack::Vector{NewPMAliasAnalysis})

Interestingly, I can only reproduce this in CI even though it runs on my machine (outside of CI it works).

@pxl-th pxl-th closed this Oct 18, 2023
@pxl-th pxl-th deleted the pxl-th/bump branch October 23, 2023 09:31
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

Successfully merging this pull request may close these issues.

1 participant