code
stringlengths
66
870k
docstring
stringlengths
19
26.7k
func_name
stringlengths
1
138
language
stringclasses
1 value
repo
stringlengths
7
68
path
stringlengths
5
324
url
stringlengths
46
389
license
stringclasses
7 values
def YumInstall(_): """Install the chromium_compile package on the VM using yum.""" raise NotImplementedError( 'Installation of chromium_compile is only supported on Debian.' )
Install the chromium_compile package on the VM using yum.
YumInstall
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/chromium_compile.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/chromium_compile.py
Apache-2.0
def _ParseFioJson(fio_json): """Parse fio json output. Args: fio_json: string. Json output from fio comomand. Returns: A list of sample.Sample object. """ samples = [] for job in json.loads(fio_json)['jobs']: cmd = job['fio_command'] # Get rid of ./fio. cmd = ' '.join(cmd.split()[1:]) ...
Parse fio json output. Args: fio_json: string. Json output from fio comomand. Returns: A list of sample.Sample object.
_ParseFioJson
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/ch_block_storage.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/ch_block_storage.py
Apache-2.0
def _ParseCHResultsJson(results_json): """Parse json output from CloudHarmony block storage benchmark. Args: results_json: JSON formatted results for test. Each test provides a key/value pair. Returns: A list of sample.Sample object. """ metadata = {} _ExtractMetadata(metadata) return [ ...
Parse json output from CloudHarmony block storage benchmark. Args: results_json: JSON formatted results for test. Each test provides a key/value pair. Returns: A list of sample.Sample object.
_ParseCHResultsJson
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/ch_block_storage.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/ch_block_storage.py
Apache-2.0
def ParseOutput(results_json, fio_json_list): """Parse json output from CloudHarmony block storage benchmark. Args: results_json: string. Json output reported by CloudHarmony. fio_json_list: list of string. Json output strings from fio command. Returns: A list of sample.Sample object. """ retur...
Parse json output from CloudHarmony block storage benchmark. Args: results_json: string. Json output reported by CloudHarmony. fio_json_list: list of string. Json output strings from fio command. Returns: A list of sample.Sample object.
ParseOutput
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/ch_block_storage.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/ch_block_storage.py
Apache-2.0
def Install(vm): """Install Cloud Harmory network benchmark on VM.""" for deps in ['php', 'build_tools', 'curl']: vm.Install(deps) vm.RemoteCommand( f'git clone --recurse-submodules {BENCHMARK_GIT_URL} {INSTALL_PATH}' )
Install Cloud Harmory network benchmark on VM.
Install
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/cloud_harmony_network.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/cloud_harmony_network.py
Apache-2.0
def Install(vm): """Installs cloud TPU models on the VM.""" vm.InstallPackages('git') vm.RemoteCommand('git clone {}'.format(CLOUD_TPU_GIT)) vm.RemoteCommand( 'cd tpu && git checkout {}'.format(FLAGS.cloud_tpu_commit_hash) ) vm.Install('pip') vm.RemoteCommand('sudo pip install absl-py')
Installs cloud TPU models on the VM.
Install
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/cloud_tpu_models.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/cloud_tpu_models.py
Apache-2.0
def _Install(vm): """Installs the cmake package on the VM.""" vm.InstallPackages('cmake') text, _ = vm.RemoteCommand('cmake --version') logging.info('Installed cmake version %s', text.splitlines()[0].split()[-1])
Installs the cmake package on the VM.
_Install
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/cmake.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/cmake.py
Apache-2.0
def InstallCoremark(remote_command): """Installs coremark on a VM. Args: remote_command: Function to run a remote command on the VM. This allows this function to be reused by the windows/cygwin version of the coremark test. """ remote_command( 'wget %s -P %s' % (COREMARK_TAR_URL, linux_packages...
Installs coremark on a VM. Args: remote_command: Function to run a remote command on the VM. This allows this function to be reused by the windows/cygwin version of the coremark test.
InstallCoremark
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/coremark.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/coremark.py
Apache-2.0
def _Install(vm): """Installs the crcmod package on the VM.""" vm.Install('pip') vm.RemoteCommand('sudo pip3 install -U crcmod')
Installs the crcmod package on the VM.
_Install
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/crcmod.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/crcmod.py
Apache-2.0
def GetBandwidthTestPath(vm): """Get CUDA band width test binary path.""" if vm.TryRemoteCommand(f'stat {BANDWIDTH_TEST_PATH}'): return BANDWIDTH_TEST_PATH cpu_arch = cuda_toolkit.GetCpuArchPath(vm) bandwidth_test_path = ( f'cuda-samples/bin/{cpu_arch}/linux/release/bandwidthTest' ) if vm.TryRemo...
Get CUDA band width test binary path.
GetBandwidthTestPath
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/cuda_samples.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/cuda_samples.py
Apache-2.0
def GetMetadata(vm): """Returns gpu-specific metadata as a dict. Args: vm: virtual machine to operate on Returns: A dict of gpu- and CUDA- specific metadata. """ metadata = nvidia_driver.GetMetadata(vm) metadata['cuda_toolkit_version'] = FLAGS.cuda_toolkit_version metadata['cuda_toolkit_home'] =...
Returns gpu-specific metadata as a dict. Args: vm: virtual machine to operate on Returns: A dict of gpu- and CUDA- specific metadata.
GetMetadata
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/cuda_toolkit.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/cuda_toolkit.py
Apache-2.0
def GetCudaToolkitVersion(vm): """Get the CUDA toolkit version on the vm, based on nvcc. Args: vm: the virtual machine to query Returns: A string containing the active CUDA toolkit version, None if nvcc could not be found Raises: NvccParseOutputError: On can not parse nvcc output """ stdo...
Get the CUDA toolkit version on the vm, based on nvcc. Args: vm: the virtual machine to query Returns: A string containing the active CUDA toolkit version, None if nvcc could not be found Raises: NvccParseOutputError: On can not parse nvcc output
GetCudaToolkitVersion
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/cuda_toolkit.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/cuda_toolkit.py
Apache-2.0
def EnrollSigningKey(vm): """Fetch GPG Keys for CUDA Toolkit. Args: vm: the virtual machine to install CUDA on. """ if FLAGS.cuda_toolkit_version in ( '11.7', '11.8', '12.0', '12.1', '12.2', '12.6', ): version = FLAGS.cuda_toolkit_version.replace('.', '-') vm.R...
Fetch GPG Keys for CUDA Toolkit. Args: vm: the virtual machine to install CUDA on.
EnrollSigningKey
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/cuda_toolkit.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/cuda_toolkit.py
Apache-2.0
def _InstallCudaPatch(vm, patch_url): """Installs CUDA Toolkit patch from NVIDIA. Args: vm: VM to install patch on patch_url: url of the CUDA patch to install """ # Need to append .deb to package name because the file downloaded from # NVIDIA is missing the .deb extension. basename = posixpath.base...
Installs CUDA Toolkit patch from NVIDIA. Args: vm: VM to install patch on patch_url: url of the CUDA patch to install
_InstallCudaPatch
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/cuda_toolkit.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/cuda_toolkit.py
Apache-2.0
def _InstallCuda9Point0(vm): """Installs CUDA Toolkit 9.0 from NVIDIA. Args: vm: VM to install CUDA on """ basename = ( posixpath.basename( CUDA_9_0_TOOLKIT.format( os=_CudaOs(vm.OS_TYPE), cpu_arch=_GetCpuArch(vm) ) ) + '.deb' ) vm.RemoteCommand( ...
Installs CUDA Toolkit 9.0 from NVIDIA. Args: vm: VM to install CUDA on
_InstallCuda9Point0
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/cuda_toolkit.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/cuda_toolkit.py
Apache-2.0
def _InstallCuda10Point0(vm): """Installs CUDA Toolkit 10.0 from NVIDIA. Args: vm: VM to install CUDA on """ basename = ( f'{posixpath.basename(CUDA_10_0_TOOLKIT.format(os=_CudaOs(vm.OS_TYPE), cpu_arch=_GetCpuArch(vm)))}.deb' ) vm.RemoteCommand( 'wget -q' f' {CUDA_10_0_TOOLKIT.format(...
Installs CUDA Toolkit 10.0 from NVIDIA. Args: vm: VM to install CUDA on
_InstallCuda10Point0
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/cuda_toolkit.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/cuda_toolkit.py
Apache-2.0
def _InstallCuda10Point1(vm): """Installs CUDA Toolkit 10.1 from NVIDIA. Args: vm: VM to install CUDA on """ basename = posixpath.basename( CUDA_10_1_TOOLKIT.format(os=_CudaOs(vm.OS_TYPE), cpu_arch=_GetCpuArch(vm)) ) vm.RemoteCommand( 'wget -q %s' % CUDA_PIN.format(os=_CudaOs(vm.OS_TY...
Installs CUDA Toolkit 10.1 from NVIDIA. Args: vm: VM to install CUDA on
_InstallCuda10Point1
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/cuda_toolkit.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/cuda_toolkit.py
Apache-2.0
def _InstallCuda10Point2(vm): """Installs CUDA Toolkit 10.2 from NVIDIA. Args: vm: VM to install CUDA on """ basename = posixpath.basename( CUDA_10_2_TOOLKIT.format(os=_CudaOs(vm.OS_TYPE), cpu_arch=_GetCpuArch(vm)) ) vm.RemoteCommand( 'wget -q %s' % CUDA_PIN.format(os=_CudaOs(vm.OS_TY...
Installs CUDA Toolkit 10.2 from NVIDIA. Args: vm: VM to install CUDA on
_InstallCuda10Point2
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/cuda_toolkit.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/cuda_toolkit.py
Apache-2.0
def _InstallCuda12Generic(vm, toolkit_fmt, version_dash): """Installs CUDA Toolkit 12.x from NVIDIA. Args: vm: VM to install CUDA on toolkit_fmt: format string to use for the toolkit name version_dash: Version (ie 12-1) to install """ vm.RemoteCommand( 'wget -q' f' {CUDA_PIN.format(os=_...
Installs CUDA Toolkit 12.x from NVIDIA. Args: vm: VM to install CUDA on toolkit_fmt: format string to use for the toolkit name version_dash: Version (ie 12-1) to install
_InstallCuda12Generic
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/cuda_toolkit.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/cuda_toolkit.py
Apache-2.0
def _InstallCuda11Generic(vm, toolkit_fmt, version_dash): """Installs CUDA Toolkit 11.x from NVIDIA. Args: vm: VM to install CUDA on toolkit_fmt: format string to use for the toolkit name version_dash: Version (ie 11-1) to install """ vm.RemoteCommand( 'wget -q' f' {CUDA_PIN.format(os=_...
Installs CUDA Toolkit 11.x from NVIDIA. Args: vm: VM to install CUDA on toolkit_fmt: format string to use for the toolkit name version_dash: Version (ie 11-1) to install
_InstallCuda11Generic
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/cuda_toolkit.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/cuda_toolkit.py
Apache-2.0
def AptInstall(vm): """Installs CUDA toolkit on the VM if not already installed.""" version_to_install = FLAGS.cuda_toolkit_version if version_to_install == 'None' or not version_to_install: return current_version = GetCudaToolkitVersion(vm) if current_version == version_to_install: return cuda_pat...
Installs CUDA toolkit on the VM if not already installed.
AptInstall
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/cuda_toolkit.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/cuda_toolkit.py
Apache-2.0
def Uninstall(vm): """Removes the CUDA toolkit. Args: vm: VM that installed CUDA Note that reinstallation does not work correctly, i.e. you cannot reinstall CUDA by calling _Install() again. """ vm.RemoteCommand(f'rm -f cuda-repo-{_CudaOs(vm.OS_TYPE)}*') vm.RemoteCommand('sudo rm -rf {cuda_home}'.fo...
Removes the CUDA toolkit. Args: vm: VM that installed CUDA Note that reinstallation does not work correctly, i.e. you cannot reinstall CUDA by calling _Install() again.
Uninstall
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/cuda_toolkit.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/cuda_toolkit.py
Apache-2.0
def Install(vm): """Installs the `dacapo` package on the VM.""" vm.Install('openjdk') vm.RemoteCommand('wget %s -P %s' % (_DACAPO_URL, linux_packages.INSTALL_DIR))
Installs the `dacapo` package on the VM.
Install
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/dacapo.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/dacapo.py
Apache-2.0
def Install(vm): """Download and configure the dlrm data on the VM.""" vm.InstallPackages('unzip') vm.RemoteCommand(f'mkdir -p {DATA_PATH}') vm.InstallPreprovisionedPackageData( PACKAGE_NAME, DLRM_DATA, DATA_PATH, DLRM_DOWNLOAD_TIMEOUT ) vm.InstallPreprovisionedPackageData( PACKAGE_NAME, ['weigh...
Download and configure the dlrm data on the VM.
Install
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/dlrm.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/dlrm.py
Apache-2.0
def __init__(self, name): """Creates a vm-installable package from a docker image.""" self.name = name self.__name__ = name
Creates a vm-installable package from a docker image.
__init__
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/docker.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/docker.py
Apache-2.0
def Install(self, vm): """Installs the docker image for self.name on the VM.""" vm.Install('docker') vm.RemoteCommand('sudo docker pull {}'.format(self.name))
Installs the docker image for self.name on the VM.
Install
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/docker.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/docker.py
Apache-2.0
def YumInstall(vm): """Installs the docker package on the VM.""" if IsInstalled(vm): return vm.RemoteHostCommand( 'curl -o %s/docker.rpm -sSL %s' % (linux_packages.INSTALL_DIR, DOCKER_RPM_URL) ) vm.RemoteHostCommand( 'sudo yum localinstall --nogpgcheck %s/docker.rpm -y' % linux_pac...
Installs the docker package on the VM.
YumInstall
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/docker.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/docker.py
Apache-2.0
def AddUser(vm: virtual_machine.BaseVirtualMachine) -> None: """Run Docker as a non-root user. https://docs.docker.com/engine/install/linux-postinstall/#manage-docker-as-a-non-root-user Args: vm: The VM to work on """ # Create the docker group. vm.RemoteCommand('sudo groupadd docker', ignore_failure=T...
Run Docker as a non-root user. https://docs.docker.com/engine/install/linux-postinstall/#manage-docker-as-a-non-root-user Args: vm: The VM to work on
AddUser
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/docker.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/docker.py
Apache-2.0
def _Install(vm): """Install DPDK after installing dependencies and applying patches.""" vm.Install('pip') vm.RobustRemoteCommand(f'git clone {DPDK_GIT_REPO}') vm.RobustRemoteCommand(f'cd dpdk && git checkout {DPDK_GIT_REPO_TAG}') if vm.CLOUD == 'GCP': # Get out of tree driver vm.RobustRemoteCommand(f...
Install DPDK after installing dependencies and applying patches.
_Install
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/dpdk.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/dpdk.py
Apache-2.0
def AptInstall(vm): """Install DPDK using apt. Tested on Ubuntu20.""" vm.InstallPackages( 'build-essential ninja-build meson git pciutils pkg-config' ' python3-pyelftools libnuma-dev' ) # https://github.com/amzn/amzn-drivers/tree/master/userspace/dpdk#6-vfio-pci-and-igb_uio if vm.CLOUD == 'AWS': ...
Install DPDK using apt. Tested on Ubuntu20.
AptInstall
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/dpdk.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/dpdk.py
Apache-2.0
def YumInstall(vm): """Install DPDK using yum. Tested on Amazonlinux2023.""" vm.Install('pip') vm.InstallPackages('git kernel-devel kernel-headers libatomic numactl-devel') vm.RemoteCommand('sudo pip3 install meson ninja pyelftools') if vm.CLOUD == 'AWS': vm.RemoteCommand(f'git clone {DPDK_AWS_DRIVER_GIT_...
Install DPDK using yum. Tested on Amazonlinux2023.
YumInstall
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/dpdk.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/dpdk.py
Apache-2.0
def _AllocateHugePages(vm): """Allocates Huge Pages required for DPDK. Args: vm: The VM on which to install DPDK. """ # Hugepage Allocation vm.RemoteCommand('sudo mkdir /mnt/huge') vm.RemoteCommand('sudo mount -t hugetlbfs -o pagesize=1G none /mnt/huge') if vm.numa_node_count == 1: vm.RemoteComma...
Allocates Huge Pages required for DPDK. Args: vm: The VM on which to install DPDK.
_AllocateHugePages
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/dpdk.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/dpdk.py
Apache-2.0
def _BindNICToDPDKDriver(vm): """Binds NIC's to the DPDK driver. Args: vm: The VM on which to install DPDK. """ # Get non-primary NIC stdout, _ = vm.RemoteCommand('sudo ip addr') nic_match = re.search('3: ([a-zA-Z0-9]+):', stdout) if not nic_match: raise errors.VirtualMachine.VmStateError( ...
Binds NIC's to the DPDK driver. Args: vm: The VM on which to install DPDK.
_BindNICToDPDKDriver
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/dpdk.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/dpdk.py
Apache-2.0
def _Install(vm): """Installs dpdk-pktgen on the VM.""" vm.Install('dpdk') vm.RobustRemoteCommand(f'git clone {DPDK_PKTGEN_GIT_REPO}') vm.RobustRemoteCommand( f'cd {DPDK_PKTGEN_GIT_REPO_DIR} && git checkout' f' {DPDK_PKTGEN_GIT_REPO_TAG}' ) # AWS ENA needs explicit IPv4/UDP checksum offloading v...
Installs dpdk-pktgen on the VM.
_Install
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/dpdk_pktgen.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/dpdk_pktgen.py
Apache-2.0
def YumInstall(vm): """Install dependencies on YUM-based systems.""" vm.InstallPackages( 'make gcc kernel-devel elfutils-libelf-devel patch' ' libasan libpcap-devel libbsd-devel numactl-devel glibc-devel' ' readline-devel pciutils git gcc-c++ autoconf automake libtool wget' ' python ncurses-...
Install dependencies on YUM-based systems.
YumInstall
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/dpdk_pktgen.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/dpdk_pktgen.py
Apache-2.0
def ParseCsvFile(fp: TextIO) -> Tuple[List[str], np.ndarray]: """Parse pcp dstat results file in csv format. This is an example of a pcp dstat CSV output: "pcp-dstat 6.2.0 CSV Output" "Author:","PCP team <pcp@groups.io> and Dag Wieers <dag@wieers.com>",,,... "Host:","hostname",,,,"User:","perfkit...
Parse pcp dstat results file in csv format. This is an example of a pcp dstat CSV output: "pcp-dstat 6.2.0 CSV Output" "Author:","PCP team <pcp@groups.io> and Dag Wieers <dag@wieers.com>",,,... "Host:","hostname",,,,"User:","perfkit" "Cmdline:","pcp-dstat --epoch ... ,,,,"Date:","17 Sep 2024 ...
ParseCsvFile
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/dstat.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/dstat.py
Apache-2.0
def AptInstall(vm): """Installs FFmpeg on systems with the apt package manager.""" if not _BUILD_FFMPEG_FROM_SOURCE.value: vm.InstallPackages('ffmpeg') return stdout, _ = vm.RemoteCommand( 'if lspci | grep -i "NVIDIA Corporation" >/dev/null; then echo "Contains' ' GPU"; else echo "Does not co...
Installs FFmpeg on systems with the apt package manager.
AptInstall
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/ffmpeg.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/ffmpeg.py
Apache-2.0
def _Install(vm): """Installs the fio package on the VM.""" for p in ['build_tools', 'pip']: vm.Install(p) for package in ('numpy', 'pandas'): vm.RemoteCommand(f'sudo pip3 install {package}') vm.RemoteCommand('git clone {} {}'.format(GIT_REPO, FIO_DIR)) vm.RemoteCommand('cd {} && git checkout {}'.form...
Installs the fio package on the VM.
_Install
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/fio.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/fio.py
Apache-2.0
def FioParametersToJob(fio_parameters): """Translate fio parameters into a job config file. Sample fio parameters: --filesize=10g --directory=/scratch0 --name=sequential_write --overwrite=0 --rw=write Output: [global] filesize=10g directory=/scratch0 [sequential_write] overwrite=0 rw=write Ar...
Translate fio parameters into a job config file. Sample fio parameters: --filesize=10g --directory=/scratch0 --name=sequential_write --overwrite=0 --rw=write Output: [global] filesize=10g directory=/scratch0 [sequential_write] overwrite=0 rw=write Args: fio_parameters: string. Fio parameter...
FioParametersToJob
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/fio.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/fio.py
Apache-2.0
def ParseResults( job_file, fio_json_result, base_metadata=None, log_file_base='', bin_vals=None, skip_latency_individual_stats=False, require_merge=False, ): """Parse fio json output into samples. Args: job_file: The contents of the fio job file. fio_json_result: Fio results in...
Parse fio json output into samples. Args: job_file: The contents of the fio job file. fio_json_result: Fio results in json format. base_metadata: Extra metadata to annotate the samples with. log_file_base: String. Base name for fio log files. bin_vals: A 2-D list of int. Each list represents a li...
ParseResults
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/fio.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/fio.py
Apache-2.0
def ComputeHistogramBinVals(vm, log_file): """Calculate bin values for histogram. Args: vm: VirtualMachine object. log_file: String. Name of the log file. Returns: A list of float. Representing the mean value of the bin. """ try: return [ float(v) for v in vm.RemoteCommand('....
Calculate bin values for histogram. Args: vm: VirtualMachine object. log_file: String. Name of the log file. Returns: A list of float. Representing the mean value of the bin.
ComputeHistogramBinVals
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/fio.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/fio.py
Apache-2.0
def DeleteParameterFromJobFile(job_file, parameter): """Delete all occurrences of parameter from job_file. Args: job_file: The contents of the fio job file. parameter: The parameter to be deleted in job file. Returns: A string representing a fio job file after removing parameter. """ try: re...
Delete all occurrences of parameter from job_file. Args: job_file: The contents of the fio job file. parameter: The parameter to be deleted in job file. Returns: A string representing a fio job file after removing parameter.
DeleteParameterFromJobFile
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/fio.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/fio.py
Apache-2.0
def _ParseHistogram(hist_log_file, mean_bin_vals): """Parses histogram log file reported by fio. Args: hist_log_file: String. File name of fio histogram log. Format: time (msec), data direction (0: read, 1: write, 2: trim), block size, bin 0, .., etc mean_bin_vals: List of float. Representing the mea...
Parses histogram log file reported by fio. Args: hist_log_file: String. File name of fio histogram log. Format: time (msec), data direction (0: read, 1: write, 2: trim), block size, bin 0, .., etc mean_bin_vals: List of float. Representing the mean value of each bucket. Returns: A dict of the hi...
_ParseHistogram
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/fio.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/fio.py
Apache-2.0
def _BuildHistogramSamples( aggregates, metric_prefix='', additional_metadata=None ): """Builds a sample for a histogram aggregated from several files. Args: metric_prefix: String. Prefix of the metric name to use. additional_metadata: dict. Additional metadata attaching to Sample. Returns: samp...
Builds a sample for a histogram aggregated from several files. Args: metric_prefix: String. Prefix of the metric name to use. additional_metadata: dict. Additional metadata attaching to Sample. Returns: samples.Sample object that reports the fio histogram.
_BuildHistogramSamples
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/fio.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/fio.py
Apache-2.0
def YumInstall(vm): """Installs the fortran package on the VM.""" if VERSION.value: _YumInstallVersion(vm, VERSION.value) else: vm.InstallPackages('gcc-gfortran libgfortran') _LogFortranVersion(vm)
Installs the fortran package on the VM.
YumInstall
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/fortran.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/fortran.py
Apache-2.0
def AptInstall(vm): """Installs the fortan package on the VM.""" if VERSION.value: _AptInstallVersion(vm, VERSION.value) else: vm.InstallPackages('gfortran') _LogFortranVersion(vm)
Installs the fortan package on the VM.
AptInstall
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/fortran.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/fortran.py
Apache-2.0
def _YumInstallVersion(vm, version): """Does yum install for the version of fortran.""" vm.InstallPackages('centos-release-scl-rh') devtoolset = f'devtoolset-{version}' vm.InstallPackages(f'{devtoolset}-gcc-gfortran') # Sets the path to use the newly installed version vm.RemoteCommand(f'echo "source scl_sou...
Does yum install for the version of fortran.
_YumInstallVersion
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/fortran.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/fortran.py
Apache-2.0
def _AptInstallVersion(vm, version): """Does an apt install for the version of fortran.""" vm.Install('ubuntu_toolchain') vm.InstallPackages(f'gfortran-{version}') # make symlink so that 'gfortran' will use the newly installed version vm.RemoteCommand( 'sudo update-alternatives --install /usr/bin/gfortr...
Does an apt install for the version of fortran.
_AptInstallVersion
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/fortran.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/fortran.py
Apache-2.0
def YumInstall(vm): """Applies the hpc-tools environment script. Optionally reboots. Args: vm: Virtual machine to apply HPC tools on. """ tools_version = _CloneRepo(vm, FLAGS.gce_hpc_tools_tag) vm.metadata.update({ 'hpc_tools': True, 'hpc_tools_tag': FLAGS.gce_hpc_tools_tag or 'head', ...
Applies the hpc-tools environment script. Optionally reboots. Args: vm: Virtual machine to apply HPC tools on.
YumInstall
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/gce_hpc_tools.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/gce_hpc_tools.py
Apache-2.0
def AptInstall(vm): """Installs the gcsfuse package and mounts gcsfuse. Args: vm: BaseVirtualMachine. VM to receive the scripts. """ vm.InstallPackages('wget') vm.RemoteCommand( 'wget -O {local} {url}'.format(local=PACKAGE_LOCAL, url=_PackageUrl()) ) vm.RemoteCommand( f'sudo apt-get inst...
Installs the gcsfuse package and mounts gcsfuse. Args: vm: BaseVirtualMachine. VM to receive the scripts.
AptInstall
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/gcsfuse.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/gcsfuse.py
Apache-2.0
def _Install(vm): """Installs the GCS boto plugin on the VM.""" vm.Install('pip') vm.RemoteCommand( 'sudo pip3 install --ignore-installed gcs-oauth2-boto-plugin' )
Installs the GCS boto plugin on the VM.
_Install
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/gcs_boto_plugin.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/gcs_boto_plugin.py
Apache-2.0
def GetGccVersion(vm): """Get the currently installed gcc version.""" _, stderr = vm.RemoteCommand('gcc -v') match = _GCC_VERSION_RE.search(stderr) if not match: raise errors.Benchmarks.RunError('Invalid gcc version %s' % stderr) return match.group(1)
Get the currently installed gcc version.
GetGccVersion
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/glibc.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/glibc.py
Apache-2.0
def _Install(vm): """Installs the Glibc Benchmark package on the VM.""" # The included version of gcc-7.4 in Ubuntu 1804 does not work out of the box # without gcc-snapshot. vm.InstallPackages('gcc-snapshot') GetGccVersion(vm) vm.Install('build_tools') # bison and texinfo are required for compiling newer ...
Installs the Glibc Benchmark package on the VM.
_Install
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/glibc.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/glibc.py
Apache-2.0
def YumInstall(vm): """Installs the gluster package on the VM.""" # TODO(user): Install gluster for RHEL. raise NotImplementedError( 'PKB currently only supports installation of gluster on Debian-based VMs.' ) # vm.InstallPackages('centos-release-gluster') # vm.InstallPackages('glusterfs-server') # ...
Installs the gluster package on the VM.
YumInstall
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/gluster.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/gluster.py
Apache-2.0
def MountGluster(vm, gluster_server, volume_name, mount_point): """Mounts a Gluster volume on the Virtual Machine. Args: vm: The VM to mount the Gluster volume on. gluster_server: A Gluster server that knows about the volume. volume_name: The name of the volume to mount. mount_point: The location t...
Mounts a Gluster volume on the Virtual Machine. Args: vm: The VM to mount the Gluster volume on. gluster_server: A Gluster server that knows about the volume. volume_name: The name of the volume to mount. mount_point: The location to mount the volume on 'vm'.
MountGluster
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/gluster.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/gluster.py
Apache-2.0
def _CreateVolume(vm, bricks, volume_name): """Creates a GlusterFS volume. Args: vm: The Virtual Machine to create the volume from. bricks: A list of strings of the form "ip_address:/path/to/brick" which will be combined to form the Gluster volume. volume_name: The name of the volume which is bei...
Creates a GlusterFS volume. Args: vm: The Virtual Machine to create the volume from. bricks: A list of strings of the form "ip_address:/path/to/brick" which will be combined to form the Gluster volume. volume_name: The name of the volume which is being created.
_CreateVolume
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/gluster.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/gluster.py
Apache-2.0
def ConfigureServers(gluster_servers, volume_name): """Configures the Gluster cluster and creates a volume. This function installs Gluster on all VMs passed into it, creates Gluster bricks, adds all VMs to the trusted storage pool, creates a volume, and starts it. After the volume is started, it can be mounted...
Configures the Gluster cluster and creates a volume. This function installs Gluster on all VMs passed into it, creates Gluster bricks, adds all VMs to the trusted storage pool, creates a volume, and starts it. After the volume is started, it can be mounted via MountGluster. Args: gluster_servers: The VMs ...
ConfigureServers
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/gluster.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/gluster.py
Apache-2.0
def Install(vm): """Installs the Cloud Bigtable YCSB HBase client connector on the VM.""" if not CLIENT_VERSION.value: raise errors.Setup.InvalidFlagConfigurationError( '--google_bigtable_client_version must be set' ) # Ensure YCSB is set up as that's where we copy the artifacts to. vm.Install(...
Installs the Cloud Bigtable YCSB HBase client connector on the VM.
Install
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/google_cloud_bigtable_client.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/google_cloud_bigtable_client.py
Apache-2.0
def Uninstall(_): """Uninstalls google.cloud go package on the VM.""" # No clean way to uninstall everything. The VM will be deleted at the end # of the test. pass
Uninstalls google.cloud go package on the VM.
Uninstall
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/google_cloud_go.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/google_cloud_go.py
Apache-2.0
def Install(vm): """Installs google cloud sdk on the VM.""" vm.Install('wget') vm.RemoteCommand( 'cd {0} && wget {1} && tar xzf {2} && rm {2}'.format( vm_util.VM_TMP_DIR, SDK_REPO, os.path.basename(SDK_REPO) ) ) vm.RemoteCommand( '%s --disable-installation-options --usage-report=fa...
Installs google cloud sdk on the VM.
Install
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/google_cloud_sdk.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/google_cloud_sdk.py
Apache-2.0
def Install(vm): """Install go lang package on the VM.""" vm.InstallPreprovisionedPackageData( PACKAGE_NAME, PREPROVISIONED_DATA.keys(), linux_packages.INSTALL_DIR ) vm.RemoteCommand( 'cd %s && sudo tar -C /usr/local -xzf %s' % (linux_packages.INSTALL_DIR, GO_TAR) )
Install go lang package on the VM.
Install
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/go_lang.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/go_lang.py
Apache-2.0
def Uninstall(_): """Uninstalls go lang package on the VM.""" # No clean way to uninstall everything. The VM will be deleted at the end # of the test. pass
Uninstalls go lang package on the VM.
Uninstall
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/go_lang.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/go_lang.py
Apache-2.0
def HadoopVersion() -> version.Version: """Get provided or latest stable HadoopVersion.""" if _VERSION.value: return version.Version(_VERSION.value) if _URL_OVERRIDE.value: extracted_version = re.search( r'[0-9]+\.[0-9]+\.[0-9]+', _URL_OVERRIDE.value ) if extracted_version: return ve...
Get provided or latest stable HadoopVersion.
HadoopVersion
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/hadoop.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/hadoop.py
Apache-2.0
def _GetHadoopURL(): """Gets the Hadoop download url based on flags. The default is to look for the version `--hadoop_version` to download. Returns: The Hadoop download url. """ return '{0}/hadoop-{1}/hadoop-{1}.tar.gz'.format( HADOOP_URL_BASE, HadoopVersion() )
Gets the Hadoop download url based on flags. The default is to look for the version `--hadoop_version` to download. Returns: The Hadoop download url.
_GetHadoopURL
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/hadoop.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/hadoop.py
Apache-2.0
def InstallGcsConnector(vm, install_dir=HADOOP_LIB_DIR): """Install the GCS connector for Hadoop, which allows I/O to GCS.""" connector_url = ( 'https://storage.googleapis.com/hadoop-lib/gcs/' 'gcs-connector-hadoop{}-latest.jar'.format(HadoopVersion().major) ) vm.RemoteCommand('cd {} && curl -O {}'....
Install the GCS connector for Hadoop, which allows I/O to GCS.
InstallGcsConnector
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/hadoop.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/hadoop.py
Apache-2.0
def ConfigureAndStart(master, workers, start_yarn=True, configure_s3=False): """Configure hadoop on a cluster. Args: master: VM. Master VM - will be the HDFS NameNode, YARN ResourceManager. workers: List of VMs. Each VM will run an HDFS DataNode, YARN node. start_yarn: bool. Start YARN and JobHistory s...
Configure hadoop on a cluster. Args: master: VM. Master VM - will be the HDFS NameNode, YARN ResourceManager. workers: List of VMs. Each VM will run an HDFS DataNode, YARN node. start_yarn: bool. Start YARN and JobHistory server? Set to False if HDFS is the only service required. Default: True. ...
ConfigureAndStart
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/hadoop.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/hadoop.py
Apache-2.0
def SetDefaultConfig(num_cpus: int | None): """Set the default configurations of unfilled flags.""" if HAMMERDB_NUM_VU.value is None: if HAMMERDB_SCRIPT.value == HAMMERDB_SCRIPT_TPC_H: FLAGS.hammerdbcli_num_vu = 1 elif HAMMERDB_SCRIPT.value == HAMMERDB_SCRIPT_TPC_C: if FLAGS.use_managed_db or nu...
Set the default configurations of unfilled flags.
SetDefaultConfig
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/hammerdb.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/hammerdb.py
Apache-2.0
def CheckErrorFromHammerdb(cls, stdout: str): """Check errors from the stdout of Hammerdb. Some sample errors Error in Virtual User 1: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server] User does not have permission to perform this action. (executing the statement) (Error message wh...
Check errors from the stdout of Hammerdb. Some sample errors Error in Virtual User 1: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server] User does not have permission to perform this action. (executing the statement) (Error message when SQL command throws error) Vuser 1:FINISHED ...
CheckErrorFromHammerdb
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/hammerdb.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/hammerdb.py
Apache-2.0
def ParseTpcCTimeProfileResultsFromFile(stdout: str) -> List[sample.Sample]: """Extracts latency result from time profile file.""" tpcc_metrics = [] # Timed profile output starts with >>>>> # The last 5 output are the summary of all virtual users # The output have the following format # >>>>> PROC: NEWORD ...
Extracts latency result from time profile file.
ParseTpcCTimeProfileResultsFromFile
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/hammerdb.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/hammerdb.py
Apache-2.0
def ParseTpcCTimeProfileResults(stdout: str) -> List[sample.Sample]: """Extract latency result from time profile TPC-C runs.""" tpcc_metrics = [] # match a string like # Vuser 2:|neword|MIN-35|P50%-9970.5|P95%-148|P99%-153|MAX-16816|SAMPLES-87 percentile_dic = collections.defaultdict(list) percentile_regex ...
Extract latency result from time profile TPC-C runs.
ParseTpcCTimeProfileResults
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/hammerdb.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/hammerdb.py
Apache-2.0
def ParseTpcCTPMResultsFromFile(stdout: str) -> List[sample.Sample]: """Parse TPCC TPM metrics per seconds.""" tpm_metrics = [] time_series = [] for line in stdout.split('\n'): # Metrics looks as follows # 193290 PostgreSQL tpm @ Thu Jun 30 21:18:41 UTC 2022 if 'tpm @' in line: tpm = line.spli...
Parse TPCC TPM metrics per seconds.
ParseTpcCTPMResultsFromFile
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/hammerdb.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/hammerdb.py
Apache-2.0
def ParseTpcCResults( stdout: str, vm: virtual_machine.BaseVirtualMachine ) -> List[sample.Sample]: """Extract results from the TPC-C script.""" tpcc_metrics = ParseBasicTpcCResults(stdout) if HAMMERDB_TPCC_TIME_PROFILE.value: if HAMMERDB_VERSION.value == HAMMERDB_4_0: tpcc_metrics += ParseTpcCTime...
Extract results from the TPC-C script.
ParseTpcCResults
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/hammerdb.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/hammerdb.py
Apache-2.0
def ParseBasicTpcCResults(stdout: str) -> List[sample.Sample]: """Extract basic results from the TPC-C script.""" # match a string like: # "Vuser 1:TEST RESULT : System achieved 40213 NOPM from 92856 SQL Server TPM" regex = ( r'Vuser 1:TEST RESULT : System achieved ' r'(\d*) NOPM from (\d*) (\w| )*...
Extract basic results from the TPC-C script.
ParseBasicTpcCResults
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/hammerdb.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/hammerdb.py
Apache-2.0
def GeoMean(float_array: List[float]) -> float: """Calculate the geomean of the numbers in float_array.""" return functools.reduce(lambda x, y: x * y, float_array) ** ( 1.0 / len(float_array) )
Calculate the geomean of the numbers in float_array.
GeoMean
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/hammerdb.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/hammerdb.py
Apache-2.0
def ParseTpcHResults(stdout: str) -> List[sample.Sample]: """Extract results from the TPC-H script.""" # parse all instances of strings like: # query 19 completed in 0.429 seconds regex = r'query (\d*) completed in (\d*.\d*) seconds' # matches is a list of tuples, with one tuple for each capture: matches ...
Extract results from the TPC-H script.
ParseTpcHResults
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/hammerdb.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/hammerdb.py
Apache-2.0
def ParseResults( script: str, stdout: str, vm: virtual_machine.BaseVirtualMachine ) -> List[sample.Sample]: """Parse HammerDB results using the appropriate parser for the script type. Args: script: An enumeration from HAMMERDB_SCRIPT indicating which script to run. Must have been prior setup with ...
Parse HammerDB results using the appropriate parser for the script type. Args: script: An enumeration from HAMMERDB_SCRIPT indicating which script to run. Must have been prior setup with SetupConfig method on the vm to work. stdout: Output from hammerdb.Run vm: The virtual machine to run ...
ParseResults
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/hammerdb.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/hammerdb.py
Apache-2.0
def Install(vm: virtual_machine.BaseVirtualMachine): """Installs hammerdbcli and dependencies on the VM.""" vm.InstallPackages('curl') vm.InstallPackages('patch') vm.RemoteCommand('mkdir -p {}'.format(LocalWorkingDirectory())) vm.RemoteCommand('sudo mkdir -p {}'.format(HAMMERDB_RUN_LOCATION)) vm.RemoteComma...
Installs hammerdbcli and dependencies on the VM.
Install
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/hammerdb.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/hammerdb.py
Apache-2.0
def SetupConfig( vm: virtual_machine.BaseVirtualMachine, db_engine: str, hammerdb_script: str, ip: str, port: str, password: str, user: str, is_managed_azure: bool, ): """Sets up the necessary scripts on the VM with the necessary parameters.""" db_engine = sql_engine_utils.GetDbEngin...
Sets up the necessary scripts on the VM with the necessary parameters.
SetupConfig
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/hammerdb.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/hammerdb.py
Apache-2.0
def Run( vm: virtual_machine.BaseVirtualMachine, db_engine: str, hammerdb_script: str, timeout: int | None = 60 * 60 * 8, ) -> str: """Run the HammerDBCli Benchmark. Runs Hammerdb TPCC or TPCH script. TPCC gathers TPM (transactions per minute) and NOPM (new order per minute). Definitions can be...
Run the HammerDBCli Benchmark. Runs Hammerdb TPCC or TPCH script. TPCC gathers TPM (transactions per minute) and NOPM (new order per minute). Definitions can be found here: https://www.hammerdb.com/blog/uncategorized/why-both-tpm-and-nopm-performance-metrics/ TPCH gathers the latency of the 22 TPCH queries...
Run
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/hammerdb.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/hammerdb.py
Apache-2.0
def GetMetadata(db_engine: str): """Returns the meta data needed for hammerdb.""" script = HAMMERDB_SCRIPT.value metadata = { 'hammerdbcli_script': script, } metadata['hammerdbcli_version'] = HAMMERDB_VERSION.value metadata['hammerdbcli_vu'] = HAMMERDB_NUM_VU.value metadata['hammerdbcli_num_run'] =...
Returns the meta data needed for hammerdb.
GetMetadata
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/hammerdb.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/hammerdb.py
Apache-2.0
def AptInstall(vm: virtual_machine.BaseVirtualMachine): """Installs and builds the lockhammer benchmark on the VM.""" vm.Install('build_tools') # TODO(user): Install other build dependencies, clone, and build # benchmark # https://github.com/hardinfo2/hardinfo2?tab=readme-ov-file#building-and-installing # F...
Installs and builds the lockhammer benchmark on the VM.
AptInstall
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/hardinfo2.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/hardinfo2.py
Apache-2.0
def _GetHBaseURL(): """Gets the HBase download url based on flags. The default is to look for the version `--hbase_version` to download. If `--hbase_use_stable` is set will look for the latest stable version. Returns: The HBase download url. """ return '{0}/{1}/hbase-{1}-bin.tar.gz'.format( HBAS...
Gets the HBase download url based on flags. The default is to look for the version `--hbase_version` to download. If `--hbase_use_stable` is set will look for the latest stable version. Returns: The HBase download url.
_GetHBaseURL
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/hbase.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/hbase.py
Apache-2.0
def ConfigureAndStart(master, regionservers, zk_nodes): """Configure HBase on a cluster. Args: master: VM. Master VM. regionservers: List of VMs. """ vms = [master] + regionservers def LinkNativeLibraries(vm): vm.RemoteCommand( ( 'mkdir {0}/lib/native && ln -s {1} {0}/lib/nat...
Configure HBase on a cluster. Args: master: VM. Master VM. regionservers: List of VMs.
ConfigureAndStart
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/hbase.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/hbase.py
Apache-2.0
def CheckUseIntelCompiled(myflags: Dict[str, Any]) -> bool: """Returns if --hpcc_use_intel_compiled_hpl is used correctly. When using --hpcc_use_intel_compiled_hpl must also set --hpcc_math_library=mkl Args: myflags: Dict of flags from register_multi_flags_validator for --hpcc_use_intel_compiled_hpl...
Returns if --hpcc_use_intel_compiled_hpl is used correctly. When using --hpcc_use_intel_compiled_hpl must also set --hpcc_math_library=mkl Args: myflags: Dict of flags from register_multi_flags_validator for --hpcc_use_intel_compiled_hpl and --hpcc_math_library
CheckUseIntelCompiled
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/hpcc.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/hpcc.py
Apache-2.0
def Install(vm): """Installs the HPCC package on the VM.""" vm.Install('wget') if USE_INTEL_COMPILED_HPL.value: vm.Install('intelmpi') vm.Install('mkl') # Using a pre-compiled HPL, no need to continue return vm.Install('openmpi') vm.InstallPreprovisionedPackageData( PACKAGE_NAME, PREPROV...
Installs the HPCC package on the VM.
Install
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/hpcc.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/hpcc.py
Apache-2.0
def _CompileHpccMKL(vm): """Compiling HPCC with Intel MKL. The following link provides instructions of using intel MKL in hpcc_benchmark. https://software.intel.com/en-us/articles/performance-tools-for-software-developers-use-of-intel-mkl-in-hpcc-benchmark TODO(user):The free version MKL pacakage does not have...
Compiling HPCC with Intel MKL. The following link provides instructions of using intel MKL in hpcc_benchmark. https://software.intel.com/en-us/articles/performance-tools-for-software-developers-use-of-intel-mkl-in-hpcc-benchmark TODO(user):The free version MKL pacakage does not have 'interfaces/fftw2x_cdft' wh...
_CompileHpccMKL
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/hpcc.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/hpcc.py
Apache-2.0
def AptInstall(vm): """Install the HPCG package on the VM. Args: vm: vm to target """ vm.Install('wget') vm.InstallPackages('numactl libnuma-dev') vm.Install('cuda_toolkit') # HPCG CUDA 10 requires Open MPI 3.1 and HPCG CUDA 11 requires Open MPI 4.0 vm.Install('openmpi') if FLAGS.cuda_toolkit_ve...
Install the HPCG package on the VM. Args: vm: vm to target
AptInstall
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/hpcg.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/hpcg.py
Apache-2.0
def Run( self, vm, endpoint: str, headers: Sequence[str] = (), retries: int = 0, retry_interval: float = 0.5, timeout: int = 600, expected_response_code: int | None = None, expected_response: str | None = None, ): """Polls HTTP endpoint. Args: vm: V...
Polls HTTP endpoint. Args: vm: VirtualMachine object. endpoint: string. Target http endpoint. headers: Sequence of string. Http headers to use. By default, we set close connection. retries: Int. Number of retries. retry_interval: Float. Indicates interval in sec between retrie...
Run
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/http_poller.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/http_poller.py
Apache-2.0
def _InstallForIntelMpiLibrary(vm) -> None: """Compiles the Intel MPI benchmarks for Intel MPI library.""" if intel_repo.UseOneApi(): vm.InstallPackages('intel-oneapi-compiler-dpcpp-cpp') vm.InstallPackages('intel-oneapi-mpi-devel') # for mpi.h source_cmds = f'. {intel_repo.ONEAPI_VARS_FILE}' else: ...
Compiles the Intel MPI benchmarks for Intel MPI library.
_InstallForIntelMpiLibrary
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/imb.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/imb.py
Apache-2.0
def _InstallForOpenMpiLibrary(vm) -> None: """Compiles the Intel MPI benchmarks for OpenMPI library.""" vm.RemoteCommand(_GIT_CHECKOUT_CMD) vm.PushDataFile(_PATCH_FILE) vm.RemoteCommand(_GIT_PATCH_CMD) # When installing OpenMPI, openmpi.py runs ./configure.sh with --prefix=/usr. compile_benchmark_cmd = ( ...
Compiles the Intel MPI benchmarks for OpenMPI library.
_InstallForOpenMpiLibrary
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/imb.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/imb.py
Apache-2.0
def Install(vm) -> None: """Installs MPI lib and compiles the Intel MPI benchmarks from source. Args: vm: Virtual machine to run on. """ if FLAGS.mpi_vendor == 'intel': mpilib = 'intelmpi' install_benchmarks = _InstallForIntelMpiLibrary elif FLAGS.mpi_vendor == 'openmpi': if not COMPILE_FROM_...
Installs MPI lib and compiles the Intel MPI benchmarks from source. Args: vm: Virtual machine to run on.
Install
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/imb.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/imb.py
Apache-2.0
def _MpiRunCommandForIntelMpiLibrary( vm, hosts: List[str], total_processes: int, ppn: int, environment: List[str], global_environment: List[str], tune: bool, ) -> str: """String command to call mpirun using Intel MPI library. See Intel docs for details: https://software.intel.com/c...
String command to call mpirun using Intel MPI library. See Intel docs for details: https://software.intel.com/content/www/us/en/develop/documentation/mpi-developer-guide-linux/top/running-applications/controlling-process-placement.html "If the -ppn option is not specified, the process manager assigns as many ...
_MpiRunCommandForIntelMpiLibrary
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/imb.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/imb.py
Apache-2.0
def _MpiRunCommandForOpenMpiLibrary( hosts: List[str], total_processes: int, npernode: int, environment: List[str], ) -> str: """String command to call mpirun using OpenMPI library. Args: hosts: List of internal IP addresses to run on. total_processes: Translates directly to mpirun's -n opt...
String command to call mpirun using OpenMPI library. Args: hosts: List of internal IP addresses to run on. total_processes: Translates directly to mpirun's -n option. npernode: Translates directly to mpirun's -npernode option. If 0, then -npernode is set to total_processes//len(hosts). environm...
_MpiRunCommandForOpenMpiLibrary
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/imb.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/imb.py
Apache-2.0
def MpiVars(vm) -> str: """Returns the path to the mpivars.sh file. With different versions of Intel software installed the mpivars.sh for 2019.6 can be under compilers_and_libraries_2020.0.166 while the symlink for compilers_and_libraries points to compilers_and_libraries_2018 Args: vm: Virtual machine...
Returns the path to the mpivars.sh file. With different versions of Intel software installed the mpivars.sh for 2019.6 can be under compilers_and_libraries_2020.0.166 while the symlink for compilers_and_libraries points to compilers_and_libraries_2018 Args: vm: Virtual machine to look for mpivars.sh on. ...
MpiVars
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/intelmpi.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/intelmpi.py
Apache-2.0
def SourceMpiVarsCommand(vm): """Returns the command to source the mpivars.sh script.""" cmd = f'. {MpiVars(vm)}' if FLAGS.aws_efa: # Disable IntelMPI's libfabric to use AWS EFA's cmd += ' -ofi_internal=0' return cmd
Returns the command to source the mpivars.sh script.
SourceMpiVarsCommand
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/intelmpi.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/intelmpi.py
Apache-2.0
def FixEnvironment(vm): """Changes system settings for optimal Intel MPI conditions. Sets the ptrace_scope to 0, for details see: https://www.kernel.org/doc/Documentation/security/Yama.txt Args: vm: The virtual machine to run on. """ if not vm.TryRemoteCommand('ulimit -l | grep unlimited'): ulim...
Changes system settings for optimal Intel MPI conditions. Sets the ptrace_scope to 0, for details see: https://www.kernel.org/doc/Documentation/security/Yama.txt Args: vm: The virtual machine to run on.
FixEnvironment
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/intelmpi.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/intelmpi.py
Apache-2.0
def _InstallViaPreprovisionedData(vm, version: str) -> bool: """Returns whether Intel MPI was installed via preprovisioned data.""" packaging = 'rpm' if vm.BASE_OS_TYPE == 'rhel' else 'deb' tarball = f'intel-mpi-{version}.{packaging}.tar.gz' # if the tarball is not in preprovisioned data return False if tarba...
Returns whether Intel MPI was installed via preprovisioned data.
_InstallViaPreprovisionedData
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/intelmpi.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/intelmpi.py
Apache-2.0
def TestInstall(vms) -> None: """Tests the MPI install. Args: vms: List of VMs in the cluster. """ hosts = ','.join([vm.internal_ip for vm in vms]) mpirun_cmd = f'mpirun -n {len(vms)} -ppn 1 -hosts {hosts} hostname' txt, _ = vms[0].RemoteCommand(f'{SourceMpiVarsCommand(vms[0])}; {mpirun_cmd}') hosts ...
Tests the MPI install. Args: vms: List of VMs in the cluster.
TestInstall
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/intelmpi.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/intelmpi.py
Apache-2.0
def NfsExportIntelDirectory(vms) -> None: """NFS exports the /opt/intel from the headnode to the workers. Args: vms: List of VMs. The first one is the headnode, the remainder will NFS mount the /opt/intel drive from the headnode. """ nfs_service.NfsExportAndMount(vms, _INTEL_ROOT) # Still need to ...
NFS exports the /opt/intel from the headnode to the workers. Args: vms: List of VMs. The first one is the headnode, the remainder will NFS mount the /opt/intel drive from the headnode.
NfsExportIntelDirectory
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/intelmpi.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/intelmpi.py
Apache-2.0
def MpirunMpiVersion(vm, source_cmd: str | None = None) -> str: """Returns the Intel MPI version in use. Example output of "mpirun -V" (all on one line): Intel(R) MPI Library for Linux* OS, Version 2018 Update 4 Build 20180823 (id: 18555) This returns as "2018.4" to be nearly the same as the "2018.4-075"...
Returns the Intel MPI version in use. Example output of "mpirun -V" (all on one line): Intel(R) MPI Library for Linux* OS, Version 2018 Update 4 Build 20180823 (id: 18555) This returns as "2018.4" to be nearly the same as the "2018.4-075" reported when using the Intel apt/yum repos. Args: vm: The ...
MpirunMpiVersion
python
GoogleCloudPlatform/PerfKitBenchmarker
perfkitbenchmarker/linux_packages/intelmpi.py
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/master/perfkitbenchmarker/linux_packages/intelmpi.py
Apache-2.0