-
Notifications
You must be signed in to change notification settings - Fork 283
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
tweak libpaths in TensorFlow easyblock by adding directory containing libnccl.so.2 #3497
base: develop
Are you sure you want to change the base?
Changes from 2 commits
13dd418
0f331a8
f6a9afd
edc9bfe
f697d97
68d89b9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -562,6 +562,15 @@ def configure_step(self): | |||||||||||||||||
tensorrt_root = get_software_root('TensorRT') | ||||||||||||||||||
nccl_root = get_software_root('NCCL') | ||||||||||||||||||
|
||||||||||||||||||
# add path to libnccl.so.2 directory provided by NCCL when both sysroot | ||||||||||||||||||
# and RPATH are used (such as in EESSI) | ||||||||||||||||||
if build_option('sysroot') and self.toolchain.use_rpath: | ||||||||||||||||||
system_libs_info_as_list = list(self.system_libs_info) | ||||||||||||||||||
new_libpaths = system_libs_info_as_list[2] | ||||||||||||||||||
new_libpaths.append(os.path.join(nccl_root, 'lib')) | ||||||||||||||||||
system_libs_info_as_list[2] = new_libpaths | ||||||||||||||||||
self.system_libs_info = tuple(system_libs_info_as_list) | ||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will test if that works incl moving the code to the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This almost worked. |
||||||||||||||||||
|
||||||||||||||||||
self._with_cuda = bool(cuda_root) | ||||||||||||||||||
|
||||||||||||||||||
config_env_vars = { | ||||||||||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's an
if
block for NCCL further down, best to keep this stuff together there (and thelibpath
part doesn't get used until a later step anyway)