blob: 846b5bbfa7a3dad98c917ca31c932bcecdf4c4bb (
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
44
45
|
# 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 Uqtk(CMakePackage):
"""Sandia Uncertainty Quantification Toolkit. The UQ Toolkit (UQTk) is a
collection of libraries and tools for the quantification of uncertainty
in numerical model predictions"""
homepage = "https://www.sandia.gov/UQToolkit/"
url = "https://github.com/sandialabs/UQTk/archive/v3.0.4.tar.gz"
git = "https://github.com/sandialabs/UQTk.git"
version('master', branch='master')
version('3.1.0', sha256='56ecd3d13bdd908d568e9560dc52cc0f66d7bdcdbe64ab2dd0147a7cf1734f97')
version('3.0.4', sha256='0a72856438134bb571fd328d1d30ce3d0d7aead32eda9b7fb6e436a27d546d2e')
depends_on('expat')
depends_on('sundials', when='@3.1.0:')
depends_on('blas', when='@3.1.0:')
depends_on('lapack', when='@3.1.0:')
# Modify the process of directly specifying blas/lapack
# as the library name.
patch('remove_unique_libname.patch', when='@3.1.0:')
# Do not link the gfortran library when using the Fujitsu compiler.
patch('not_link_gfortran.patch', when='@3.1.0:%fj')
@when('@3.1.0:')
def cmake_args(self):
spec = self.spec
# Make sure we use Spack's blas/lapack:
lapack_libs = spec['lapack'].libs.joined(';')
blas_libs = spec['blas'].libs.joined(';')
return [
'-DCMAKE_SUNDIALS_DIR={0}'.format(spec['sundials'].prefix),
'-DLAPACK_LIBRARIES={0}'.format(lapack_libs),
'-DBLAS_LIBRARIES={0}'.format(blas_libs)
]
|