blob: 400078f1ff331a98fa9d4d822f504a2a1b364d9b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# Copyright 2013-2020 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 Tracer(MakefilePackage):
"""Trace Replay and Network Simulation Framework"""
homepage = "https://tracer-codes.readthedocs.io"
git = "https://github.com/LLNL/tracer.git"
maintainers = ['bhatele']
version('develop', branch='master')
version('2.2', tag='v2.2')
variant('otf2', default=True, description='Use OTF2 traces for simulation')
depends_on('mpi')
depends_on('codes')
depends_on('otf2', when='+otf2')
build_directory = 'tracer'
@property
def build_targets(self):
targets = []
targets.append('CXX = {0}'.format(self.spec['mpi'].mpicxx))
if "+otf2" in self.spec:
targets.append('SELECT_TRACE = -DTRACER_OTF_TRACES=1')
return targets
def install(self, spec, prefix):
with working_dir(self.build_directory):
make('PREFIX={0}'.format(prefix), 'install')
|