Skip to content
Merged
Changes from 2 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
17 changes: 12 additions & 5 deletions easybuild/easyblocks/j/jaxlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,14 @@ def configure_step(self):

# Collect options for the build script
# Used only by the build script
options = []

# update build command for jaxlib-0.6 to build.py build
if LooseVersion(self.version) >= LooseVersion('0.6.0'):
options.append('build')

# C++ flags are set through copt below
options = ['--target_cpu_features=default']
options.append('--target_cpu_features=default')

# Passed directly to bazel
bazel_startup_options = [
Expand Down Expand Up @@ -125,13 +130,15 @@ def configure_step(self):
options.append('--noenable_nccl')

config_env_vars['GCC_HOST_COMPILER_PATH'] = which(os.getenv('CC'))
else:
elif LooseVersion(self.version) <= LooseVersion('0.6.0'):
options.append('--noenable_cuda')

if self.cfg['use_mkl_dnn']:
options.append('--enable_mkl_dnn')
if self.cfg["use_mkl_dnn"] and LooseVersion(self.version) <= LooseVersion("0.6.0"):
options.append("--enable_mkl_dnn")
elif LooseVersion(self.version) <= LooseVersion("0.6.0"):
options.append("--noenable_mkl_dnn")
else:
options.append('--noenable_mkl_dnn')
options.append("--disable_mkl_dnn")
Comment thread
pavelToman marked this conversation as resolved.
Outdated

# Prepend to buildopts so users can overwrite this
self.cfg['buildopts'] = ' '.join(
Expand Down