summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/spectrum-mpi/package.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/spectrum-mpi/package.py b/var/spack/repos/builtin/packages/spectrum-mpi/package.py
index 2ada9c593e..e094f1c3ad 100644
--- a/var/spack/repos/builtin/packages/spectrum-mpi/package.py
+++ b/var/spack/repos/builtin/packages/spectrum-mpi/package.py
@@ -46,6 +46,11 @@ class SpectrumMpi(Package):
self.spec.mpicxx = join_path(self.prefix.bin, 'mpixlC')
self.spec.mpif77 = join_path(self.prefix.bin, 'mpixlf')
self.spec.mpifc = join_path(self.prefix.bin, 'mpixlf')
+ elif '%pgi' in dependent_spec:
+ self.spec.mpicc = join_path(self.prefix.bin, 'mpipgicc')
+ self.spec.mpicxx = join_path(self.prefix.bin, 'mpipgic++')
+ self.spec.mpif77 = join_path(self.prefix.bin, 'mpipgifort')
+ self.spec.mpifc = join_path(self.prefix.bin, 'mpipgifort')
else:
self.spec.mpicc = join_path(self.prefix.bin, 'mpicc')
self.spec.mpicxx = join_path(self.prefix.bin, 'mpicxx')
@@ -58,6 +63,11 @@ class SpectrumMpi(Package):
spack_env.set('MPICXX', join_path(self.prefix.bin, 'mpixlC'))
spack_env.set('MPIF77', join_path(self.prefix.bin, 'mpixlf'))
spack_env.set('MPIF90', join_path(self.prefix.bin, 'mpixlf'))
+ elif '%pgi' in dependent_spec:
+ spack_env.set('MPICC', join_path(self.prefix.bin, 'mpipgicc'))
+ spack_env.set('MPICXX', join_path(self.prefix.bin, 'mpipgic++'))
+ spack_env.set('MPIF77', join_path(self.prefix.bin, 'mpipgifort'))
+ spack_env.set('MPIF90', join_path(self.prefix.bin, 'mpipgifort'))
else:
spack_env.set('MPICC', join_path(self.prefix.bin, 'mpicc'))
spack_env.set('MPICXX', join_path(self.prefix.bin, 'mpic++'))