blob: 65c090d9067b40962cb72b21d25dcb7084b7577c (
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
41
42
43
|
# 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 Miniaero(MakefilePackage):
"""Proxy Application. MiniAero is a mini-application for the evaulation
of programming models and hardware for next generation platforms.
"""
homepage = "https://mantevo.org"
git = "https://github.com/Mantevo/miniAero.git"
tags = ['proxy-app']
version('2016-11-11', commit='f46d135479a5be19ec5d146ccaf0e581aeff4596')
depends_on('kokkos-legacy')
@property
def build_targets(self):
targets = [
'--directory=kokkos',
'CXX=c++',
'KOKKOS_PATH={0}'.format(
self.spec['kokkos-legacy'].prefix)
]
return targets
def install(self, spec, prefix):
# Manual Installation
mkdirp(prefix.bin)
mkdirp(prefix.doc)
install('kokkos/miniAero.host', prefix.bin)
install('kokkos/README', prefix.doc)
install('kokkos/tests/3D_Sod_Serial/miniaero.inp', prefix.bin)
install_tree('kokkos/tests', prefix.doc.tests)
|