forked from spack/spack
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kokkos-tools: add new package (spack#45382)
- Loading branch information
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other | ||
# Spack Project Developers. See the top-level COPYRIGHT file for details. | ||
# | ||
# SPDX-License-Identifier: (Apache-2.0 OR MIT) | ||
|
||
from spack.package import * | ||
|
||
|
||
class KokkosTools(CMakePackage): | ||
"""Kokkos Profiling and Debugging Tools""" | ||
|
||
homepage = "https://github.com/kokkos/kokkos-tools/" | ||
git = "https://github.com/kokkos/kokkos-tools.git" | ||
|
||
license("Apache-2.0 WITH LLVM-exception") | ||
|
||
version("develop", branch="develop") | ||
|
||
variant("mpi", default=False, description="Enable MPI support") | ||
variant("papi", default=False, description="Enable PAPI support") | ||
|
||
depends_on("kokkos") | ||
depends_on("mpi", when="+mpi") | ||
depends_on("papi", when="+papi") | ||
|
||
def cmake_args(self): | ||
args = [ | ||
self.define_from_variant("KokkosTools_ENABLE_MPI", "mpi"), | ||
self.define_from_variant("KokkosTools_ENABLE_PAPI", "papi"), | ||
] | ||
return args |