diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index d83131171..9587d6ea4 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -95,7 +95,7 @@ steps: agents: queue: "rocm" command: | - julia --project=test/rocmenv -e 'using Pkg; Pkg.develop([PackageSpec(path=pwd()), PackageSpec(path="lib/TimespanLogging")]); Pkg.instantiate()' + julia --project=test/rocmenv -e 'using Pkg; Pkg.develop([PackageSpec(path=pwd()), PackageSpec(path="lib/TimespanLogging")]); Pkg.add([PackageSpec(name="GPUCompiler", version=v"1.23.0"), PackageSpec(name="AMDGPU_LLVM_Backend_jll", version=v"22.1.8+2")]); Pkg.instantiate()' julia --project=test/rocmenv test/mpi/run.jl 2 2 test/mpi/rocm.jl - label: Julia 1.11 (oneAPI, MPI) diff --git a/AGENTS.md b/AGENTS.md index ad8c5740e..2f845553e 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -885,6 +885,16 @@ this section verbatim). Each entry is one bullet starting with `- `. adding it only to the driver's environment leaves remote codegen unchanged. Keep both comparison revisions on the same backend. + Pair the compiler and backend APIs explicitly: GPUCompiler 1.23.0 expects + `AMDGPU_LLVM_Backend_jll` 22.1.8+2's `llc` executable, whereas the 23.x + JLL exports a library API. With the latter unconstrained, the resolver can + retain GPUCompiler 1.22.7, which has no external GCN backend at all, so + importing the JLL still leaves embedded LLVM selected. On EOS gfx1030, + the unchanged mixed-boundary kernel and original metadata observer pass + with the 1.23.0/22.1.8+2 pair; the observer's actual helper coordinates + change from the old pair's incorrect `2, 3` to `1, 2`. This identifies a + working local configuration, not a specific compiler pass or full CI parity. + 81. **Small Intel MPI smokes do not validate the benchmark workload.** On this Arc Pro B60 with oneAPI 2.9.2, two-rank functional tests pass all 171/174 assertions with host staging and the legacy Level Zero adapter, and the diff --git a/test/rocmenv/Project.toml b/test/rocmenv/Project.toml index a30850a60..4f2d09499 100644 --- a/test/rocmenv/Project.toml +++ b/test/rocmenv/Project.toml @@ -2,6 +2,7 @@ AMDGPU = "21141c5a-9bdb-4563-92ae-f87d6854732e" AMDGPU_LLVM_Backend_jll = "cc5c0156-bd05-5a77-8a68-bb0aafb29019" Dagger = "d58978e5-989f-55fb-8d15-ea34adc7bf54" +GPUCompiler = "61eb1bfa-7361-4325-ad38-22787b887f55" Krylov = "ba0b0d4f-ebba-5204-a429-3ac8c609bfb7" LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" MPI = "da04e1cc-30fd-572f-bb4f-1f8673147195" @@ -9,5 +10,9 @@ Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" +[compat] +AMDGPU_LLVM_Backend_jll = "=22.1.8" +GPUCompiler = "=1.23.0" + [sources] Dagger = {path = "../.."} diff --git a/test/runtests.jl b/test/runtests.jl index bd2507e59..18cd54f55 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -217,7 +217,7 @@ if USE_GPU || USE_FINCH || "extlang/python" in to_test using Pkg optional_packages = String[] USE_CUDA && push!(optional_packages, "CUDA") - USE_ROCM && append!(optional_packages, ["AMDGPU", "AMDGPU_LLVM_Backend_jll"]) + USE_ROCM && append!(optional_packages, ["AMDGPU", "GPUCompiler", "AMDGPU_LLVM_Backend_jll"]) USE_ONEAPI && push!(optional_packages, "oneAPI") USE_METAL && push!(optional_packages, "Metal") USE_OPENCL && append!(optional_packages, ["OpenCL", "pocl_jll"]) @@ -225,7 +225,23 @@ if USE_GPU || USE_FINCH || "extlang/python" in to_test if "extlang/python" in to_test append!(optional_packages, ["CondaPkg", "PythonCall"]) end - Pkg.add(optional_packages) + if USE_ROCM + # GPUCompiler 1.22 ignores the external AMDGPU backend; 1.23 uses + # its LLVM 22 llc interface, rather than the newer JLL's library API. + packages = Pkg.PackageSpec[] + for name in optional_packages + if name == "GPUCompiler" + push!(packages, Pkg.PackageSpec(; name, version=v"1.23.0")) + elseif name == "AMDGPU_LLVM_Backend_jll" + push!(packages, Pkg.PackageSpec(; name, version=v"22.1.8+2")) + else + push!(packages, Pkg.PackageSpec(; name)) + end + end + Pkg.add(packages) + else + Pkg.add(optional_packages) + end end # Select the transport before loading Dagger, MemPool, or TimespanLogging: