Skip to content

[ScaLAPACK] [package list]

ScaLAPACK/3.2-cpeAOCC-22.08-amd (ScaLAPACK-3.2-cpeAOCC-22.08-amd.eb)

This software is archived in the LUMI-EasyBuild-contrib GitHub repository as easybuild/easyconfigs/__archive__/s/ScaLAPACK/ScaLAPACK-3.2-cpeAOCC-22.08-amd.eb. The corresponding module would be ScaLAPACK/3.2-cpeAOCC-22.08-amd.

easyblock = 'CMakeMake'

name =          'ScaLAPACK'
version =       '3.2'
versionsuffix = '-amd'

homepage = 'https://developer.amd.com/amd-aocl/'

whatis = [
    'AMD optimized ScaLAPACK'
]

description = """
ScaLAPACK is a library of high-performance linear algebra routines for
parallel distributed memory machines. It depends on external libraries
including BLAS and LAPACK for Linear Algebra computations. AMD\'s optimized
version of ScaLAPACK enables using the BLIS and libFLAME libraries with
optimized dense-matrix functions and solvers for AMD processors.
BLIS is a portable software framework for instantiating high-performance
BLAS-like dense linear algebra libraries. This module provides AMD\'s fork
of the BLIS library.

Note that this implementation of ScaLAPACK will conflict with the Cray LibSci
library, so when using this module you have to unload the cray-libsci module
as otherwise the Cray compiler wrappers will add LibSci to the libraries used
by the compiler.

Cray LibSci already contains BLAS, LAPACK and ScaLAPACK functionality and
should be your first choice. But this module may be useful if you run into
problems with the Cray LibSci library. Note however that software in the
LUMI stack is by default build with the Cray LibSci library, so your code
that relies on ScaLAPACK may not link correctly to any of the other modules
in the LUMI software stacks.
"""


toolchain = {'name': 'cpeAOCC', 'version': '22.08'}

source_urls = ['https://github.com/amd/aocl-scalapack/archive/']
sources =     ['%(version)s.tar.gz']
checksums =   ['9e00979bb1be39d627bdacb01774bc043029840d542fafc934d16fec3e3b0892']

builddependencies = [ # Create a reproducible build environment.
    ('buildtools', '%(toolchain_version)s', '', True),
]

dependencies = [
    ('BLIS',     version, versionsuffix),  # Will be pulled in via libFLAME anyway though
    ('libFLAME', version, versionsuffix)
]

preconfigopts = 'module unload cray-libsci && '

configopts  = '-DBLAS_LIBRARIES=${EBROOTBLIS}/lib/libblis.so -DLAPACK_LIBRARIES=${EBROOTLIBFLAME}/lib/libflame.so -DUSE_OPTIMIZED_LAPACK_BLAS=ON '
configopts += '-DBUILD_SHARED_LIBS=ON -DBUILD_STATIC_LIBS=ON -DCMAKE_BUILD_TYPE=Release '

prebuildopts = 'module unload cray-libsci && '

sanity_check_paths = {
    'files': ['lib/libscalapack.%s' % SHLIB_EXT],
    'dirs':  ['lib'],
}

#modluafooter = """
#conflict("cray-libsci")
#"""

moduleclass = 'numlib'

[ScaLAPACK] [package list]