Skip to content

Commit

Permalink
Fix FIRK CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikQQY committed Nov 9, 2024
1 parent 163d1b1 commit 711a6b3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ BoundaryValueDiffEqODEInterfaceExt = "ODEInterface"

[compat]
ADTypes = "1.9"
Adapt = "4"
Adapt = "4.1.1"
Aqua = "0.8.7"
ArrayInterface = "7.16"
BandedMatrices = "1.7.5"
Expand Down
24 changes: 17 additions & 7 deletions lib/BoundaryValueDiffEqFIRK/test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
using ReTestItems, BoundaryValueDiffEqFIRK
using ReTestItems, BoundaryValueDiffEqFIRK, Hwloc, InteractiveUtils

@time "FIRK Expanded solvers" begin
ReTestItems.runtests("expanded/")
end
@info sprint(InteractiveUtils.versioninfo)

@time "FIRK Nested solvers" begin
ReTestItems.runtests("nested/")
end
const GROUP = lowercase(get(ENV, "GROUP", "All"))

const RETESTITEMS_NWORKERS = parse(Int,
get(ENV, "RETESTITEMS_NWORKERS",
string(min(ifelse(Sys.iswindows(), 0, Hwloc.num_physical_cores()), 4))))
const RETESTITEMS_NWORKER_THREADS = parse(Int,
get(ENV, "RETESTITEMS_NWORKER_THREADS",
string(max(Hwloc.num_virtual_cores() ÷ max(RETESTITEMS_NWORKERS, 1), 1))))

@info "Running tests for group: $(GROUP) with $(RETESTITEMS_NWORKERS) workers"

ReTestItems.runtests(
BoundaryValueDiffEqFIRK; tags = (GROUP == "all" ? nothing : [Symbol(GROUP)]),
nworkers = RETESTITEMS_NWORKERS,
nworker_threads = RETESTITEMS_NWORKER_THREADS, testitem_timeout = 300 * 60)

0 comments on commit 711a6b3

Please sign in to comment.