summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authortakanori-ihara <62980219+takanori-ihara@users.noreply.github.com>2020-04-02 10:38:09 +0900
committerGitHub <noreply@github.com>2020-04-01 20:38:09 -0500
commit814996eebcd15c036afb5bc43a29e7bf3780ca8e (patch)
treead5ef8fd3be0e1e8d0cc1174591d51b21ba77bb7 /var
parent5a814ad0c5859605f66b9d4c1f6a99a656c388b7 (diff)
downloadspack-814996eebcd15c036afb5bc43a29e7bf3780ca8e.tar.gz
spack-814996eebcd15c036afb5bc43a29e7bf3780ca8e.tar.bz2
spack-814996eebcd15c036afb5bc43a29e7bf3780ca8e.tar.xz
spack-814996eebcd15c036afb5bc43a29e7bf3780ca8e.zip
New package:dhpmm-f (#15798)
* New package:dhpmm-f * Remove unnecessary line
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/dhpmm-f/package.py51
1 files changed, 51 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/dhpmm-f/package.py b/var/spack/repos/builtin/packages/dhpmm-f/package.py
new file mode 100644
index 0000000000..5e2bfa3154
--- /dev/null
+++ b/var/spack/repos/builtin/packages/dhpmm-f/package.py
@@ -0,0 +1,51 @@
+# 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 DhpmmF(MakefilePackage):
+ """DHPMM_P:High-precision Matrix Multiplication with Faithful Rounding"""
+
+ homepage = "http://www.math.twcu.ac.jp/ogita/post-k/"
+ url = "http://www.math.twcu.ac.jp/ogita/post-k/software/DHPMM_F/DHPMM_F_alpha.tar.gz"
+
+ version('alpha', sha256='35321ecbc749f2682775ffcd27833afc8c8eb4fa7753ce769727c9d1fe097848')
+
+ depends_on('blas', type='link')
+ depends_on('lapack', type='link')
+
+ def patch(self):
+ math_libs = self.spec['lapack'].libs + self.spec['blas'].libs
+ makefile = FileFilter('Makefile')
+ if self.spec.satisfies('%gcc'):
+ makefile.filter(r'^MKL\s+=\s1', 'MKL=0')
+ makefile.filter(r'^CC\s+=\sgcc',
+ 'CC={0}'.format(spack_cc))
+ makefile.filter(r'^CXX\s+=\sg\+\+',
+ 'CXX={0}'.format(spack_cxx))
+ makefile.filter(r'^BLASLIBS\s+=\s-llapack\s-lblas',
+ 'BLASLIBS={0}'.format(math_libs.ld_flags))
+ elif self.spec.satisfies('%fj'):
+ makefile.filter(r'^#ENV\s+=\sFX100', 'ENV=FX100')
+ makefile.filter(r'^ENV\s+=\sGCC', '#ENV=GCC')
+ makefile.filter(r'^MKL\s+=\s1', 'MKL=0')
+ makefile.filter(r'^CC\s+=\sfccpx',
+ 'CC={0}'.format(spack_cc))
+ makefile.filter(r'^CXX\s+=\sFCCpx',
+ 'CXX={0}'.format(spack_cxx))
+ makefile.filter(r'^BLASLIBS\s+=\s-llapack\s-lblas',
+ 'BLASLIBS={0}'.format(math_libs.ld_flags))
+ elif self.spec.satisfies('%intel'):
+ makefile.filter(r'^ENV\s+=\sGCC', '#ENV=GCC')
+ makefile.filter(r'^ENV\s+=\sICC', 'ENV=ICC')
+ makefile.filter(r'^CC\s+=\sicc',
+ 'CC={0}'.format(spack_cc))
+ makefile.filter(r'^CXX\s+=\sicc',
+ 'CXX={0}'.format(spack_cxx))
+
+ def install(self, spec, prefix):
+ mkdirp(prefix.bin)
+ install('test/source4_SpMV', prefix.bin)