added package.py for GPTL (#25993)
This commit is contained in:
parent
71a3173a32
commit
f8fae997d3
1 changed files with 47 additions and 0 deletions
47
var/spack/repos/builtin/packages/gptl/package.py
Normal file
47
var/spack/repos/builtin/packages/gptl/package.py
Normal file
|
@ -0,0 +1,47 @@
|
|||
# Copyright 2013-2021 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 import *
|
||||
|
||||
|
||||
class Gptl(AutotoolsPackage):
|
||||
"""
|
||||
GPTL is a library to instrument C, C++, and Fortran codes for
|
||||
performance analysis and profiling.
|
||||
"""
|
||||
|
||||
homepage = "https://jmrosinski.github.io/GPTL/"
|
||||
url = "https://github.com/jmrosinski/GPTL/releases/download/v8.0.3/gptl-8.0.3.tar.gz"
|
||||
|
||||
maintainers = ['edwardhartnett', 'kgerheiser', 'Hang-Lei-NOAA', ' jmrosinski']
|
||||
|
||||
version('8.0.3', sha256='334979c6fe78d4ed1b491ec57fb61df7a910c58fd39a3658d03ad89f077a4db6')
|
||||
version('8.0.2', sha256='011f153084ebfb52b6bf8f190835d4bae6f6b5c0ad320331356aa47a547bf2b4')
|
||||
|
||||
variant('pmpi', default=False)
|
||||
variant('papi', default=False)
|
||||
variant('nestedomp', default=False)
|
||||
variant('disable-unwind', default=False)
|
||||
|
||||
depends_on('mpi')
|
||||
|
||||
def configure_args(self):
|
||||
args = []
|
||||
|
||||
if '+pmpi' in self.spec:
|
||||
args.append('--enable-pmpi')
|
||||
args.append('CC=' + self.spec['mpi'].mpicc)
|
||||
|
||||
if '+papi' in self.spec:
|
||||
args.append('--enable-papi')
|
||||
|
||||
if '+nestedomp' in self.spec:
|
||||
args.append('--enable-nestedomp')
|
||||
|
||||
if '+disable-unwind' in self.spec:
|
||||
args.append('--disable-libunwind')
|
||||
|
||||
return args
|
Loading…
Reference in a new issue