From 05070596ba501458cfde4146196a20b42e6dbabf Mon Sep 17 00:00:00 2001 From: Anton Smirnov Date: Wed, 21 Feb 2024 16:20:18 +0200 Subject: [PATCH 1/4] Run GPU-less CI on Buildkite --- .buildkite/pipeline.yml | 14 ++++++++++++ .ci/load.jl | 13 ------------ .github/workflows/ci.yml | 46 ---------------------------------------- 3 files changed, 14 insertions(+), 59 deletions(-) delete mode 100644 .ci/load.jl delete mode 100644 .github/workflows/ci.yml diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index 5ed37e14c..1074747d9 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -42,6 +42,20 @@ steps: JULIA_AMDGPU_HIP_MUST_LOAD: "1" JULIA_AMDGPU_DISABLE_ARTIFACTS: "1" + - label: "GPU-less environment" + plugins: + - JuliaCI/julia#v1: + version: "1.10" + - JuliaCI/julia-test#v1: + run_tests: false + command: | + julia --project -e ' + using AMDGPU + @assert !AMDGPU.functional() + agents: + queue: "juliagpu" + intel: "*" + env: JULIA_AMDGPU_LOGGING_ENABLED: true SECRET_CODECOV_TOKEN: "lVqFGgrywYmQrILXBcP8i6TosP+q/W2oTDVLIdkWFWscd/a61oSVb8Tycq3qvngsrdmKU9EevdQo+1x+w7cu4IuTq63ahQc0RFgi4Q29hC52OgN2wFql984Cqq3T96P3jyV0ZljaRT+a+9AY0oWmmCph55amvvQ4DOMq3tfGDbp7gdueQvJmSYQGVT3/9Sjn4/esYppcKBGltQqQX2E7WrHLpnqRmsmjcSeZ/S/+PgPRb4ZnpBecAUP2d/MlPgKfP0ZUGbDlcbGu+ZDZNksxKIYuAlNrWPhpNAro7hACfEk4T5RRpNiwmJyXJZ8LUD8zNYIUKSmHjUtmqhNXgujWXA==;U2FsdGVkX1/v/P2Y7KZsvC55Au6eET37uDE6M5I6J275maix+SMD0EoJQ19cFp/lae+G8V7dvpPGfrh4hj2nOg==" diff --git a/.ci/load.jl b/.ci/load.jl deleted file mode 100644 index ac50a712e..000000000 --- a/.ci/load.jl +++ /dev/null @@ -1,13 +0,0 @@ -import Pkg - -Pkg.update() - -root_directory = dirname(@__DIR__) -amdgpu = Pkg.PackageSpec(;path=root_directory) - -Pkg.develop(amdgpu) -Pkg.build() -Pkg.precompile() - -import AMDGPU -AMDGPU.versioninfo() diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index 57f7a2d5a..000000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: CI (Julia 1.10) -on: - push: - branches: - - master - tags: '*' - pull_request: -defaults: - run: - shell: bash -jobs: - CI-julia-1-0: - name: CI-julia-1-10 - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - version: - - '1.10' - os: - - ubuntu-latest - - macOS-latest - - windows-latest - arch: - - x64 - steps: - - uses: actions/checkout@v4 - - uses: julia-actions/setup-julia@v1 - with: - version: ${{ matrix.version }} - arch: ${{ matrix.arch }} - - uses: actions/cache@v4 - env: - cache-name: cache-artifacts - with: - path: ~/.julia/artifacts - key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }} - restore-keys: | - ${{ runner.os }}-test-${{ env.cache-name }}- - ${{ runner.os }}-test- - ${{ runner.os }}- - - run: julia .ci/load.jl - - uses: julia-actions/julia-processcoverage@v1 - - uses: codecov/codecov-action@v4 - with: - file: lcov.info From e44b2f8c306a99452807095514e80ead4dc942d0 Mon Sep 17 00:00:00 2001 From: Anton Smirnov Date: Wed, 21 Feb 2024 16:23:26 +0200 Subject: [PATCH 2/4] Fix [skip tests] --- .buildkite/pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index 1074747d9..33e7a8ab0 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -51,7 +51,7 @@ steps: command: | julia --project -e ' using AMDGPU - @assert !AMDGPU.functional() + @assert !AMDGPU.functional()' agents: queue: "juliagpu" intel: "*" From 77a7c8e8a014e606af6666a007a9b55745e10887 Mon Sep 17 00:00:00 2001 From: Anton Smirnov Date: Wed, 21 Feb 2024 16:26:30 +0200 Subject: [PATCH 3/4] Test [skip tests] --- .buildkite/pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index 33e7a8ab0..8160fa21f 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -51,7 +51,7 @@ steps: command: | julia --project -e ' using AMDGPU - @assert !AMDGPU.functional()' + @assert AMDGPU.functional()' agents: queue: "juliagpu" intel: "*" From 993cd3f9cb004d21f2e63f6e9427d6a7e7a4ed96 Mon Sep 17 00:00:00 2001 From: Anton Smirnov Date: Wed, 21 Feb 2024 16:30:40 +0200 Subject: [PATCH 4/4] Fix [skip tests] --- .buildkite/pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index 8160fa21f..33e7a8ab0 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -51,7 +51,7 @@ steps: command: | julia --project -e ' using AMDGPU - @assert AMDGPU.functional()' + @assert !AMDGPU.functional()' agents: queue: "juliagpu" intel: "*"