Skip to content

Commit

Permalink
Fix Spack +test variant (#10)
Browse files Browse the repository at this point in the history
* set MPIEXEC_MAX_NUMPROCS explicitly with +test
  • Loading branch information
RMeli authored May 31, 2024
1 parent a72e19c commit 8d0fc28
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## DLA-Future-Fortran X.Y.Z

### Fixed

* Spack installation with `+test` variant by setting `-DMPIEXEC_MAX_NUMPROCS=6` [PR #10]

## DLA-Future-Fortran 0.1.0

First release of [DLA-Future-Fortran], a Fortran interface for [DLA-Future].
Expand Down
6 changes: 5 additions & 1 deletion spack/packages/dla-future-fortran/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ def cmake_args(self):
args = []

args.append(self.define_from_variant("BUILD_SHARED_LIBS", "shared"))
args.append(self.define_from_variant("DLAF_FORTRAN_BUILD_TESTING", "test"))

if self.spec.satisfies("+test"):
args.append(self.define("DLAF_FORTRAN_BUILD_TESTING", True))
# Tests run with 6 MPI ranks
args.append(self.define("MPIEXEC_MAX_NUMPROCS", 6))

# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
# FIXME: Variables only available on the DLA-Future-Fortran repo
Expand Down

0 comments on commit 8d0fc28

Please # to comment.