2019-01-01 14:04:23 +08:00
|
|
|
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other
|
2018-10-08 04:52:23 +08:00
|
|
|
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
2018-04-25 20:30:07 +08:00
|
|
|
#
|
2018-10-08 04:52:23 +08:00
|
|
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
|
|
|
|
2018-04-25 20:30:07 +08:00
|
|
|
from spack import *
|
|
|
|
|
|
|
|
|
|
|
|
class Fp16(Package):
|
|
|
|
"""FP16 is a header-only library for
|
|
|
|
conversion to/from half-precision floating point formats"""
|
|
|
|
|
|
|
|
homepage = "https://github.com/Maratyszcza/FP16/"
|
2018-07-23 15:00:15 +08:00
|
|
|
git = "https://github.com/Maratyszcza/FP16.git"
|
2018-04-25 20:30:07 +08:00
|
|
|
|
2018-07-23 15:00:15 +08:00
|
|
|
version('master')
|
2018-04-25 20:30:07 +08:00
|
|
|
|
|
|
|
def install(self, spec, prefix):
|
|
|
|
install_tree('include', prefix.include)
|