use_switch_only -> use_for_switch_only

This commit is contained in:
Sagar Karandikar 2022-06-12 03:32:52 +00:00
parent aa60fb7471
commit e035144ec2
3 changed files with 12 additions and 12 deletions

View File

@ -35,29 +35,29 @@ args:
- f1.2xlarge:
num_fpgas: 1
num_metasims: 0
use_switch_only: false
use_for_switch_only: false
- f1.4xlarge:
num_fpgas: 2
num_metasims: 0
use_switch_only: false
use_for_switch_only: false
- f1.16xlarge:
num_fpgas: 8
num_metasims: 0
use_switch_only: false
use_for_switch_only: false
- m4.16xlarge:
num_fpgas: 0
num_metasims: 0
use_switch_only: true
use_for_switch_only: true
- z1d.3xlarge:
num_fpgas: 0
num_metasims: 1
use_switch_only: false
use_for_switch_only: false
- z1d.6xlarge:
num_fpgas: 0
num_metasims: 2
use_switch_only: false
use_for_switch_only: false
- z1d.12xlarge:
num_fpgas: 0
num_metasims: 8
use_switch_only: false
use_for_switch_only: false

View File

@ -42,14 +42,14 @@ args:
num_metasims: 0
# REQUIRED: whether it is acceptable to use machines of this spec
# to host ONLY switches (e.g. any attached FPGAs are "wasted")
use_switch_only: false
use_for_switch_only: false
- four_metasims_spec:
num_fpgas: 0
num_metasims: 4
use_switch_only: false
use_for_switch_only: false
- switch_only_spec:
num_fpgas: 0
num_metasims: 0
use_switch_only: true
use_for_switch_only: true

View File

@ -308,7 +308,7 @@ class AWSEC2F1(RunFarm):
for runhost_spec_name, runhost_spec in runhost_specs.items():
self.SIM_HOST_HANDLE_TO_MAX_FPGA_SLOTS[runhost_spec_name] = runhost_spec['num_fpgas']
self.SIM_HOST_HANDLE_TO_MAX_METASIM_SLOTS[runhost_spec_name] = runhost_spec['num_metasims']
self.SIM_HOST_HANDLE_TO_SWITCH_ONLY_OK[runhost_spec_name] = runhost_spec['use_switch_only']
self.SIM_HOST_HANDLE_TO_SWITCH_ONLY_OK[runhost_spec_name] = runhost_spec['use_for_switch_only']
runhosts_list = self.args["run_farm_hosts_to_use"]
@ -520,7 +520,7 @@ class ExternallyProvisioned(RunFarm):
# populate mapping helpers based on runhost_specs:
self.SIM_HOST_HANDLE_TO_MAX_FPGA_SLOTS[ip_addr] = host_spec['num_fpgas']
self.SIM_HOST_HANDLE_TO_MAX_METASIM_SLOTS[ip_addr] = host_spec['num_metasims']
self.SIM_HOST_HANDLE_TO_SWITCH_ONLY_OK[ip_addr] = host_spec['use_switch_only']
self.SIM_HOST_HANDLE_TO_SWITCH_ONLY_OK[ip_addr] = host_spec['use_for_switch_only']
num_sims = 0
if self.metasimulation_enabled: