Skip to content

Commit 3519ba4

Browse files
committed
test: skip cuda installation + tests on pre-releases
1 parent e32fd87 commit 3519ba4

File tree

4 files changed

+12
-13
lines changed

4 files changed

+12
-13
lines changed

.github/workflows/CI_SimpleNonlinearSolve.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,6 @@ jobs:
3333
- core
3434
- adjoint
3535
- alloc_check
36-
- nopre
37-
exclude:
38-
# Don't run nopre tests on prerelease Julia
39-
- group: nopre
40-
version: "pre"
4136
uses: LuxDL/Lux.jl/.github/workflows/CommonCI.yml@ap/ci
4237
with:
4338
julia_version: ${{ matrix.version }}
@@ -54,7 +49,6 @@ jobs:
5449
- core
5550
- adjoint
5651
- alloc_check
57-
- nopre
5852
uses: LuxDL/Lux.jl/.github/workflows/CommonCI.yml@ap/ci
5953
with:
6054
julia_version: "1.11"

Project.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ ArrayInterface = "7.16"
8181
BandedMatrices = "1.5"
8282
BenchmarkTools = "1.4"
8383
BracketingNonlinearSolve = "1"
84-
CUDA = "5.5"
8584
CommonSolve = "0.2.4"
8685
ConcreteStructs = "0.2.3"
8786
DiffEqBase = "6.158.3"
@@ -138,7 +137,6 @@ julia = "1.10"
138137
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
139138
BandedMatrices = "aae01518-5342-5314-be14-df237901396f"
140139
BenchmarkTools = "6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf"
141-
CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba"
142140
ExplicitImports = "7d51a73a-1435-4ff3-83d9-f097790105c7"
143141
FastLevenbergMarquardt = "7a0df574-e128-4d35-8cbd-3d84502bf7ce"
144142
FixedPointAcceleration = "817d07cb-a79a-5c30-9a31-890123675176"
@@ -168,4 +166,4 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
168166
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"
169167

170168
[targets]
171-
test = ["Aqua", "BandedMatrices", "BenchmarkTools", "CUDA", "ExplicitImports", "FastLevenbergMarquardt", "FixedPointAcceleration", "Hwloc", "InteractiveUtils", "LeastSquaresOptim", "LineSearches", "MINPACK", "NLSolvers", "NLsolve", "NaNMath", "NonlinearProblemLibrary", "OrdinaryDiffEqTsit5", "PETSc", "Pkg", "PolyesterForwardDiff", "Random", "ReTestItems", "SIAMFANLEquations", "SparseConnectivityTracer", "SparseMatrixColorings", "SpeedMapping", "StableRNGs", "StaticArrays", "Sundials", "Test", "Zygote"]
169+
test = ["Aqua", "BandedMatrices", "BenchmarkTools", "ExplicitImports", "FastLevenbergMarquardt", "FixedPointAcceleration", "Hwloc", "InteractiveUtils", "LeastSquaresOptim", "LineSearches", "MINPACK", "NLSolvers", "NLsolve", "NaNMath", "NonlinearProblemLibrary", "OrdinaryDiffEqTsit5", "PETSc", "Pkg", "PolyesterForwardDiff", "Random", "ReTestItems", "SIAMFANLEquations", "SparseConnectivityTracer", "SparseMatrixColorings", "SpeedMapping", "StableRNGs", "StaticArrays", "Sundials", "Test", "Zygote"]

test/cuda_tests.jl

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@testitem "CUDA Tests" tags=[:cuda] begin
1+
@testitem "CUDA Tests" tags=[:cuda] skip=:(!isempty(VERSION.prerelease)) begin
22
using CUDA, NonlinearSolve, LinearSolve, StableRNGs
33

44
if CUDA.functional()
@@ -44,7 +44,7 @@
4444
end
4545
end
4646

47-
@testitem "Termination Conditions: Allocations" tags=[:cuda] begin
47+
@testitem "Termination Conditions: Allocations" tags=[:cuda] skip=:(!isempty(VERSION.prerelease)) begin
4848
using CUDA, NonlinearSolveBase, Test, LinearAlgebra
4949

5050
if CUDA.functional()
@@ -67,8 +67,9 @@ end
6767
end
6868

6969
@testset "Mode: $(tcond)" for tcond in NORM_TERMINATION_CONDITIONS
70-
for nfn in
71-
(Base.Fix1(maximum, abs), Base.Fix2(norm, 2), Base.Fix2(norm, Inf))
70+
for nfn in (
71+
Base.Fix1(maximum, abs), Base.Fix2(norm, 2), Base.Fix2(norm, Inf)
72+
)
7273
@test_nowarn NonlinearSolveBase.check_convergence(
7374
tcond(nfn), du, u, uprev, 1e-3, 1e-3)
7475
end

test/runtests.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ if GROUP == "all" || GROUP == "nopre"
3535
push!(EXTRA_PKGS, Pkg.PackageSpec("Enzyme"))
3636
end
3737
end
38+
if GROUP == "all" || GROUP == "cuda"
39+
# Only add CUDA for cuda group if not on prerelease Julia
40+
if isempty(VERSION.prerelease)
41+
push!(EXTRA_PKGS, Pkg.PackageSpec("CUDA"))
42+
end
43+
end
3844
length(EXTRA_PKGS) 1 && Pkg.add(EXTRA_PKGS)
3945

4046
# Use sequential execution for wrapper tests to avoid parallel initialization issues

0 commit comments

Comments
 (0)