Skip to content

use device libs from AMDGPU_LLVM_Backend_jll - #1023

Draft
simeonschaub wants to merge 3 commits into
JuliaGPU:mainfrom
simeonschaub:sds/downgrade_devlibs
Draft

use device libs from AMDGPU_LLVM_Backend_jll#1023
simeonschaub wants to merge 3 commits into
JuliaGPU:mainfrom
simeonschaub:sds/downgrade_devlibs

Conversation

@simeonschaub

Copy link
Copy Markdown
Member

We downgrade these into a scratch space to be compatible with Julia's LLVM version

requires JuliaGPU/GPUCompiler.jl#894, JuliaGPU/GPUCompiler.jl#895 and for 1.10 support also JuliaLLVM/llvm-downgrade#7
ref #919 (comment)

The device libraries now ship with AMDGPU_LLVM_Backend_jll, built with a
newer LLVM than Julia's. Downgrade their bitcode once with LLVMDowngrader_jll
into a Scratch.jl-managed directory (keyed by the artifact tree hashes and
the downgrade target), and drop the ROCmDeviceLibs_jll dependency.

Assisted-by: Claude Code (claude-fable-5)
Julia 1.10 does not support opaque pointers, which our 15 target emits
(LLVM 15 supported both opaque and typed). Alternative is we use typed
pointers for 15 as a default as well
@simeonschaub simeonschaub changed the title use device libs for AMDGPU_LLVM_Backend_jll use device libs from AMDGPU_LLVM_Backend_jll Aug 15, 2026
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