From 3e7c8976a9cbd7a9febad12f18612152ebd06693 Mon Sep 17 00:00:00 2001 From: odunbar Date: Thu, 12 Oct 2023 10:27:31 -0700 Subject: [PATCH] added RF to buildkite --- .buildkite/pipeline.yml | 31 +++++++++++++++++++ .../vector_optimize_and_plot_RF.jl | 2 +- 2 files changed, 32 insertions(+), 1 deletion(-) diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index 040ed0e7b..d4075a7ad 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -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/GaussianProcess/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 + diff --git a/examples/Emulator/RandomFeature/vector_optimize_and_plot_RF.jl b/examples/Emulator/RandomFeature/vector_optimize_and_plot_RF.jl index 12cbc17a4..6d134c982 100644 --- a/examples/Emulator/RandomFeature/vector_optimize_and_plot_RF.jl +++ b/examples/Emulator/RandomFeature/vector_optimize_and_plot_RF.jl @@ -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