Exemple #1
0
 def testAptPrepare(self) -> None:
   vm = mock.Mock()
   intel_repo.AptPrepare(vm)
   vm.PushDataFile.call_args_list[0].assert_called_with(
       'intel_repo_key.txt', '/tmp/pkb/intel_repo_key.txt')
   vm.PushDataFile.call_args_list[1].assert_called_with(
       'intel_repo_list.txt', '/tmp/pkb/intel.list')
   vm.InstallPackages.assert_called_with('libgomp1')
Exemple #2
0
def AptInstall(vm) -> None:
  """Installs the MPI library."""
  intel_repo.AptPrepare(vm)
  _Install(vm, MPI_VERSION.value)
  # Ubuntu's POSIX dash shell does not have bash's "==" comparator
  vm.RemoteCommand(f'sudo sed -i "s/==/=/" {MPI_VARS}')
def AptInstall(vm):
    """Installs the MKL package on the VM."""
    if USE_MKL_REPO.value:
        intel_repo.AptPrepare(vm)
    _Install(vm)
Exemple #4
0
def AptInstall(vm):
    """Installs the HPCC package on the VM."""
    if USE_INTEL_COMPILED_HPL.value:
        intel_repo.AptPrepare(vm)
    _Install(vm)
Exemple #5
0
def AptInstall(vm):
    """Installs the MKL package on the VM."""
    if UseMklRepo():
        intel_repo.AptPrepare(vm)
    _Install(vm)