summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/packages/cube/package.py55
-rw-r--r--var/spack/packages/mpileaks/package.py13
-rw-r--r--var/spack/packages/opari2/package.py65
-rw-r--r--var/spack/packages/otf2/package.py74
-rw-r--r--var/spack/packages/scalasca/package.py43
-rw-r--r--var/spack/packages/scorep/package.py75
6 files changed, 322 insertions, 3 deletions
diff --git a/var/spack/packages/cube/package.py b/var/spack/packages/cube/package.py
new file mode 100644
index 0000000000..d97cd25636
--- /dev/null
+++ b/var/spack/packages/cube/package.py
@@ -0,0 +1,55 @@
+# FIXME: Add copyright statement
+#
+from spack import *
+from contextlib import closing
+
+class Cube(Package):
+ """Cube the profile viewer for Score-P and Scalasca profiles. It
+ displays a multi-dimensional performance space consisting
+ of the dimensions (i) performance metric, (ii) call path,
+ and (iii) system resource."""
+
+ homepage = "http://www.scalasca.org/software/cube-4.x/download.html"
+ url = "http://apps.fz-juelich.de/scalasca/releases/cube/4.2/dist/cube-4.2.3.tar.gz"
+
+ version('4.2.3', '8f95b9531f5a8f8134f279c2767c9b20')
+
+ version('4.3TP1', 'a2090fbc7b2ba394bd5c09ba971e237f',
+ url = 'http://apps.fz-juelich.de/scalasca/releases/cube/4.3/dist/cube-4.3-TP1.tar.gz')
+
+ # Using CC as C++ compiler provides quirky workaround for a Score-P build system attempt
+ # to guess a matching C compiler when configuring scorep-score
+ backend_user_provided = """\
+CC=cc
+CXX=CC
+F77=f77
+FC=f90
+#CFLAGS=-fPIC
+#CXXFLAGS=-fPIC
+"""
+ frontend_user_provided = """\
+CC_FOR_BUILD=cc
+CXX_FOR_BUILD=CC
+F77_FOR_BUILD=f70
+FC_FOR_BUILD=f90
+"""
+
+ def install(self, spec, prefix):
+ # Use a custom compiler configuration, otherwise the score-p
+ # build system messes with spack's compiler settings.
+ # Create these three files in the build directory
+
+ with closing(open("vendor/common/build-config/platforms/platform-backend-user-provided", "w")) as backend_file:
+ backend_file.write(self.backend_user_provided)
+ with closing(open("vendor/common/build-config/platforms/platform-frontend-user-provided", "w")) as frontend_file:
+ frontend_file.write(self.frontend_user_provided)
+
+ configure_args = ["--prefix=%s" % prefix,
+ "--with-custom-compilers",
+ "--without-paraver",
+ "--without-gui"]
+
+ configure(*configure_args)
+
+ make(parallel=False)
+ make("install", parallel=False)
diff --git a/var/spack/packages/mpileaks/package.py b/var/spack/packages/mpileaks/package.py
index 3307b9fdee..4ef866588c 100644
--- a/var/spack/packages/mpileaks/package.py
+++ b/var/spack/packages/mpileaks/package.py
@@ -25,13 +25,20 @@
from spack import *
class Mpileaks(Package):
- homepage = "http://www.llnl.gov"
- url = "http://www.llnl.gov/mpileaks-1.0.tar.gz"
+ """Tool to detect and report leaked MPI objects like MPI_Requests and MPI_Datatypes."""
+
+ homepage = "https://github.com/hpc/mpileaks"
+ url = "https://github.com/hpc/mpileaks/releases/download/v1.0/mpileaks-1.0.tar.gz"
+
+ version('1.0', '8838c574b39202a57d7c2d68692718aa')
depends_on("mpi")
+ depends_on("adept-utils")
depends_on("callpath")
def install(self, spec, prefix):
- configure("--prefix=" + prefix)
+ configure("--prefix=" + prefix,
+ "--with-adept-utils=" + spec['adept-utils'].prefix,
+ "--with-callpath=" + spec['callpath'].prefix)
make()
make("install")
diff --git a/var/spack/packages/opari2/package.py b/var/spack/packages/opari2/package.py
new file mode 100644
index 0000000000..daaee61e3a
--- /dev/null
+++ b/var/spack/packages/opari2/package.py
@@ -0,0 +1,65 @@
+# FIXME: Add copyright statement here
+
+from spack import *
+from contextlib import closing
+
+class Opari2(Package):
+ """OPARI2 is a source-to-source instrumentation tool for OpenMP and
+ hybrid codes. It surrounds OpenMP directives and runtime library
+ calls with calls to the POMP2 measurement interface.
+ OPARI2 will provide you with a new initialization method that allows
+ for multi-directory and parallel builds as well as the usage of
+ pre-instrumented libraries. Furthermore, an efficient way of
+ tracking parent-child relationships was added. Additionally, we
+ extended OPARI2 to support instrumentation of OpenMP 3.0
+ tied tasks. """
+
+ homepage = "http://www.vi-hps.org/projects/score-p"
+ url = "http://www.vi-hps.org/upload/packages/opari2/opari2-1.1.2.tar.gz"
+
+ version('1.1.2', '9a262c7ca05ff0ab5f7775ae96f3539e')
+
+ backend_user_provided = """\
+CC=cc
+CXX=c++
+F77=f77
+FC=f90
+CFLAGS=-fPIC
+CXXFLAGS=-fPIC
+"""
+ frontend_user_provided = """\
+CC_FOR_BUILD=cc
+CXX_FOR_BUILD=c++
+F77_FOR_BUILD=f70
+FC_FOR_BUILD=f90
+CFLAGS_FOR_BUILD=-fPIC
+CXXFLAGS_FOR_BUILD=-fPIC
+"""
+ mpi_user_provided = """\
+MPICC=mpicc
+MPICXX=mpicxx
+MPIF77=mpif77
+MPIFC=mpif90
+MPI_CFLAGS=-fPIC
+MPI_CXXFLAGS=-fPIC
+"""
+
+ def install(self, spec, prefix):
+ # Use a custom compiler configuration, otherwise the score-p
+ # build system messes with spack's compiler settings.
+ # Create these three files in the build directory
+ with closing(open("platform-backend-user-provided", "w")) as backend_file:
+ backend_file.write(self.backend_user_provided)
+ with closing(open("platform-frontend-user-provided", "w")) as frontend_file:
+ frontend_file.write(self.frontend_user_provided)
+ with closing(open("platform-mpi-user-provided", "w")) as mpi_file:
+ mpi_file.write(self.mpi_user_provided)
+
+ # FIXME: Modify the configure line to suit your build system here.
+ configure("--prefix=%s" % prefix,
+ "--with-custom-compilers",
+ "--enable-shared")
+
+ # FIXME: Add logic to build and install here
+ make()
+ make("install")
diff --git a/var/spack/packages/otf2/package.py b/var/spack/packages/otf2/package.py
new file mode 100644
index 0000000000..fa0a5898b6
--- /dev/null
+++ b/var/spack/packages/otf2/package.py
@@ -0,0 +1,74 @@
+# FIXME: Add copyright
+
+from spack import *
+from contextlib import closing
+import os
+
+class Otf2(Package):
+ """The Open Trace Format 2 is a highly scalable, memory efficient event
+ trace data format plus support library."""
+
+ homepage = "http://www.vi-hps.org/score-p"
+ url = "http://www.vi-hps.org/upload/packages/otf2/otf2-1.4.tar.gz"
+
+ version('1.4', 'a23c42e936eb9209c4e08b61c3cf5092',
+ url="http://www.vi-hps.org/upload/packages/otf2/otf2-1.4.tar.gz")
+ version('1.3.1', 'd0ffc4e858455ace4f596f910e68c9f2',
+ url="http://www.vi-hps.org/upload/packages/otf2/otf2-1.3.1.tar.gz")
+ version('1.2.1', '8fb3e11fb7489896596ae2c7c83d7fc8',
+ url="http://www.vi-hps.org/upload/packages/otf2/otf2-1.2.1.tar.gz")
+
+ backend_user_provided = """\
+CC=cc
+CXX=c++
+F77=f77
+FC=f90
+CFLAGS=-fPIC
+CXXFLAGS=-fPIC
+"""
+ frontend_user_provided = """\
+CC_FOR_BUILD=cc
+CXX_FOR_BUILD=c++
+F77_FOR_BUILD=f70
+FC_FOR_BUILD=f90
+CFLAGS_FOR_BUILD=-fPIC
+CXXFLAGS_FOR_BUILD=-fPIC
+"""
+ mpi_user_provided = """\
+MPICC=cc
+MPICXX=c++
+MPIF77=f77
+MPIFC=f90
+MPI_CFLAGS=-fPIC
+MPI_CXXFLAGS=-fPIC
+"""
+
+ @when('@:1.2.1')
+ def version_specific_args(self):
+ return ["--with-platform=disabled", "CC=cc", "CXX=c++", "F77=f77", "F90=f90", "CFLAGS=-fPIC", "CXXFLAGS=-fPIC"]
+
+ @when('@1.3:')
+ def version_specific_args(self):
+ # TODO: figure out what scorep's build does as of otf2 1.3
+ return ["--with-custom-compilers"]
+
+ def install(self, spec, prefix):
+ # Use a custom compiler configuration, otherwise the score-p
+ # build system messes with spack's compiler settings.
+ # Create these three files in the build directory
+ with closing(open("platform-backend-user-provided", "w")) as backend_file:
+ backend_file.write(self.backend_user_provided)
+ with closing(open("platform-frontend-user-provided", "w")) as frontend_file:
+ frontend_file.write(self.frontend_user_provided)
+ with closing(open("platform-mpi-user-provided", "w")) as mpi_file:
+ mpi_file.write(self.mpi_user_provided)
+
+ configure_args=["--prefix=%s" % prefix,
+ "--enable-shared"]
+
+ configure_args.extend(self.version_specific_args())
+
+ configure(*configure_args)
+
+ make()
+ make("install")
diff --git a/var/spack/packages/scalasca/package.py b/var/spack/packages/scalasca/package.py
new file mode 100644
index 0000000000..b76d0a7df5
--- /dev/null
+++ b/var/spack/packages/scalasca/package.py
@@ -0,0 +1,43 @@
+# FIXME: Add copyright
+
+from spack import *
+
+class Scalasca(Package):
+ """Scalasca is a software tool that supports the performance optimization
+ of parallel programs by measuring and analyzing their runtime behavior.
+ The analysis identifies potential performance bottlenecks - in
+ particular those concerning communication and synchronization - and
+ offers guidance in exploring their causes."""
+
+ # FIXME: add a proper url for your package's homepage here.
+ homepage = "http://www.scalasca.org"
+ url = "http://apps.fz-juelich.de/scalasca/releases/scalasca/2.1/dist/scalasca-2.1-rc2.tar.gz"
+
+ version('2.1-rc2', '1a95a39e5430539753e956a7524a756b')
+
+ depends_on("mpi")
+ depends_on("otf2@1.4")
+ depends_on("cube")
+
+ def install(self, spec, prefix):
+ configure_args = ["--prefix=%s" % prefix,
+ "--with-otf2=%s" % spec['otf2'].prefix.bin,
+ "--with-cube=%s" % spec['cube'].prefix.bin,
+ "--enable-shared"]
+
+ if spec.satisfies('%gcc'):
+ configure_args.append('--with-nocross-compiler-suite=gcc')
+ if spec.satisfies('%intel'):
+ configure_args.append('--with-nocross-compiler-suite=intel')
+
+ configure(*configure_args)
+
+ make()
+ make("install")
+
+ # FIXME: Modify the configure line to suit your build system here.
+ configure("--prefix=%s" % prefix)
+
+ # FIXME: Add logic to build and install here
+ make()
+ make("install")
diff --git a/var/spack/packages/scorep/package.py b/var/spack/packages/scorep/package.py
new file mode 100644
index 0000000000..32a772e3db
--- /dev/null
+++ b/var/spack/packages/scorep/package.py
@@ -0,0 +1,75 @@
+# FIXME: Add copyright statement
+
+from spack import *
+from contextlib import closing
+
+class Scorep(Package):
+ """The Score-P measurement infrastructure is a highly scalable and
+ easy-to-use tool suite for profiling, event tracing, and online
+ analysis of HPC applications."""
+
+ # FIXME: add a proper url for your package's homepage here.
+ homepage = "http://www.vi-hps.org/projects/score-p"
+ url = "http://www.vi-hps.org/upload/packages/scorep/scorep-1.2.3.tar.gz"
+
+ version('1.3', '9db6f957b7f51fa01377a9537867a55c',
+ url = 'http://www.vi-hps.org/upload/packages/scorep/scorep-1.3.tar.gz')
+
+ version('1.2.3', '4978084e7cbd05b94517aa8beaea0817')
+
+ depends_on("mpi")
+ depends_on("papi")
+ # depends_on("otf2@1.2:1.2.1") # only Score-P 1.2.x
+ depends_on("otf2")
+ depends_on("opari2")
+ depends_on("cube@4.2:4.2.3")
+
+ backend_user_provided = """\
+CC=cc
+CXX=c++
+F77=f77
+FC=f90
+CFLAGS=-fPIC
+CXXFLAGS=-fPIC
+"""
+ frontend_user_provided = """\
+CC_FOR_BUILD=cc
+CXX_FOR_BUILD=c++
+F77_FOR_BUILD=f70
+FC_FOR_BUILD=f90
+CFLAGS_FOR_BUILD=-fPIC
+CXXFLAGS_FOR_BUILD=-fPIC
+"""
+ mpi_user_provided = """\
+MPICC=mpicc
+MPICXX=mpicxx
+MPIF77=mpif77
+MPIFC=mpif90
+MPI_CFLAGS=-fPIC
+MPI_CXXFLAGS=-fPIC
+"""
+
+ def install(self, spec, prefix):
+ # Use a custom compiler configuration, otherwise the score-p
+ # build system messes with spack's compiler settings.
+ # Create these three files in the build directory
+ with closing(open("platform-backend-user-provided", "w")) as backend_file:
+ backend_file.write(self.backend_user_provided)
+ with closing(open("platform-frontend-user-provided", "w")) as frontend_file:
+ frontend_file.write(self.frontend_user_provided)
+ with closing(open("platform-mpi-user-provided", "w")) as mpi_file:
+ mpi_file.write(self.mpi_user_provided)
+
+ configure_args = ["--prefix=%s" % prefix,
+ "--with-custom-compilers",
+ "--with-otf2=%s" % spec['otf2'].prefix.bin,
+ "--with-opari2=%s" % spec['opari2'].prefix.bin,
+ "--with-cube=%s" % spec['cube'].prefix.bin,
+ "--with-papi-header=%s" % spec['papi'].prefix.include,
+ "--with-papi-lib=%s" % spec['papi'].prefix.lib,
+ "--enable-shared"]
+
+ configure(*configure_args)
+
+ make()
+ make("install")