Skip to content

Commit

Permalink
Change the env var
Browse files Browse the repository at this point in the history
  • Loading branch information
avik-pal committed Jun 7, 2024
1 parent 5e4e390 commit c14c4e4
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 17 deletions.
12 changes: 6 additions & 6 deletions lib/MLDataDevices/.buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ steps:
queue: "juliagpu"
cuda: "*"
env:
GROUP: "CUDA"
BACKEND_GROUP: "CUDA"
if: build.message !~ /\[skip tests\]/
timeout_in_minutes: 60
matrix:
Expand Down Expand Up @@ -61,7 +61,7 @@ steps:
queue: "juliagpu"
cuda: "*"
env:
GROUP: "CUDA"
BACKEND_GROUP: "CUDA"
DOWNSTREAM_TEST_REPO: "{{matrix.repo}}"
if: build.message !~ /\[skip tests\]/ || build.message !~ /\[skip downstream\]/
timeout_in_minutes: 240
Expand Down Expand Up @@ -90,7 +90,7 @@ steps:
JULIA_AMDGPU_CORE_MUST_LOAD: "1"
JULIA_AMDGPU_HIP_MUST_LOAD: "1"
JULIA_AMDGPU_DISABLE_ARTIFACTS: "1"
GROUP: "AMDGPU"
BACKEND_GROUP: "AMDGPU"
agents:
queue: "juliagpu"
rocm: "*"
Expand Down Expand Up @@ -140,7 +140,7 @@ steps:
rocm: "*"
rocmgpu: "*"
env:
GROUP: "AMDGPU"
BACKEND_GROUP: "AMDGPU"
JULIA_AMDGPU_CORE_MUST_LOAD: "1"
JULIA_AMDGPU_HIP_MUST_LOAD: "1"
JULIA_AMDGPU_DISABLE_ARTIFACTS: "1"
Expand Down Expand Up @@ -173,7 +173,7 @@ steps:
os: "macos"
arch: "aarch64"
env:
GROUP: "Metal"
BACKEND_GROUP: "Metal"
if: build.message !~ /\[skip tests\]/
timeout_in_minutes: 60
matrix:
Expand All @@ -195,7 +195,7 @@ steps:
- src
- ext
env:
GROUP: "oneAPI"
BACKEND_GROUP: "oneAPI"
agents:
queue: "juliagpu"
intel: "*"
Expand Down
2 changes: 1 addition & 1 deletion lib/MLDataDevices/.github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
env:
GROUP: Metal
BACKEND_GROUP: Metal
- uses: julia-actions/julia-processcoverage@v1
with:
directories: src,ext
Expand Down
1 change: 0 additions & 1 deletion lib/MLDataDevices/.github/workflows/Downgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ jobs:
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
env:
GROUP: "CPU"
RETESTITEMS_NWORKERS: 4
RETESTITEMS_NWORKER_THREADS: 2
- uses: julia-actions/julia-processcoverage@v1
Expand Down
8 changes: 4 additions & 4 deletions lib/MLDataDevices/.github/workflows/Downstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@ jobs:
name: ${{ matrix.package.repo }}/${{ matrix.package.group }}
runs-on: ${{ matrix.os }}
env:
GROUP: ${{ matrix.package.group }}
BACKEND_GROUP: ${{ matrix.package.group }}
strategy:
fail-fast: false
matrix:
julia-version: ["1"]
os: [ubuntu-latest]
package:
- { user: LuxDL, repo: Lux.jl, group: All }
- { user: LuxDL, repo: Boltz.jl, group: All }
- { user: LuxDL, repo: LuxTestUtils.jl, group: All }
- { user: LuxDL, repo: Lux.jl, group: CPU }
- { user: LuxDL, repo: Boltz.jl, group: CPU }
- { user: LuxDL, repo: LuxTestUtils.jl, group: CPU }
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
Expand Down
10 changes: 5 additions & 5 deletions lib/MLDataDevices/test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
import Pkg
using Aqua, SafeTestsets, Test, LuxDeviceUtils, TestSetExtensions

const GROUP = get(ENV, "GROUP", "NONE")
const BACKEND_GROUP = get(ENV, "BACKEND_GROUP", "NONE")

@testset ExtendedTestSet "LuxDeviceUtils Tests" begin
if GROUP == "CUDA" || GROUP == "ALL"
if BACKEND_GROUP == "CUDA" || BACKEND_GROUP == "ALL"
Pkg.add("LuxCUDA")
@safetestset "CUDA" include("cuda.jl")
end

if GROUP == "AMDGPU" || GROUP == "ALL"
if BACKEND_GROUP == "AMDGPU" || BACKEND_GROUP == "ALL"
Pkg.add("AMDGPU")
@safetestset "AMDGPU" include("amdgpu.jl")
end

if GROUP == "Metal" || GROUP == "ALL"
if BACKEND_GROUP == "Metal" || BACKEND_GROUP == "ALL"
Pkg.add("Metal")
@safetestset "Metal" include("metal.jl")
end

if GROUP == "oneAPI" || GROUP == "ALL"
if BACKEND_GROUP == "oneAPI" || BACKEND_GROUP == "ALL"
Pkg.add("oneAPI")
@safetestset "oneAPI" include("oneapi.jl")
end
Expand Down

0 comments on commit c14c4e4

Please sign in to comment.