Skip to content

Commit

Permalink
run with more cores on apple
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofferC committed Nov 21, 2024
1 parent 78185b2 commit e71c9d4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .ci/create_sysimage_and_run_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ sysimage = tempname()
create_sysimage(["LinearAlgebra", "Test", "Distributed", "Dates", "REPL", "Printf", "Random"]; sysimage_path=sysimage, incremental=false, filter_stdlibs=true)

current_dir = @__DIR__
run(`$(Base.julia_cmd()) --sysimage=$sysimage --project=$current_dir -e 'Base.runtests(["LinearAlgebra"]; propagate_project=true)'`)
ncores = Sys.isapple() ? Sys.CPU_THREADS : ceil(Int, Sys.CPU_THREADS / 2)
cmd = """Base.runtests(["LinearAlgebra"]; propagate_project=true, ncores=$ncores)"""
run(`$(Base.julia_cmd()) --sysimage=$sysimage --project=$current_dir -e $cmd`)

0 comments on commit e71c9d4

Please sign in to comment.