blob: 38c9b3b176e610003fd62043da19ea86fb8c92a7 (
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
|
# 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 Filo(CMakePackage):
"""File flush and fetch, with MPI"""
homepage = "https://github.com/ecp-veloc/filo"
git = "https://github.com/ecp-veloc/filo.git"
tags = ['ecp']
version('master', branch='master')
depends_on('mpi')
depends_on('axl')
depends_on('kvtree')
depends_on('spath')
def cmake_args(self):
args = []
args.append("-DMPI_C_COMPILER=%s" % self.spec['mpi'].mpicc)
if self.spec.satisfies('platform=cray'):
args.append("-DFILO_LINK_STATIC=ON")
args.append("-DWITH_AXL_PREFIX=%s" % self.spec['axl'].prefix)
args.append("-DWITH_KVTREE_PREFIX=%s" % self.spec['kvtree'].prefix)
args.append("-DWITH_SPATH_PREFIX=%s" % self.spec['spath'].prefix)
return args
|