Add Scalasca 2.1
This commit is contained in:
parent
4c614ac768
commit
8857b1f69e
@ -11,25 +11,47 @@ class Scalasca(Package):
|
|||||||
|
|
||||||
# FIXME: add a proper url for your package's homepage here.
|
# FIXME: add a proper url for your package's homepage here.
|
||||||
homepage = "http://www.scalasca.org"
|
homepage = "http://www.scalasca.org"
|
||||||
url = "http://apps.fz-juelich.de/scalasca/releases/scalasca/2.1/dist/scalasca-2.1-rc2.tar.gz"
|
url = "http://apps.fz-juelich.de/scalasca/releases/scalasca/2.1/dist/scalasca-2.1.tar.gz"
|
||||||
|
|
||||||
version('2.1-rc2', '1a95a39e5430539753e956a7524a756b')
|
version('2.1', 'bab9c2b021e51e2ba187feec442b96e6',
|
||||||
|
url = 'http://apps.fz-juelich.de/scalasca/releases/scalasca/2.1/dist/scalasca-2.1.tar.gz' )
|
||||||
|
|
||||||
depends_on("mpi")
|
depends_on("mpi")
|
||||||
depends_on("otf2@1.4")
|
depends_on("otf2@1.4")
|
||||||
depends_on("cube")
|
depends_on("cube@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):
|
def install(self, spec, prefix):
|
||||||
configure_args = ["--prefix=%s" % prefix,
|
configure_args = ["--prefix=%s" % prefix,
|
||||||
|
"--with-custom-compilers",
|
||||||
"--with-otf2=%s" % spec['otf2'].prefix.bin,
|
"--with-otf2=%s" % spec['otf2'].prefix.bin,
|
||||||
"--with-cube=%s" % spec['cube'].prefix.bin,
|
"--with-cube=%s" % spec['cube'].prefix.bin,
|
||||||
"--enable-shared"]
|
"--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)
|
configure(*configure_args)
|
||||||
|
|
||||||
make()
|
make()
|
||||||
|
Loading…
Reference in New Issue
Block a user