diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index 18505d556..d943119b3 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -45,6 +45,53 @@ steps: soft_fail: - exit_status: 3 + - label: "AMDGPU.jl" + plugins: + - JuliaCI/julia#v1: + version: "1.10" + - JuliaCI/julia-coverage#v1: + codecov: true + command: | + julia -e 'using Pkg + + gpuarrays = pwd() + gpuarrayscore = joinpath(gpuarrays, "lib", "GPUArraysCore") + devdir = mktempdir() + package = joinpath(devdir, "AMDGPU") + + println("--- :julia: Installing TestEnv") + Pkg.activate(; temp=true) + Pkg.add("TestEnv") + using TestEnv + + println("--- :julia: Installing AMDGPU.jl") + withenv("JULIA_PKG_PRECOMPILE_AUTO" => 0, + "JULIA_PKG_DEVDIR" => devdir) do + Pkg.develop("AMDGPU") + Pkg.activate(package) + + try + Pkg.develop([PackageSpec(path=gpuarrays), PackageSpec(path=gpuarrayscore)]) + TestEnv.activate() + catch err + @error "Could not install AMDGPU.jl" exception=(err,catch_backtrace()) + exit(3) + finally + Pkg.activate(package) + end + end + + println("+++ :julia: Running tests") + Pkg.test(; coverage=true)' + agents: + queue: "juliagpu" + rocm: "*" + rocmgpu: "*" + if: build.message !~ /\[skip tests\]/ + timeout_in_minutes: 120 + soft_fail: + - exit_status: 3 + - label: "oneAPI.jl" plugins: - JuliaCI/julia#v1: diff --git a/test/testsuite/linalg.jl b/test/testsuite/linalg.jl index 804912d82..c0e5f75b1 100644 --- a/test/testsuite/linalg.jl +++ b/test/testsuite/linalg.jl @@ -1,4 +1,4 @@ -@testsuite "linalg/core " (AT, eltypes)->begin +@testsuite "linalg/core" (AT, eltypes) -> begin @testset "adjoint and transpose" begin @test compare(adjoint, AT, rand(Float32, 32, 32)) @test compare(adjoint!, AT, rand(Float32, 32, 32), rand(Float32, 32, 32))