Skip to content

Commit

Permalink
install libxcrypt-compat required by SPEC CPU in all EL systems
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 697748309
  • Loading branch information
m4r1k authored and copybara-github committed Nov 18, 2024
1 parent 76f62a2 commit f35ed6f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions perfkitbenchmarker/linux_packages/speccpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@
import os
import posixpath
import re

from absl import flags
from perfkitbenchmarker import data
from perfkitbenchmarker import errors
from perfkitbenchmarker import os_types
from perfkitbenchmarker import sample
from perfkitbenchmarker import stages
from perfkitbenchmarker.linux_packages import build_tools
Expand Down Expand Up @@ -356,6 +358,9 @@ def Install(vm):
vm.Install('fortran')
vm.Install('build_tools')

if vm.OS_TYPE in os_types.EL_OS_TYPES:
vm.InstallPackages('libxcrypt-compat')

# If runspec_build_tool_version is not set,
# install 4.7 gcc/g++/gfortan. If either one of the flag is set, we assume
# user is smart
Expand Down
10 changes: 10 additions & 0 deletions perfkitbenchmarker/os_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,16 @@
AMAZON_NEURON,
]

EL_OS_TYPES = [
CENTOS_TYPES,
RHEL8,
RHEL9,
ROCKY_LINUX8,
ROCKY_LINUX8_OPTIMIZED,
ROCKY_LINUX9,
ROCKY_LINUX9_OPTIMIZED,
]

ALL = LINUX_OS_TYPES + WINDOWS_OS_TYPES
BASE_OS_TYPES = [CLEAR, CORE_OS, DEBIAN, RHEL, WINDOWS]

Expand Down

0 comments on commit f35ed6f

Please sign in to comment.