Skip to content

Commit

Permalink
trying to fix buildkite with new GPUArrays interface.
Browse files Browse the repository at this point in the history
  • Loading branch information
leios committed Apr 11, 2024
1 parent 49a3e07 commit 0ac0ab9
Showing 1 changed file with 40 additions and 34 deletions.
74 changes: 40 additions & 34 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,42 +1,41 @@
steps:
# first, test supported Julia versions (using local CUDA as installed on the system)
- group: ":julia: Julia"
key: "julia"
steps:
- label: "Julia {{matrix.julia}}"
plugins:
- JuliaCI/julia#v1:
version: "{{matrix.julia}}"
- JuliaCI/julia-test#v1:
test_args: "--quickfail"
- JuliaCI/julia-coverage#v1:
dirs:
- src
- lib
- examples
agents:
queue: "juliagpu"
cuda: "*"
commands: |
echo -e "[CUDA_Runtime_jll]\nlocal = \"true\"" >LocalPreferences.toml
if: build.message !~ /\[skip tests\]/ && build.message !~ /\[skip julia\]/
timeout_in_minutes: 60
matrix:
setup:
julia:
- "1.8"
- "1.9"
- "1.10"
- "nightly"
adjustments:
- with:
julia: "nightly"
soft_fail: true
#- group: ":julia: Julia"
# key: "julia"
# steps:
# - label: "Julia {{matrix.julia}}"
# plugins:
# - JuliaCI/julia#v1:
# version: "{{matrix.julia}}"
# - JuliaCI/julia-test#v1:
# test_args: "--quickfail"
# - JuliaCI/julia-coverage#v1:
# dirs:
# - src
# - lib
# - examples
# agents:
# queue: "juliagpu"
# cuda: "*"
# commands: |
# echo -e "[CUDA_Runtime_jll]\nlocal = \"true\"" >LocalPreferences.toml
# if: build.message !~ /\[skip tests\]/ && build.message !~ /\[skip julia\]/
# timeout_in_minutes: 60
# matrix:
# setup:
# julia:
# - "1.8"
# - "1.9"
# - "1.10"
# - "nightly"
# adjustments:
# - with:
# julia: "nightly"
# soft_fail: true

# then, test supported CUDA toolkits (installed through the artifact system)
- group: "CUDA"
key: "cuda"
depends_on: "julia"
steps:
- label: "CUDA {{matrix.cuda}}"
plugins:
Expand Down Expand Up @@ -73,7 +72,6 @@ steps:
- group: "Memory"
key: "memory"
depends_on: "julia"
steps:
- label: "CuArray with {{matrix.memory}} memory"
plugins:
Expand Down Expand Up @@ -131,6 +129,7 @@ steps:
using Pkg
println("--- :julia: Instantiating project")
Pkg.add(; url="https://github.com/leios/GPUArrays.jl/", rev="yoyoyo_rebase_time")
withenv("JULIA_PKG_PRECOMPILE_AUTO" => 0) do
Pkg.activate(joinpath(pwd(), "lib", lowercase("{{matrix.package}}")))
try
Expand Down Expand Up @@ -163,6 +162,7 @@ steps:
julia --project -e '
using Pkg
Pkg.add(; url="https://github.com/leios/GPUArrays.jl/", rev="yoyoyo_rebase_time")
println("--- :julia: Instantiating project")
withenv("JULIA_PKG_PRECOMPILE_AUTO" => 0) do
Pkg.instantiate()
Expand Down Expand Up @@ -207,11 +207,15 @@ steps:
run_tests: false
command: |
julia --project -e '
using Pkg
Pkg.add(; url="https://github.com/leios/GPUArrays.jl/", rev="yoyoyo_rebase_time")
using CUDA
@assert !CUDA.functional()
@assert !isdefined(CUDA, :libcudart)
CUDA.set_runtime_version!(v"11.6")'
julia --project -e '
using Pkg
Pkg.add(; url="https://github.com/leios/GPUArrays.jl/", rev="yoyoyo_rebase_time")
using CUDA
@assert !CUDA.functional()
@assert isdefined(CUDA, :libcudart)'
Expand Down Expand Up @@ -278,6 +282,7 @@ steps:
julia --project -e '
using Pkg
Pkg.add(; url="https://github.com/leios/GPUArrays.jl/", rev="yoyoyo_rebase_time")
println("--- :julia: Instantiating project")
Pkg.resolve()
Pkg.instantiate()
Expand Down Expand Up @@ -310,6 +315,7 @@ steps:
command: |
julia --project -e '
using Pkg
Pkg.add(; url="https://github.com/leios/GPUArrays.jl/", rev="yoyoyo_rebase_time")
ENV["CODESPEED_ENVIRONMENT"] = ENV["BUILDKITE_AGENT_NAME"]
println("--- :julia: Instantiating project")
Expand Down

0 comments on commit 0ac0ab9

Please sign in to comment.