Add new benchmark machine template `c2s601t` (#14660)
Add a new template to create benchmark VM `c2s601t`: `c2-standard-60`
with 1 thread per code (hyper-threading disabled).
skip-ci: Not running in CI
diff --git a/build_tools/github_actions/runner/gcp/create_templates.sh b/build_tools/github_actions/runner/gcp/create_templates.sh
index 07f2fe6..2a77988 100755
--- a/build_tools/github_actions/runner/gcp/create_templates.sh
+++ b/build_tools/github_actions/runner/gcp/create_templates.sh
@@ -151,6 +151,13 @@
--maintenance-policy=MIGRATE
--create-disk="auto-delete=yes,boot=yes,image=projects/iree-oss/global/images/${CPU_IMAGE},mode=rw,size=${DISK_SIZE_GB},type=pd-ssd"
)
+ elif [[ "${type}" == c2s601t ]]; then
+ cmd+=(
+ --machine-type=c2-standard-60
+ --threads-per-core=1
+ --maintenance-policy=MIGRATE
+ --create-disk="auto-delete=yes,boot=yes,image=projects/iree-oss/global/images/${CPU_IMAGE},mode=rw,size=${DISK_SIZE_GB},type=pd-ssd"
+ )
else
echo "Got unrecognized type '${type}'" >2
exit 1
@@ -165,7 +172,8 @@
}
for group in presubmit postsubmit; do
- for type in gpu a100 cpu c2s16; do
+ # TODO(#14661): Remove c2s601t if we decide not to migrate benchmarks to it.
+ for type in gpu a100 cpu c2s16 c2s601t; do
create_template "${group}" "${type}"
done
done