summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/fpchecker/package.py
blob: 722be1a3e1dd4ea79c32e5debe3e558b1e8604d9 (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
# Copyright 2013-2022 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 Fpchecker(CMakePackage):
    """FPChecker (Floating-Point Checker) is a dynamic analysis tool
       to detect floating-point errors in HPC applications.
    """

    homepage = "https://fpchecker.org/"
    url      = "https://github.com/LLNL/FPChecker/archive/refs/tags/v0.3.4.tar.gz"
    git      = "https://github.com/LLNL/FPChecker.git"

    maintainers = ['ilagunap']

    version('master', branch='master')
    version('0.3.5', sha256='ed7277318af8e0a22b05c5655c9acc99e1d3036af41095ec2f1b1ada4d6e90f6')
    version('0.3.4', sha256='ecea778dcddc8347da86b02069e12d574a3ba27a4f7c6224bf492fbff6cd162a')

    depends_on('llvm@12.0.1')
    depends_on('cmake@3.4:', type='build')
    depends_on('python@3:', type='run')

    def cmake_args(self):
        args = ['-DCMAKE_C_COMPILER=clang', '-DCMAKE_CXX_COMPILER=clang++']
        return args