Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

placeholder #3045

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion perfkitbenchmarker/linux_packages/openblas.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

"""Module containing OpenBLAS installation and cleanup functions."""

import logging
from perfkitbenchmarker import errors
from perfkitbenchmarker import linux_packages

OPENBLAS_DIR = '%s/OpenBLAS' % linux_packages.INSTALL_DIR
Expand All @@ -27,7 +29,15 @@ def _Install(vm):
vm.Install('fortran')
vm.RemoteCommand('git clone {0} {1}'.format(GIT_REPO, OPENBLAS_DIR))
vm.RemoteCommand('cd {0} && git checkout {1}'.format(OPENBLAS_DIR, GIT_TAG))
vm.RemoteCommand('cd {0} && make USE_THREAD=0'.format(OPENBLAS_DIR))
try:
vm.RemoteCommand('cd {0} && make USE_THREAD=0'.format(OPENBLAS_DIR))
except errors.VirtualMachine.RemoteCommandError as error:
if 'detecting cpu failed' in str(error).lower():
logging.info('Attempting to recompile OpenBLAS with TARGET=SKYLAKEX')
vm.RemoteCommand(
'cd {0} && make TARGET=SKYLAKEX USE_THREAD=0'.format(OPENBLAS_DIR))
else:
raise error


def YumInstall(vm):
Expand Down