Added package for Half C++ header-only library. (#14189)
* Added package for Half C++ header-only library. Fixed an checksum for Hydrogen 1.3.2. Cleaned up the Clara package to not create an empty bin directory. * Fixed flake8 * Added maintainer
This commit is contained in:
parent
a52df46e2c
commit
dc69256a59
@ -37,4 +37,3 @@ def build(self, spec, prefix):
|
||||
def install(self, spec, prefix):
|
||||
mkdirp(prefix.include)
|
||||
install_tree('single_include', prefix.include)
|
||||
mkdirp(join_path(prefix, 'bin'))
|
||||
|
28
var/spack/repos/builtin/packages/half/package.py
Normal file
28
var/spack/repos/builtin/packages/half/package.py
Normal file
@ -0,0 +1,28 @@
|
||||
# Copyright 2013-2019 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 Half(Package):
|
||||
"""This is a C++ header-only library to provide an IEEE-754 conformant
|
||||
half-precision floating point type along with corresponding
|
||||
arithmetic operators, type conversions and common mathematical
|
||||
functions. It aims for both efficiency and ease of use, trying to
|
||||
accurately mimic the behaviour of the builtin floating point types
|
||||
at the best performance possible. It automatically uses and
|
||||
provides C++11 features when possible, but stays completely
|
||||
C++98-compatible when neccessary."""
|
||||
|
||||
homepage = "https://sourceforge.net/projects/half/"
|
||||
url = "https://downloads.sourceforge.net/project/half/half/2.1.0/half-2.1.0.zip"
|
||||
|
||||
maintainers = ['bvanessen']
|
||||
|
||||
version('2.1.0', sha256='ad1788afe0300fa2b02b0d1df128d857f021f92ccf7c8bddd07812685fa07a25')
|
||||
|
||||
def install(self, spec, prefix):
|
||||
mkdirp(prefix.include)
|
||||
install_tree('include', prefix.include)
|
@ -16,8 +16,10 @@ class Hydrogen(CMakePackage):
|
||||
url = "https://github.com/LLNL/Elemental/archive/v1.0.1.tar.gz"
|
||||
git = "https://github.com/LLNL/Elemental.git"
|
||||
|
||||
maintainers = ['bvanessen']
|
||||
|
||||
version('develop', branch='hydrogen')
|
||||
version('1.3.2', sha256='e15a087347d68c1bdadf695826803c4d43e0ce7c14846dc580182c125a4025dd')
|
||||
version('1.3.2', sha256='50bc5e87955f8130003d04dfd9dcad63107e92b82704f8107baf95b0ccf98ed6')
|
||||
version('1.3.1', sha256='a8b8521458e9e747f2b24af87c4c2749a06e500019c383e0cefb33e5df6aaa1d')
|
||||
version('1.3.0', sha256='0f3006aa1d8235ecdd621e7344c99f56651c6836c2e1bc0cf006331b70126b36')
|
||||
version('1.2.0', sha256='8545975139582ee7bfe5d00f8d83a8697afc285bf7026b0761e9943355974806')
|
||||
|
@ -17,6 +17,8 @@ class Lbann(CMakePackage):
|
||||
url = "https://github.com/LLNL/lbann/archive/v0.91.tar.gz"
|
||||
git = "https://github.com/LLNL/lbann.git"
|
||||
|
||||
maintainers = ['bvanessen']
|
||||
|
||||
version('develop', branch='develop')
|
||||
version('0.99', branch='develop')
|
||||
version('0.98.1', sha256='9a2da8f41cd8bf17d1845edf9de6d60f781204ebd37bffba96d8872036c10c66')
|
||||
|
Loading…
Reference in New Issue
Block a user