-
Notifications
You must be signed in to change notification settings - Fork 63
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 #31 from LuxDL/ap/metal_ga
Use Github Actions Mac M1 runners
- Loading branch information
Showing
5 changed files
with
25 additions
and
45 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
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,33 +1,24 @@ | ||
using Aqua, SafeTestsets, Test, Pkg | ||
using Aqua, SafeTestsets, Test, TestSetExtensions, Pkg | ||
using LuxCore, LuxDeviceUtils | ||
|
||
const GROUP = get(ENV, "GROUP", "CUDA") | ||
const GROUP = get(ENV, "GROUP", "NONE") | ||
|
||
@testset "LuxDeviceUtils Tests" begin | ||
if GROUP == "CUDA" | ||
@safetestset "CUDA" begin | ||
include("cuda.jl") | ||
end | ||
@testset ExtendedTestSet "LuxDeviceUtils Tests" begin | ||
if GROUP == "CUDA" || GROUP == "ALL" | ||
@safetestset "CUDA" include("cuda.jl") | ||
end | ||
|
||
if GROUP == "AMDGPU" | ||
@safetestset "CUDA" begin | ||
include("amdgpu.jl") | ||
end | ||
if GROUP == "AMDGPU" || GROUP == "ALL" | ||
@safetestset "AMDGPU" include("amdgpu.jl") | ||
end | ||
|
||
if GROUP == "Metal" | ||
@safetestset "Metal" begin | ||
include("metal.jl") | ||
end | ||
if GROUP == "Metal" || GROUP == "ALL" | ||
@safetestset "Metal" include("metal.jl") | ||
end | ||
|
||
@testset "Others" begin | ||
@testset "Aqua Tests" begin | ||
Aqua.test_all(LuxDeviceUtils) | ||
end | ||
@safetestset "Component Arrays" begin | ||
include("component_arrays.jl") | ||
end | ||
@testset "Aqua Tests" Aqua.test_all(LuxDeviceUtils) | ||
|
||
@safetestset "Component Arrays" include("component_arrays.jl") | ||
end | ||
end |