summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2017-03-11 16:58:09 -0500
committerAdam J. Stewart <ajstewart426@gmail.com>2017-03-11 15:58:09 -0600
commit23d4a60639194bb5f7b61edfef65818ce1f4567d (patch)
tree546e3c3884a6d7036a97618cc4acc1633ccb8e00 /var
parent63a8f79980628a3fea62f660b4fc6edecb9e7507 (diff)
downloadspack-23d4a60639194bb5f7b61edfef65818ce1f4567d.tar.gz
spack-23d4a60639194bb5f7b61edfef65818ce1f4567d.tar.bz2
spack-23d4a60639194bb5f7b61edfef65818ce1f4567d.tar.xz
spack-23d4a60639194bb5f7b61edfef65818ce1f4567d.zip
funhpc: New package (#3421)
* funhpc: New package * funhpc: Rename development version to “develop” * funhpc: Try to make flake8 happy * funhpc: Correct flake8 error
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/funhpc/package.py61
1 files changed, 61 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/funhpc/package.py b/var/spack/repos/builtin/packages/funhpc/package.py
new file mode 100644
index 0000000000..03120d07ba
--- /dev/null
+++ b/var/spack/repos/builtin/packages/funhpc/package.py
@@ -0,0 +1,61 @@
+##############################################################################
+# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC.
+# Produced at the Lawrence Livermore National Laboratory.
+#
+# This file is part of Spack.
+# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
+# LLNL-CODE-647188
+#
+# For details, see https://github.com/llnl/spack
+# Please also see the LICENSE file for our notice and the LGPL.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License (as
+# published by the Free Software Foundation) version 2.1, February 1999.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and
+# conditions of the GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+##############################################################################
+
+
+from spack import *
+
+
+class Funhpc(CMakePackage):
+ """FunHPC: Functional HPC Programming"""
+ homepage = "https://github.com/eschnett/FunHPC.cxx"
+ url = "https://github.com/eschnett/FunHPC.cxx/archive/version/0.1.0.tar.gz"
+
+ version('1.1.1', '7b9ef638b02fffe35b75517e8eeff580')
+ version('1.1.0', '897bd968c42cd4f14f86fcf67da70444')
+ version('1.0.0', 'f34e71ccd5548b42672e692c913ba5ee')
+ version('0.1.1', 'f0248710f2de88ed2a595ad40d99997c')
+ version('0.1.0', '00f7dabc08ed1ab77858785ce0809f50')
+ version('develop',
+ git='https://github.com/eschnett/FunHPC.cxx', branch='master')
+
+ variant('pic', default=True,
+ description="Produce position-independent code")
+
+ depends_on('cereal')
+ depends_on('hwloc')
+ depends_on('jemalloc')
+ depends_on('mpi')
+ depends_on('qthreads')
+
+ def cmake_args(self):
+ spec = self.spec
+ options = []
+ if '+pic' in spec:
+ options.extend(["-DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=true"])
+ return options
+
+ def check(self):
+ with working_dir(self.build_directory):
+ make("test", "CTEST_OUTPUT_ON_FAILURE=1")