add affinity package (#48589)
This commit is contained in:
parent
df71341972
commit
c623448f81
25
var/spack/repos/builtin/packages/affinity/package.py
Normal file
25
var/spack/repos/builtin/packages/affinity/package.py
Normal file
@ -0,0 +1,25 @@
|
||||
# Copyright Spack Project Developers. See COPYRIGHT file for details.
|
||||
#
|
||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||
|
||||
from spack.package import *
|
||||
|
||||
|
||||
class Affinity(CMakePackage, CudaPackage):
|
||||
"""Simple applications for determining Linux thread and gpu affinity."""
|
||||
|
||||
homepage = "https://github.com/bcumming/affinity"
|
||||
git = "https://github.com/bcumming/affinity.git"
|
||||
version("master", branch="master")
|
||||
|
||||
maintainers("bcumming", "nhanford")
|
||||
|
||||
license("BSD-3-Clause", checked_by="nhanford")
|
||||
|
||||
variant("mpi", default=False, description="Build MPI support")
|
||||
variant("rocm", default=False, description="Build ROCm Support")
|
||||
|
||||
depends_on("mpi", when="+mpi")
|
||||
depends_on("hip", when="+rocm")
|
||||
depends_on("mpi", when="+mpi")
|
||||
depends_on("mpi", when="+cuda")
|
Loading…
Reference in New Issue
Block a user