Skip to content

[libFLAME] [package list]

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

Install with the EasyBuild-user module:

eb libFLAME-3.2-cpeAOCC-22.08-amd.eb -r
To access module help after installation and get reminded for which stacks and partitions the module is installed, use module spider libFLAME/3.2-cpeAOCC-22.08-amd.

EasyConfig:

easyblock = 'ConfigureMake'

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

homepage = 'https://developer.amd.com/amd-cpu-libraries/blas-library/#libflame'

whatis = [
    'Description: AMD\'s fork of libFLAME. libFLAME is a portable library for dense matrix computations, providing much of the functionality present in LAPACK.'
]

description = """
This module provides AMD\'s fork of libFLAME. libFLAME is a portable library
for dense matrix computations, providing much of the functionality present in
LAPACK.

Note that libFLAME 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 libFLAME and BLIS 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/libflame/archive/']
sources =     ['%(version)s.tar.gz']
checksums =   ['6b5337fb668b82d0ed0a4ab4b5af4e2f72e4cedbeeb4a8b6eb9a3ef057fb749a']


builddependencies = [
    ('buildtools', '%(toolchain_version)s', '', True),
]

dependencies = [
    ('BLIS', version, versionsuffix)
]

# Use unset FLIBS to let configure pick up LDFLAGS
preconfigopts  = 'module unload cray-libsci && '
# Configure script uses weird way of compiler vendor detection,
# And vaoid using -march=native but let the compiler wrappers do their work.
preconfigopts += 'sed -e "s|CC_VENDOR=..echo.*|CC_VENDOR=clang|" -e "s|-march=native ||" -i configure && '
preconfigopts += 'unset FLIBS && '
preconfigopts += 'LIBS="-lblis-mt $LIBS" '
preconfigopts += 'LDFLAGS="$LDFLAGS -L$EBROOTBLIS/lib -fopenmp -lm -lpthread" '
preconfigopts += 'CFLAGS="$CFLAGS -fopenmp -I${EBROOTBLIS}/include/blis" '

configopts  = '--enable-max-arg-list-hack '
configopts += '--enable-lapack2flame '
configopts += '--enable-external-lapack-interfaces '
configopts += '--enable-cblas-interfaces '
configopts += '--enable-dynamic-build '
configopts += '--enable-multithreading=openmp '
configopts += '--enable-supermatrix '
configopts += '--enable-amd-flags --enable-amd-opt '

prebuildopts = 'module unload cray-libsci && '

# libFLAME C++ Template API tests
# runtest = 'checkcpp LIBBLAS=$EBROOTBLIS/lib/libblis.a'

sanity_check_paths = {
    'files': ['include/FLAME.h', 'lib/libflame.a', 'lib/libflame.%s' % SHLIB_EXT],
    'dirs':  ['lib'],
}

moduleclass = 'numlib'

[libFLAME] [package list]