summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorasmaahassan90 <31959389+asmaahassan90@users.noreply.github.com>2020-05-07 15:38:05 +0200
committerGitHub <noreply@github.com>2020-05-07 08:38:05 -0500
commitedd60f95c33b29c12d88fdfe380e0fbba68b0fdf (patch)
tree0bbcf9ee055344139d52cddaeb60baf36bf792ee
parentb196e4396a8d2bb21cc50d26114d34cdacb3b727 (diff)
downloadspack-edd60f95c33b29c12d88fdfe380e0fbba68b0fdf.tar.gz
spack-edd60f95c33b29c12d88fdfe380e0fbba68b0fdf.tar.bz2
spack-edd60f95c33b29c12d88fdfe380e0fbba68b0fdf.tar.xz
spack-edd60f95c33b29c12d88fdfe380e0fbba68b0fdf.zip
Add PGI version 19.7 and export OMPI variables (#16484)
* add PGI version 19.7 * use openmpi in pgi exporting openmpi enviroment variables when installed with pgi * fix lint
-rw-r--r--var/spack/repos/builtin/packages/pgi/package.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/pgi/package.py b/var/spack/repos/builtin/packages/pgi/package.py
index aa6e60ddcc..bc5f809109 100644
--- a/var/spack/repos/builtin/packages/pgi/package.py
+++ b/var/spack/repos/builtin/packages/pgi/package.py
@@ -21,6 +21,7 @@ class Pgi(Package):
homepage = "http://www.pgroup.com/"
version('19.10', sha256='ac9db73ba80a66fe3bc875f63aaa9e16f54674a4e88b25416432430ba8cf203d')
+ version('19.7', sha256='439692aeb51eff464b968c3bfed4536ed7bd3ba6f8174bc0ebe2219a78fe62ae')
version('19.4', sha256='23eee0d4da751dd6f247d624b68b03538ebd172e63a053c41bb67013f07cf68e')
version('19.1', sha256='3e05a6db2bf80b5d15f6ff83188f20cb89dc23e233417921e5c0822e7e57d34f')
version('18.10', sha256='4b3ff83d2a13de6001bed599246eff8e63ef711b8952d4a9ee12efd666b3e326')
@@ -98,3 +99,13 @@ class Pgi(Package):
env.set('CXX', join_path(prefix.bin, 'pgc++'))
env.set('F77', join_path(prefix.bin, 'pgfortran'))
env.set('FC', join_path(prefix.bin, 'pgfortran'))
+
+ if '+mpi' in self.spec:
+ ompi_dir = os.listdir(prefix.mpi)[0]
+ env.prepend_path('PATH', join_path(prefix.mpi, ompi_dir, 'bin'))
+ env.prepend_path('LD_LIBRARY_PATH', join_path(prefix.mpi, ompi_dir,
+ 'lib'))
+ env.prepend_path('C_INCLUDE_PATH', join_path(prefix.mpi, ompi_dir,
+ 'include'))
+ env.prepend_path('MANPATH', join_path(prefix.mpi, ompi_dir,
+ 'share/man'))