Add Score-P packages.

This commit is contained in:
David Boehme 2014-07-31 17:51:23 -07:00
parent 2f21ca64e0
commit e377abc18c
5 changed files with 180 additions and 0 deletions

View File

@ -0,0 +1,30 @@
# FIXME: Add copyright statement
#
from spack import *
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')
def install(self, spec, prefix):
configure_args = ["--prefix=%s" % prefix,
"--without-paraver",
"--without-gui",
"--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(parallel=False)
make("install", parallel=False)

View File

@ -0,0 +1,28 @@
# FIXME: Add copyright statement here
from spack import *
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')
def install(self, spec, prefix):
# FIXME: Modify the configure line to suit your build system here.
configure("--prefix=%s" % prefix,
"--enable-shared")
# FIXME: Add logic to build and install here
make()
make("install")

View File

@ -0,0 +1,38 @@
# FIXME: Add copyright
from spack import *
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")
def install(self, spec, prefix):
# FIXME: Modify the configure line to suit your build system here.
cc = os.environ["SPACK_CC"]
configure_args=["--prefix=%s" % prefix,
"--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')
if spec.satisfies('%pgi'):
configure_args.append('--with-nocross-compiler-suite=pgi')
configure(*configure_args)
# FIXME: Add logic to build and install here
make()
make("install")

View File

@ -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")

View File

@ -0,0 +1,41 @@
# FIXME: Add copyright statement
from spack import *
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.2.3', '4978084e7cbd05b94517aa8beaea0817')
depends_on("mpi")
depends_on("papi")
depends_on("otf2@1.2:1.2.1")
depends_on("opari2")
depends_on("cube")
def install(self, spec, prefix):
configure_args = ["--prefix=%s" % prefix,
"--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"]
if spec.satisfies('%gcc'):
configure_args.append('--with-nocross-compiler-suite=gcc')
if spec.satisfies('%intel'):
configure_args.append('--with-nocross-compiler-suite=intel')
if spec.satisfies('%pgi'):
configure_args.append('--with-nocross-compiler-suite=pgi')
configure(*configure_args)
make()
make("install")