diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2016-03-04 17:11:04 -0800 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2016-03-04 17:11:04 -0800 |
commit | 8d2538f205ba9d9d9f0cafd678f500de04a6f144 (patch) | |
tree | 30d3d0a177facbe46f86e7b85a8835aaa4c2b487 | |
parent | 6449e8b1b91119e91c74a78638691ce24a527ae6 (diff) | |
parent | f663d37da75e4ef0f266c63707e77d29a651e07d (diff) | |
download | spack-8d2538f205ba9d9d9f0cafd678f500de04a6f144.tar.gz spack-8d2538f205ba9d9d9f0cafd678f500de04a6f144.tar.bz2 spack-8d2538f205ba9d9d9f0cafd678f500de04a6f144.tar.xz spack-8d2538f205ba9d9d9f0cafd678f500de04a6f144.zip |
Merge pull request #496 from LLNL/features/zfp
Adding zfp package.
-rw-r--r-- | var/spack/repos/builtin/packages/zfp/package.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/zfp/package.py b/var/spack/repos/builtin/packages/zfp/package.py new file mode 100644 index 0000000000..620fe9d456 --- /dev/null +++ b/var/spack/repos/builtin/packages/zfp/package.py @@ -0,0 +1,26 @@ +from spack import * + +class Zfp(Package): + """zfp is an open source C library for compressed floating-point arrays that supports + very high throughput read and write random acces, target error bounds or bit rates. + Although bit-for-bit lossless compression is not always possible, zfp is usually + accurate to within machine epsilon in near-lossless mode, and is often orders of + magnitude more accurate than other lossy compressors. + """ + + homepage = "http://computation.llnl.gov/projects/floating-point-compression" + url = "http://computation.llnl.gov/projects/floating-point-compression/download/zfp-0.5.0.tar.gz" + + version('0.5.0', '2ab29a852e65ad85aae38925c5003654') + + def install(self, spec, prefix): + make("shared") + + # No install provided + mkdirp(prefix.lib) + mkdirp(prefix.include) + install('lib/libzfp.so', prefix.lib) + install('inc/zfp.h', prefix.include) + install('inc/types.h', prefix.include) + install('inc/bitstream.h', prefix.include) + install('inc/system.h', prefix.include) |