Skip to content

Commit

Permalink
Merge #235
Browse files Browse the repository at this point in the history
235: added RF to buildkite r=odunbar a=odunbar

<!--- THESE LINES ARE COMMENTED -->
## Purpose 
<!--- One sentence to describe the purpose of this PR, refer to any linked issues:
#14 -- this will link to issue 14
Closes #2 -- this will automatically close issue 2 on PR merge
-->
Closes #234

## Content
<!---  specific tasks that are currently complete 
- Solution implemented
-->
- adds Emulator (scalar_optimize_and_plot_rf.jl & vector_optimize_and_plot_rf.jl) into buildkite.

<!---
Review checklist

I have:
- followed the codebase contribution guide: https://clima.github.io/ClimateMachine.jl/latest/Contributing/
- followed the style guide: https://clima.github.io/ClimateMachine.jl/latest/DevDocs/CodeStyle/
- followed the documentation policy: https://github.com/CliMA/policies/wiki/Documentation-Policy
- checked that this PR does not duplicate an open PR.

In the Content, I have included 
- relevant unit tests, and integration tests, 
- appropriate docstrings on all functions, structs, and modules, and included relevant documentation.

-->

----
- [x] I have read and checked the items on the review checklist.


Co-authored-by: odunbar <odunbar@caltech.edu>
  • Loading branch information
bors[bot] and odunbar authored Oct 12, 2023
2 parents fc16b31 + 65a7aee commit d2dc181
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,34 @@ steps:
queue: central
slurm_ntasks: 1

- label: "Random Feature Emulator"
key: "random_feature_emulator"
command: |
export PYTHON="$$JULIA_DEPOT_PATH/conda/3/x86_64/bin/python"
export PYTHONHOME="$$JULIA_DEPOT_PATH/conda/3/x86_64/bin"
export CONDA_JL_HOME="$$JULIA_DEPOT_PATH/conda/3/x86_64/"
mkdir examples/Emulator/RandomFeature/depot
export JULIA_DEPOT_PATH="$$(pwd)/examples/Emulator/RandomFeature/depot:$JULIA_DEPOT_PATH"
julia --color=yes --project=examples/Emulator/RandomFeature -e '
println("--- Developing Project")
using Pkg;
Pkg.develop(path=".")
println("--- Instantiating Project")
Pkg.instantiate()
println("+++ Running Scalar Random Feature cases")
include("examples/Emulator/RandomFeature/scalar_optimize_and_plot_RF.jl")
println("+++ Running Vector Random Feature cases")
include("examples/Emulator/RandomFeature/vector_optimize_and_plot_RF.jl")'
artifact_paths:
- "examples/Emulator/RandomFeature/output/*.png"
env:
PYTHON: "$$JULIA_DEPOT_PATH/conda/3/bin/python"
PYTHONHOME: "$$JULIA_DEPOT_PATH/conda/3/bin"
CONDA_JL_HOME: "$$JULIA_DEPOT_PATH/conda/3"
agents:
config: cpu
queue: central
slurm_ntasks: 1

Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function main()
end

cases = ["svd-diag", "svd-nondiag", "nosvd-diag", "nosvd-nondiag", "svd-nonsep", "nosvd-nonsep"]
case_mask = 1:6 # which cases to do
case_mask = 1:6 # (KEEP set to 1:6 when pushing for buildkite)
nugget = 1e-12

#problem
Expand Down

0 comments on commit d2dc181

Please sign in to comment.