FIX libfabric module file (#39271)

* Add support to export the LD_LIBRARY_PATH for the libfabric package
and subsequent module files.

Fix the AWS OFI RCCL package so that it prepends the enviornment
variables.

* Fixed comment
This commit is contained in:
Brian Van Essen 2023-08-04 15:04:54 -07:00 committed by GitHub
parent 78bca131fb
commit 4957607005
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 2 deletions

View File

@ -35,12 +35,12 @@ class AwsOfiRccl(AutotoolsPackage):
# To enable this plug-in to work with RCCL add it to the LD_LIBRARY_PATH
def setup_run_environment(self, env):
aws_ofi_rccl_home = self.spec["aws-ofi-rccl"].prefix
env.append_path("LD_LIBRARY_PATH", aws_ofi_rccl_home.lib)
env.prepend_path("LD_LIBRARY_PATH", aws_ofi_rccl_home.lib)
# To enable this plug-in to work with RCCL add it to the LD_LIBRARY_PATH
def setup_dependent_run_environment(self, env, dependent_spec):
aws_ofi_rccl_home = self.spec["aws-ofi-rccl"].prefix
env.append_path("LD_LIBRARY_PATH", aws_ofi_rccl_home.lib)
env.prepend_path("LD_LIBRARY_PATH", aws_ofi_rccl_home.lib)
def configure_args(self):
spec = self.spec

View File

@ -153,6 +153,16 @@ def setup_build_environment(self, env):
if self.run_tests:
env.prepend_path("PATH", self.prefix.bin)
# To enable this package add it to the LD_LIBRARY_PATH
def setup_run_environment(self, env):
libfabric_home = self.spec["libfabric"].prefix
env.prepend_path("LD_LIBRARY_PATH", libfabric_home.lib)
# To enable this package add it to the LD_LIBRARY_PATH
def setup_dependent_run_environment(self, env, dependent_spec):
libfabric_home = self.spec["libfabric"].prefix
env.prepend_path("LD_LIBRARY_PATH", libfabric_home.lib)
@when("@main")
def autoreconf(self, spec, prefix):
bash = which("bash")