예제 #1
0
def Install(vm):
    """Installs SPECCPU 2017."""
    speccpu.InstallSPECCPU(vm, GetSpecInstallConfig(vm.GetScratchDir()))
    # spec17 tarball comes pre-packages with runner scripts for x86 architecture.
    # But because we may have x86 or arm architecture machines, just rerun the
    # install script to regenerate the runner scripts based on what spec detects
    # to be the vm architecture.
    vm.RemoteCommand('echo yes | {0}/cpu2017/install.sh'.format(
        vm.GetScratchDir()))
예제 #2
0
def Install(vm):
  """Installs SPECCPU 2017."""
  speccpu.InstallSPECCPU(vm, GetSpecInstallConfig(vm.GetScratchDir()))
  vm.InstallPreprovisionedPackageData(_PACKAGE_NAME, [LLVM_TAR, OPENMP_TAR],
                                      linux_packages.INSTALL_DIR)
  vm.RemoteCommand('cd {0} && tar xf {1} && tar xf {2}'.format(
      linux_packages.INSTALL_DIR, LLVM_TAR, OPENMP_TAR))
  # spec17 tarball comes pre-packages with runner scripts for x86 architecture.
  # But because we may have x86 or arm architecture machines, just rerun the
  # install script to regenerate the runner scripts based on what spec detects
  # to be the vm architecture.
  vm.RemoteCommand('echo yes | {0}/cpu2017/install.sh'.format(
      vm.GetScratchDir()))
예제 #3
0
def Install(vm):
    """Installs SPECCPU 2006."""
    install_config = speccpu.SpecInstallConfigurations()
    install_config.package_name = _PACKAGE_NAME
    install_config.base_mount_dir = _MOUNT_DIR
    install_config.base_spec_dir = _SPECCPU2006_DIR
    install_config.base_iso_file_path = _SPECCPU2006_ISO
    install_config.base_tar_file_path = _SPECCPU2006_TAR
    install_config.required_members = _TAR_REQUIRED_MEMBERS
    install_config.log_format = _LOG_FORMAT
    install_config.runspec_config = (FLAGS.runspec_config
                                     or _DEFAULT_RUNSPEC_CONFIG)
    speccpu.InstallSPECCPU(vm, install_config)
예제 #4
0
def Install(vm):
    """Installs SPECCPU 2017."""
    speccpu.InstallSPECCPU(vm, GetSpecInstallConfig(vm.GetScratchDir()))
    vm.RemoteCommand('cd {0} && wget {1} && tar xf {2}'.format(
        INSTALL_DIR, LLVM_TAR_URL, LLVM_TAR))
    vm.RemoteCommand('cd {0} && wget {1} && tar xf {2}'.format(
        INSTALL_DIR, OPENMP_TAR_URL, OPENMP_TAR))
    vm.RemoteCommand('sudo apt-get install libjemalloc1 libjemalloc-dev')
    vm.RemoteCommand(
        'sudo apt-get update && sudo apt-get install -y libomp-dev')
    # spec17 tarball comes pre-packages with runner scripts for x86 architecture.
    # But because we may have x86 or arm architecture machines, just rerun the
    # install script to regenerate the runner scripts based on what spec detects
    # to be the vm architecture.
    vm.RemoteCommand('echo yes | /scratch/cpu2017/install.sh')
예제 #5
0
def Prepare(benchmark_spec):
    """Installs SPEC CPU2006 on the target vm.

  Args:
    benchmark_spec: The benchmark specification. Contains all data that is
        required to run the benchmark.
  """
    vm = benchmark_spec.vms[0]
    install_config = speccpu.SpecInstallConfigurations()
    install_config.benchmark_name = BENCHMARK_NAME
    install_config.base_mount_dir = _MOUNT_DIR
    install_config.base_spec_dir = _SPECCPU2006_DIR
    install_config.base_iso_file_path = _SPECCPU2006_ISO
    install_config.base_tar_file_path = _SPECCPU2006_TAR
    install_config.required_members = _TAR_REQUIRED_MEMBERS
    install_config.log_format = _LOG_FORMAT
    speccpu.InstallSPECCPU(vm, install_config)
예제 #6
0
def Prepare(benchmark_spec):
  """Installs SPEC CPU2017 on the target vm.

  Args:
    benchmark_spec: The benchmark specification. Contains all data that is
        required to run the benchmark.
  """
  vm = benchmark_spec.vms[0]
  CheckVmPrerequisites(vm)
  install_config = speccpu.SpecInstallConfigurations()
  install_config.benchmark_name = BENCHMARK_NAME
  install_config.base_spec_dir = _SPECCPU2017_DIR
  install_config.base_tar_file_path = _SPECCPU2017_TAR
  install_config.required_members = _TAR_REQUIRED_MEMBERS
  install_config.log_format = _LOG_FORMAT
  speccpu.InstallSPECCPU(vm, install_config)
  vm.Install('speccpu2017_dependencies')
예제 #7
0
def Install(vm):
  """Installs SPECCPU 2017."""
  install_config = speccpu.SpecInstallConfigurations()
  install_config.package_name = _PACKAGE_NAME
  install_config.base_spec_dir = _SPECCPU2017_DIR
  install_config.base_tar_file_path = _SPECCPU2017_TAR
  install_config.required_members = _TAR_REQUIRED_MEMBERS
  install_config.log_format = _LOG_FORMAT
  install_config.runspec_config = (FLAGS.runspec_config or
                                   _DEFAULT_RUNSPEC_CONFIG)
  speccpu.InstallSPECCPU(vm, install_config)
  vm.RemoteCommand('cd {0} && wget {1} && tar xf {2}'.format(
      INSTALL_DIR, LLVM_TAR_URL, LLVM_TAR))
  vm.RemoteCommand('cd {0} && wget {1} && tar xf {2}'.format(
      INSTALL_DIR, OPENMP_TAR_URL, OPENMP_TAR))
  vm.RemoteCommand('sudo apt-get install libjemalloc1 libjemalloc-dev')
  vm.RemoteCommand('sudo apt-get update && sudo apt-get install -y libomp-dev')
  # spec17 tarball comes pre-packages with runner scripts for x86 architecture.
  # But because we may have x86 or arm architecture machines, just rerun the
  # install script to regenerate the runner scripts based on what spec detects
  # to be the vm architecture.
  vm.RemoteCommand('echo yes | /scratch/cpu2017/install.sh')
def Prepare(benchmark_spec):
    """Installs SPEC CPU2017 on the target vm.

  Args:
    benchmark_spec: The benchmark specification. Contains all data that is
        required to run the benchmark.
  """
    vm = benchmark_spec.vms[0]
    CheckVmPrerequisites(vm)
    install_config = speccpu.SpecInstallConfigurations()
    install_config.benchmark_name = BENCHMARK_NAME
    install_config.base_spec_dir = _SPECCPU2017_DIR
    install_config.base_tar_file_path = _SPECCPU2017_TAR
    install_config.required_members = _TAR_REQUIRED_MEMBERS
    install_config.log_format = _LOG_FORMAT
    install_config.runspec_config = benchmark_spec.config.speccpu.runspec_config
    speccpu.InstallSPECCPU(vm, install_config)
    vm.Install('speccpu2017_dependencies')
    # spec17 tarball comes pre-packages with runner scripts for x86 architecture.
    # But because we may have x86 or arm architecture machines, just rerun the
    # install script to regenerate the runner scripts based on what spec detects
    # to be the vm architecture.
    vm.RemoteCommand('echo yes | /scratch/cpu2017/install.sh')
def Install(vm):
    """Installs SPECCPU 2006."""
    speccpu.InstallSPECCPU(vm, GetSpecInstallConfig(vm.GetScratchDir()))