diff options
author | Toyohisa Kameyama <kameyama@riken.jp> | 2020-04-30 22:03:35 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-30 15:03:35 +0200 |
commit | 54b71b2b693fd9bac760e164b92952afa7afa4e0 (patch) | |
tree | db7f1626c38fb7578c5b703bfc8de0be68c8451c | |
parent | 6c751f931c6ac51846bc5931cde47ec55d520c47 (diff) | |
download | spack-54b71b2b693fd9bac760e164b92952afa7afa4e0.tar.gz spack-54b71b2b693fd9bac760e164b92952afa7afa4e0.tar.bz2 spack-54b71b2b693fd9bac760e164b92952afa7afa4e0.tar.xz spack-54b71b2b693fd9bac760e164b92952afa7afa4e0.zip |
JHPCN-DF: added package at v1.1.0 (#16384)
-rw-r--r-- | var/spack/repos/builtin/packages/jhpcn-df/package.py | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/jhpcn-df/package.py b/var/spack/repos/builtin/packages/jhpcn-df/package.py new file mode 100644 index 0000000000..3bb3132844 --- /dev/null +++ b/var/spack/repos/builtin/packages/jhpcn-df/package.py @@ -0,0 +1,37 @@ +# Copyright 2013-2020 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 JhpcnDf(CMakePackage): + """ + Data compression library based on Jointed Hierarchical Precision + Compression Number - Data Format + + JHPCN-DF is a novel lossy compression algorithm taylored for floating + point dataset. The algorithm enhances the effect of employing standard + compression algorithms like deflate because this approach makes + the occurence rate of the same byte pattern in data stream higher owing + to truncating some lower bits of significand. + """ + + homepage = "http://avr-aics-riken.github.io/JHPCN-DF/" + url = "https://github.com/avr-aics-riken/JHPCN-DF/archive/1.1.0.tar.gz" + + version('1.1.0', sha256='106d99cc4faac5c76e51e8bfe3193c1d3dc91648072cf418d868ed830592b04b') + + variant('lz4', default=False, description='Enable lz4') + variant('fortran', default=False, description='Enable Fortran Interface') + + depends_on('zlib', type='link') + depends_on('lz4@:1.7', when='+lz4', type='link') + + def cmake_args(self): + args = [ + self.define_from_variant('with_Fortran_interface', 'fortran'), + self.define_from_variant('with_lz4', 'lz4') + ] + return args |