Skip to content

Commit

Permalink
Fix OpenMPI OS dependencies for Debian and Ubuntu
Browse files Browse the repository at this point in the history
OpenMPI-1.6.4-GCC-4.7.2.eb had an OS dependency on libibverbs-devel,
which is a package found in RHEL-based distros and Fedora. In Debian
and Ubuntu, this package is called libibverbs-dev. In this commit I
added an OS_NAME check to make the libibverbs-devel check conditional
on running RHEL, etc. and added a check for the correct package name
on Debian.

I also added the same check into OpenMPI-1.6.4-GCC-4.6.4.eb because
it has the same dependency, and this easyconfig is used for the
goolfc-1.3.12 toolchain.
  • Loading branch information
ajdecon committed Aug 13, 2013
1 parent 67b0e21 commit d143572
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions easybuild/easyconfigs/o/OpenMPI/OpenMPI-1.6.4-GCC-4.6.4.eb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ configopts += '--enable-mpirun-prefix-by-default ' # suppress failure modes in
configopts += '--with-hwloc=$EBROOTHWLOC ' # hwloc support
configopts += '--disable-dlopen ' # statically link component, don't do dynamic loading

# needed for --with-openib
if OS_NAME in ['redhat', 'fedora', 'RHEL', 'SL', 'centos']:
osdependencies = ['libibverbs-devel']
elif OS_NAME in ['debian', 'ubuntu']:
osdependencies = ['libibverbs-dev']

sanity_check_paths = {
'files': ["bin/%s" % binfile for binfile in ["ompi_info", "opal_wrapper", "orterun"]] +
["lib/lib%s.%s" % (libfile, shared_lib_ext) for libfile in ["mpi_cxx", "mpi_f77" ,"mpi_f90",
Expand Down
5 changes: 4 additions & 1 deletion easybuild/easyconfigs/o/OpenMPI/OpenMPI-1.6.4-GCC-4.7.2.eb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ configopts += '--with-hwloc=$EBROOTHWLOC ' # hwloc support
configopts += '--disable-dlopen ' # statically link component, don't do dynamic loading

# needed for --with-openib
osdependencies = ['libibverbs-devel']
if OS_NAME in ['redhat', 'fedora', 'RHEL', 'SL', 'centos']:
osdependencies = ['libibverbs-devel']
elif OS_NAME in ['debian', 'ubuntu']:
osdependencies = ['libibverbs-dev']

sanity_check_paths = {
'files': ["bin/%s" % binfile for binfile in ["ompi_info", "opal_wrapper", "orterun"]] +
Expand Down

0 comments on commit d143572

Please sign in to comment.