Skip to content

Commit

Permalink
move run to CPU
Browse files Browse the repository at this point in the history
  • Loading branch information
kmdeck committed Aug 22, 2024
1 parent 5b53f1b commit ed80730
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 10 deletions.
13 changes: 4 additions & 9 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,10 @@ steps:
agents:
slurm_mem: 16G

- label: "Canopy Implicit Stepping CPU"
command: "julia --color=yes --project=.buildkite experiments/standalone/Vegetation/timestep_test.jl"
artifact_paths: "experiments/standalone/Vegetation/errors.png"

- group: "Experiments on GPU"
steps:
- label: "Richards Runoff GPU"
Expand All @@ -134,15 +138,6 @@ steps:
env:
CLIMACOMMS_DEVICE: "CUDA"

- label: "Canopy Implicit Stepping GPU"
command: "julia --color=yes --project=.buildkite experiments/standalone/Vegetation/timestep_test.jl"
artifact_paths: "experiments/standalone/Vegetation/errors.png"
agents:
slurm_ntasks: 1
slurm_gres: "gpu:1"
env:
CLIMACOMMS_DEVICE: "CUDA"

- group: "ClimaLandSimulations"
steps:
- label: "Ozark figures Makie"
Expand Down
2 changes: 1 addition & 1 deletion experiments/long_runs/land.jl
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ end
function setup_and_solve_problem(; greet = false)

t0 = 0.0
tf = 60 * 60.0 * 24 * 60 # keep short until it runs! * 365
tf = 60 * 60.0 * 24 * 7 # keep short until it runs! * 365
Δt = 900.0
nelements = (101, 15)
if greet
Expand Down
13 changes: 13 additions & 0 deletions src/shared_utilities/models.jl
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,19 @@ function make_imp_tendency(model::AbstractImExModel)
return imp_tendency!
end

"""
make_imp_tendency(model::AbstractModel)
Returns an `imp_tendency` that does nothing. This model type is not
stepped explicity.
"""
function make_imp_tendency(model::AbstractModel)
compute_imp_tendency! = make_compute_imp_tendency(model)
function imp_tendency!(dY, Y, p, t)
compute_imp_tendency!(dY, Y, p, t)
end
end

"""
make_exp_tendency(model::AbstractModel)
Expand Down

0 comments on commit ed80730

Please sign in to comment.