Skip to content

Commit

Permalink
Update tensorflow block for changes in 2.14 and 2.15
Browse files Browse the repository at this point in the history
  • Loading branch information
C3SE "c3-builder" bot committed Apr 11, 2024
1 parent 3e3854a commit c67df83
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion easybuild/easyblocks/t/tensorflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def is_version_ok(version_range):
('gast', '2.0.0:'): 'gast_archive',
('google.protobuf', '2.0.0:'): 'com_google_protobuf',
('keras_applications', '2.0.0:2.2.0'): 'keras_applications_archive',
('opt_einsum', '2.0.0:'): 'opt_einsum_archive',
('opt_einsum', '2.0.0:2.15.0'): 'opt_einsum_archive',
('pasta', '2.0.0:'): 'pasta',
('six', '2.0.0:'): 'six_archive', # Part of Python EC
('tblib', '2.4.0:'): 'tblib_archive',
Expand Down Expand Up @@ -595,6 +595,13 @@ def configure_step(self):
# SYCL support removed in 2.4
if LooseVersion(self.version) < LooseVersion('2.4'):
config_env_vars['TF_NEED_OPENCL_SYCL'] = '0'
# Clang toggle since 2.14.0
if LooseVersion(self.version) > LooseVersion('2.13'):
config_env_vars['TF_NEED_CLANG'] = '0'
# Hermietic python version since 2.14.0
if LooseVersion(self.version) > LooseVersion('2.13'):
pyver = det_python_version(self.python_cmd)
config_env_vars['TF_PYTHON_VERSION'] = '.'.join(pyver.split('.')[:2])

if self._with_cuda:
cuda_version = get_software_version('CUDA')
Expand Down

0 comments on commit c67df83

Please sign in to comment.