-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #411 from JuliaHealth/buildkite
Add Buildkite GPU pipeline
- Loading branch information
Showing
11 changed files
with
239 additions
and
273 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,122 @@ | ||
steps: | ||
- label: "Example Test" | ||
command: echo "Hello!" | ||
- label: "AMDGPU: Run tests on v{{matrix.version}}" | ||
matrix: | ||
setup: | ||
version: | ||
- "1.10" | ||
plugins: | ||
- JuliaCI/julia#v1: | ||
version: "{{matrix.version}}" | ||
- JuliaCI/julia-coverage#v1: | ||
codecov: true | ||
dirs: | ||
- KomaMRICore/src | ||
- KomaMRICore/ext | ||
command: | | ||
julia -e 'println("--- :julia: Instantiating project") | ||
using Pkg | ||
Pkg.develop([ | ||
PackageSpec(path=pwd(), subdir="."), | ||
PackageSpec(path=pwd(), subdir="KomaMRIBase"), | ||
PackageSpec(path=pwd(), subdir="KomaMRICore"), | ||
])' | ||
julia -e 'println("--- :julia: Running tests") | ||
using Pkg | ||
Pkg.test("KomaMRICore"; coverage=true, test_args=["AMDGPU"])' | ||
agents: | ||
queue: "juliagpu" | ||
rocm: "*" | ||
timeout_in_minutes: 120 | ||
|
||
- label: "CUDA: Run tests on v{{matrix.version}}" | ||
matrix: | ||
setup: | ||
version: | ||
- "1.9" | ||
plugins: | ||
- JuliaCI/julia#v1: | ||
version: "{{matrix.version}}" | ||
- JuliaCI/julia-coverage#v1: | ||
codecov: true | ||
dirs: | ||
- KomaMRICore/src | ||
- KomaMRICore/ext | ||
command: | | ||
julia -e 'println("--- :julia: Instantiating project") | ||
using Pkg | ||
Pkg.develop([ | ||
PackageSpec(path=pwd(), subdir="."), | ||
PackageSpec(path=pwd(), subdir="KomaMRIBase"), | ||
PackageSpec(path=pwd(), subdir="KomaMRICore"), | ||
])' | ||
julia -e 'println("--- :julia: Running tests") | ||
using Pkg | ||
Pkg.test("KomaMRICore"; coverage=true, test_args=["CUDA"])' | ||
agents: | ||
queue: "juliagpu" | ||
cuda: "*" | ||
timeout_in_minutes: 120 | ||
|
||
- label: "Metal: Run tests on v{{matrix.version}}" | ||
matrix: | ||
setup: | ||
version: | ||
- "1.9" | ||
plugins: | ||
- JuliaCI/julia#v1: | ||
version: "{{matrix.version}}" | ||
command: | | ||
julia -e 'println("--- :julia: Instantiating project") | ||
using Pkg | ||
Pkg.develop([ | ||
PackageSpec(path=pwd(), subdir="."), | ||
PackageSpec(path=pwd(), subdir="KomaMRIBase"), | ||
PackageSpec(path=pwd(), subdir="KomaMRICore"), | ||
])' | ||
julia -e 'println("--- :julia: Running tests") | ||
using Pkg | ||
Pkg.test("KomaMRICore"; test_args=["Metal"])' | ||
agents: | ||
queue: "juliaecosystem" | ||
os: "macos" | ||
arch: "aarch64" | ||
timeout_in_minutes: 120 | ||
|
||
- label: "oneAPI: Run tests on v{{matrix.version}}" | ||
matrix: | ||
setup: | ||
version: | ||
- "1.9" | ||
plugins: | ||
- JuliaCI/julia#v1: | ||
version: "{{matrix.version}}" | ||
- JuliaCI/julia-coverage#v1: | ||
codecov: true | ||
dirs: | ||
- KomaMRICore/src | ||
- KomaMRICore/ext | ||
command: | | ||
julia -e 'println("--- :julia: Instantiating project") | ||
using Pkg | ||
Pkg.develop([ | ||
PackageSpec(path=pwd(), subdir="."), | ||
PackageSpec(path=pwd(), subdir="KomaMRIBase"), | ||
PackageSpec(path=pwd(), subdir="KomaMRICore"), | ||
])' | ||
julia -e 'println("--- :julia: Running tests") | ||
using Pkg | ||
Pkg.test("KomaMRICore"; coverage=true, test_args=["oneAPI"])' | ||
agents: | ||
queue: "juliagpu" | ||
intel: "*" | ||
timeout_in_minutes: 120 | ||
|
||
env: | ||
CI: BUILDKITE | ||
CODECOV_FLAGS: core | ||
JULIA_PKG_SERVER: "" | ||
SECRET_CODECOV_TOKEN: "lUmUVYkTlE8u0mR/ymv5rtE1A59wXZmQ3miRkmKciC/4+xHPNjpeIJ03FupuC1ElGBeX0m6DDFavZ9burLosGxbBYIPziBQZ5P9NdPDZjBdo7NM3QSSBeUfDsDYbHsYglfJZ35UL6Pd2YTAkJG0ePrTpfUaBb9rcll926NdqUP0vE2hbR2leKFFgBVNtK9Zf+NE7hO3meZQEZ+sN5tA7xGr24A3Ay7ckPg5HbPPD3KII2/fLtW+w0fQUfJdXNFrajJ0FyNE0kNLDlIzoYN6XM4yUeLBXoyXFHnqT5dSu7pqrByEk/ptYpjUzKFoRSnDQy+p8vrx9e/iAVf3lwwgwWA==;U2FsdGVkX1+IZLGTj2FNEy4XvUQbzkZFEwUpwIdRDCKrEea5O/OKGV5vYJufty3m9yniE+av4937HabS9dO1RA==" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
[deps] | ||
AMDGPU = "21141c5a-9bdb-4563-92ae-f87d6854732e" | ||
CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba" | ||
HDF5 = "f67ccb44-e63f-5c2f-98bd-6dc0ccc4ba2f" | ||
KomaMRIBase = "d0bc0b20-b151-4d03-b2a4-6ca51751cb9c" | ||
Metal = "dde4c033-4e86-420c-a63e-0dd931031962" | ||
oneAPI = "8f75cd03-7ff8-4ecb-9b8f-daf728133b1b" | ||
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f" | ||
Suppressor = "fd094767-a336-5f1f-9728-57cf17d0bbfb" | ||
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" | ||
TestItemRunner = "f8b46487-2199-4994-9208-9a1283c18c0a" | ||
TestItems = "1c621080-faea-4a02-84b6-bbd5e436b8fe" | ||
TestItems = "1c621080-faea-4a02-84b6-bbd5e436b8fe" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using Pkg | ||
using Suppressor | ||
|
||
const USE_GPU = if "AMDGPU" in ARGS | ||
@suppress Pkg.add("AMDGPU") | ||
using AMDGPU | ||
@info "Testing AMD" maxlog=1 | ||
true | ||
elseif "CUDA" in ARGS | ||
@suppress Pkg.add("CUDA") | ||
using CUDA | ||
@info "Testing CUDA" maxlog=1 | ||
true | ||
elseif "Metal" in ARGS | ||
@suppress Pkg.add("Metal") | ||
using Metal | ||
@info "Testing Metal" maxlog=1 | ||
true | ||
elseif "oneAPI" in ARGS | ||
@suppress Pkg.add("oneAPI") | ||
using oneAPI | ||
@info "Testing oneAPI" maxlog=1 | ||
true | ||
else | ||
@info "Testing on the CPU with $(Threads.nthreads()) thread(s)" maxlog=1 | ||
false | ||
end | ||
|
||
using KomaMRICore |
Oops, something went wrong.