From f6edc3f2d592118a8b06137eb6723a59b1b61116 Mon Sep 17 00:00:00 2001 From: Fredrik Ekre Date: Fri, 11 Oct 2024 01:23:35 +0200 Subject: [PATCH] Buildkite CI configuration for GPU testing (#1093) --- .buildkite/pipeline.yml | 22 ++++++++++++++++++++++ .gitignore | 1 + test/GPU/Project.toml | 7 +++++++ test/GPU/runtests.jl | 5 +++++ 4 files changed, 35 insertions(+) create mode 100644 .buildkite/pipeline.yml create mode 100644 test/GPU/Project.toml create mode 100644 test/GPU/runtests.jl diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml new file mode 100644 index 0000000000..834c45f527 --- /dev/null +++ b/.buildkite/pipeline.yml @@ -0,0 +1,22 @@ +env: + SECRET_CODECOV_TOKEN: "V1W6eELqofOWx59dQvD1s1Blp64SgjCdW2PtPGrdTjK4iyysFtdmFZGslR004DbgOfqzFHG2yacOtRHt08NiGQy4OqglHPKG2wcPryPE1KbrlWVKbNrrGJDofN8CKwt7a+KWbrxbldKPNMq4kpaaLyDIVxGHyzyPOvIyOWLTsmfZYvfQEY0c0W6rGzox0BR8hI5o6DJXm3GFg2VpCwMJ7YIhbU1uqb0A9zZVC/iRjNVsHgDQuJ2ybtoPsMiZmg3C7DrXAAh1EANsA5nVRHTGVReITtV/plfTwe5fkQ/KpNbhmpj5s0MXS4Z2kLZOHI3OI9NU2swy4sJoXgDGBlAWOA==;U2FsdGVkX19JPGOjpPNnwLMs+yhJ+xvhRahrJ5J+jtdUKwZnt4273Cq0bgjGCkqPuOO9iQlphSvlNK7uip+/+A==" + +steps: + - label: ":julia: Julia v1" + notify: + - github_commit_status: + context: "Test GPU / Julia 1" + plugins: + - JuliaCI/julia#v1: + version: "1" + # - JuliaCI/julia-test#v1: ~ + - JuliaCI/julia-coverage#v1: + dirs: ["src", "ext"] + command: | + julia --code-coverage=@ --project=test/GPU -e 'using Pkg; Pkg.instantiate()' + julia --code-coverage=@ --project=test/GPU test/GPU/runtests.jl + agents: + queue: "juliagpu" + cuda: "*" + if: build.message !~ /\[skip tests\]/ + timeout_in_minutes: 60 diff --git a/.gitignore b/.gitignore index 67c12000ee..ecbf08c7fb 100644 --- a/.gitignore +++ b/.gitignore @@ -17,6 +17,7 @@ docs/src/changelog.md *.DS_Store /Manifest.toml /test/coverage/Manifest.toml +/test/GPU/Manifest.toml /benchmark/Manifest.toml LocalPreferences.toml diff --git a/test/GPU/Project.toml b/test/GPU/Project.toml new file mode 100644 index 0000000000..016a7f58be --- /dev/null +++ b/test/GPU/Project.toml @@ -0,0 +1,7 @@ +[deps] +CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba" +Ferrite = "c061ca5d-56c9-439f-9c0e-210fe06d3992" +Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" + +[sources] +Ferrite = {path = "../.."} diff --git a/test/GPU/runtests.jl b/test/GPU/runtests.jl new file mode 100644 index 0000000000..7d317327a5 --- /dev/null +++ b/test/GPU/runtests.jl @@ -0,0 +1,5 @@ +using CUDA +using Ferrite +using Test + +@test CUDA.functional()