Skip to content

Commit

Permalink
Merge pull request #3211 from linsword13/c4a-nosmt
Browse files Browse the repository at this point in the history
Add c4a to the nosmt list
  • Loading branch information
mr0re1 authored Nov 4, 2024
2 parents 312100f + 95646b2 commit a25dc21
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ def _list_config_blobs() -> Tuple[Any, str]:
if res["core"] is None:
raise DeffetiveStoredConfigError("config.yaml not found in bucket")
return res, hash.hexdigest()


def _fetch_config(old_hash: Optional[str]) -> Optional[Tuple[NSDict, str]]:
"""Fetch config from bucket, returns None if no changes are detected."""
Expand Down Expand Up @@ -1156,7 +1156,12 @@ def machine_type_sockets(template) -> int:

def isSmt(template) -> bool:
# https://cloud.google.com/compute/docs/cpu-platforms
noSmtFamily = ("t2a", "t2d", "h3",)
noSmtFamily = (
"t2a",
"t2d",
"h3",
"c4a",
)
if machine_type_family(template.machineType) in noSmtFamily:
return False
if template.machine_info.guestCpus == 1:
Expand Down

0 comments on commit a25dc21

Please sign in to comment.