Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
nefrathenrici committed Nov 22, 2024
1 parent 401b12a commit 7d482b2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -564,9 +564,9 @@ steps:
- label: "Calibration interface unit tests"
command: julia --project=calibration/test calibration/test/interface.jl
- label: "end to end test"
command: srun julia --project=calibration/test calibration/test/slurm_workers.jl
command: julia --project=calibration/test calibration/test/slurm_workers.jl
agents:
slurm_ntasks: 11
slurm_ntasks: 12
slurm_cpus_per_task: 1
artifact_paths: "calibration_end_to_end_test/*"
soft_fail: true
Expand Down
7 changes: 5 additions & 2 deletions calibration/test/slurm_workers.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# srun --time=00:15:00 --ntasks=11 --cpus-per-task=1 --output=slurm_workers.txt julia --project=calibration/test/slurm_workers.jl
# srun --time=01:00:00 --ntasks=16 --cpus-per-task=1 --output=slurm_workers.txt julia --project=calibration/test/slurm_workers.jl
using Distributed, ClusterManagers
import ClimaCalibrate as CAL
import ClimaAnalysis: SimDir, get, slice, average_xy
Expand Down Expand Up @@ -73,7 +73,8 @@ function run_iteration(config, iter, worker_pool)
ensemble_results = Dict{Int, Any}()
for _ in 1:config.ensemble_size
m, result = take!(results)
if result isa Exception @error "Member $m failed" error=result
if result isa Exception
@error "Member $m failed" error=result
else
ensemble_results[m] = result
end
Expand All @@ -100,6 +101,8 @@ end

worker_pool = create_worker_pool()

@everywhere println(string(myid()))

@everywhere begin
import ClimaCalibrate as CAL
import ClimaAtmos as CA
Expand Down

0 comments on commit 7d482b2

Please sign in to comment.