Skip to content

Commit

Permalink
test: lower cost of parallel tempering test
Browse files Browse the repository at this point in the history
  • Loading branch information
lukas-weber committed Oct 23, 2024
1 parent b2434b2 commit 4cef27c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
6 changes: 3 additions & 3 deletions test/test_parallel_tempering.jl
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@
end

@testset "mpi" begin
μs = [0, 1, 1.5, 1.7, 2]
μs = [0, 1, 1.5, 1.7]

job = make_test_job(
"$tmpdir/parallel_tempering",
50000;
10000;
binsize = 200,
thermalization = 5000,
thermalization = 3000,
mc = ParallelTemperingMC,
ranks_per_run = length(μs),
ntasks = 1,
Expand Down
2 changes: 1 addition & 1 deletion test/test_scheduler_mpi.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ include("test_mc.jl")

job = deserialize(ARGS[1])
# with_logger(Logging.NullLogger()) do
Carlo.start(Carlo.MPIScheduler, job)
Carlo.start(Carlo.MPIScheduler, job)
# end
6 changes: 4 additions & 2 deletions test/test_utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ function make_test_job(
mc = TestMC,
ranks_per_run = 1,
ntasks = 3,
checkpoint_time = "5:00",
run_time = "15:00",
kwargs...,
)
tm = TaskMaker()
Expand All @@ -44,8 +46,8 @@ function make_test_job(
dir,
mc;
tasks = make_tasks(tm),
checkpoint_time = "1:00",
run_time = "10:00",
checkpoint_time,
run_time,
ranks_per_run = ranks_per_run,
)
end
Expand Down

0 comments on commit 4cef27c

Please sign in to comment.