Skip to content

Commit

Permalink
Fix gtl lib names
Browse files Browse the repository at this point in the history
  • Loading branch information
Riyaz Haque committed Jan 17, 2025
1 parent 2ab015e commit 49c7774
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ packages:
gtl_cutoff_size: 4096
fi_cxi_ats: 0
gtl_lib_path: /opt/cray/pe/mpich/8.1.26/gtl/lib
gtl_libs: ["libmpi_gtl_hsa"]
ldflags: "-L/opt/cray/pe/mpich/8.1.26/ofi/crayclang/16.0/lib -lmpi -L/opt/cray/pe/mpich/8.1.26/gtl/lib -Wl,-rpath=/opt/cray/pe/mpich/8.1.26/gtl/lib -lmpi_gtl_hsa"
- spec: [email protected]%[email protected] ~gtl +wrappers
prefix: /opt/cray/pe/mpich/8.1.26/ofi/crayclang/16.0
Expand Down
4 changes: 2 additions & 2 deletions repo/cray-mpich/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ def libs(self):

if self.spec.satisfies("+gtl"):
gtl_lib_prefix = self.spec.extra_attributes["gtl_lib_path"]
libraries = ["libmpi_gtl_hsa", "libmpi_gtl_cuda"]
libs += find_libraries(libraries, root=gtl_lib_prefix, recursive=True)
gtl_libs = self.spec.extra_attributes["gtl_libs"]
libs += find_libraries(gtl_libs, root=gtl_lib_prefix, recursive=True)

return libs

Expand Down
1 change: 1 addition & 0 deletions systems/lanl-venado/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ def mpi_config(self):
prefix: /opt/cray/pe/mpich/{mpi_version}/ofi/{mpi_compiler_suffix}
extra_attributes:
gtl_lib_path: /opt/cray/pe/mpich/{mpi_version}/gtl/lib
gtl_libs: ["libmpi_gtl_cuda"]
ldflags: "-L/opt/cray/pe/mpich/{mpi_version}/ofi/{mpi_compiler_suffix}/lib -lmpi -L/opt/cray/pe/mpich/{mpi_version}/gtl/lib -Wl,-rpath=/opt/cray/pe/mpich/{mpi_version}/gtl/lib -lmpi_gtl_cuda"
"""

Expand Down
1 change: 1 addition & 0 deletions systems/llnl-elcapitan/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ def mpi_config(self, cce_version):
gtl_cutoff_size: 4096
fi_cxi_ats: 0
gtl_lib_path: /opt/cray/pe/mpich/{mpi_version}/gtl/lib
gtl_libs: ["libmpi_gtl_hsa"]
ldflags: "-L/opt/cray/pe/mpich/{mpi_version}/ofi/crayclang/{short_cce_version}/lib -lmpi -L/opt/cray/pe/mpich/{mpi_version}/gtl/lib -Wl,-rpath=/opt/cray/pe/mpich/{mpi_version}/gtl/lib -lmpi_gtl_hsa"
"""

Expand Down

0 comments on commit 49c7774

Please sign in to comment.