Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libaccessom2: force CMake to use MPI compiler wrappers #66

Merged
merged 1 commit into from
Feb 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions packages/libaccessom2/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from spack.package import *

class Libaccessom2(CMakePackage):
"""libaccessom2 is a library that is linked into all of the ACCESS-OM2 component models, including YATM, CICE and MOM. libaccessom2 provides functionality used by all models as well as providing a interface to inter-model communication and synchronisation tasks."""

Check failure on line 11 in packages/libaccessom2/package.py

View workflow job for this annotation

GitHub Actions / Check syntax

Ruff (E501)

packages/libaccessom2/package.py:11:89: E501 Line too long (269 > 88 characters)

homepage = "https://www.access-nri.org.au"
git = "https://github.com/ACCESS-NRI/libaccessom2.git"
Expand All @@ -18,7 +18,7 @@
version("master", branch="master")

variant("deterministic", default=False, description="Deterministic build.")
variant("optimisation_report", default=False, description="Generate optimisation reports.")

Check failure on line 21 in packages/libaccessom2/package.py

View workflow job for this annotation

GitHub Actions / Check syntax

Ruff (E501)

packages/libaccessom2/package.py:21:89: E501 Line too long (95 > 88 characters)
variant('build_type',
default='Release',
description='The build type to build',
Expand Down Expand Up @@ -49,3 +49,10 @@
"",
"CMakeLists.txt"
)

def cmake_args(self):
return [
self.define("CMAKE_C_COMPILER", self.spec["mpi"].mpicc),
self.define("CMAKE_CXX_COMPILER", self.spec["mpi"].mpicxx),
self.define("CMAKE_Fortran_COMPILER", self.spec["mpi"].mpifc),
]
Loading