Skip to content

Commit

Permalink
Add new benchmark machine template c2s601t (#14660)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Jerry Wu authored Aug 14, 2023
1 parent df0a814 commit 9376e5f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion build_tools/github_actions/runner/gcp/create_templates.sh
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,13 @@ function create_template() {
--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
Expand All @@ -165,7 +172,8 @@ function create_template() {
}

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
Expand Down

0 comments on commit 9376e5f

Please sign in to comment.