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

spack: variant for hwloc support #2419

Merged
merged 1 commit into from
Oct 8, 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
5 changes: 5 additions & 0 deletions spack/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ class Arbor(CMakePackage, CudaPackage):
default=False,
description="Enable vectorization of computational kernels",
)
variant("hwloc", default=False, description="support for thread pinning via HWLOC")
variant(
"gpu_rng",
default=False,
Expand Down Expand Up @@ -107,6 +108,9 @@ class Arbor(CMakePackage, CudaPackage):
depends_on("mpi", when="+mpi")
depends_on("py-mpi4py", when="+mpi+python", type=("build", "run"))

# hwloc
depends_on("hwloc@2:", when="+hwloc", type=("build", "run"))

# python (bindings)
with when("+python"):
extends("python")
Expand Down Expand Up @@ -135,6 +139,7 @@ def cmake_args(self):
self.define_from_variant("ARB_WITH_MPI", "mpi"),
self.define_from_variant("ARB_WITH_PYTHON", "python"),
self.define_from_variant("ARB_VECTORIZE", "vectorize"),
self.define_from_variant("ARB_USE_HWLOC", "hwloc"),
]

if "+cuda" in self.spec:
Expand Down