Skip to content

Commit 0b6988a

Browse files
authored
Merge pull request #2575 from Flamefire/20210914113019_new_pr_tensorflow
enhance TensorFlow easyblock to take into account provided OpenSSL dependency
2 parents c4ead45 + 223101c commit 0b6988a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

easybuild/easyblocks/t/tensorflow.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,18 @@ def get_system_libs(self):
401401
else:
402402
ignored_system_deps.append('%s (Python package %s)' % (tf_name, pkg_name))
403403

404+
# If we use OpenSSL (potentially as a wrapper) somewhere in the chain we must tell TF to use it too
405+
openssl_root = get_software_root('OpenSSL')
406+
if openssl_root:
407+
if 'boringssl' not in system_libs:
408+
system_libs.append('boringssl')
409+
incpath = os.path.join(openssl_root, 'include')
410+
if os.path.exists(incpath):
411+
cpaths.append(incpath)
412+
libpath = get_software_libdir(dep_name)
413+
if libpath:
414+
libpaths.append(os.path.join(openssl_root, libpath))
415+
404416
if ignored_system_deps:
405417
print_warning('%d TensorFlow dependencies have not been resolved by EasyBuild. Check the log for details.',
406418
len(ignored_system_deps))

0 commit comments

Comments
 (0)