Orca: Added required runtime libraries (#35481)

* Update package.py
  Several libraries are need to be present at run time so that the code can be run in parallel. 
  I have added them as dependencies and to LD_LIBRARY_PATH. Orca comes as a binary so the libraries cannot be added as RPATH at compilation time.
  Also, orca 5.0.3 was compiled against 4.1.1, not 4.1.2.
This commit is contained in:
Hector Martinez-Seara 2023-02-15 01:17:37 +01:00 committed by GitHub
parent 9551312e9d
commit 1894b64851
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -49,6 +49,8 @@ class Orca(Package):
)
depends_on("zstd", when="@:4.2.1", type="build")
depends_on("libevent", type="run")
depends_on("libpciaccess", type="run")
# Map Orca version with the required OpenMPI version
openmpi_versions = {
@ -98,3 +100,6 @@ def setup_run_environment(self, env):
# In 5.0.3-f.1 an RPATH is set to $ORGIN/../lib
if not self.spec.satisfies("@5.0.3-f.1"):
env.prepend_path("LD_LIBRARY_PATH", self.prefix.bin)
env.prepend_path("LD_LIBRARY_PATH", self.spec["libevent"].prefix.lib)
env.prepend_path("LD_LIBRARY_PATH", self.spec["libpciaccess"].prefix.lib)
env.prepend_path("LD_LIBRARY_PATH", self.spec["openmpi"].prefix.lib)