SpFFT/1.0.6-cpeGNU-23.09-rocm (SpFFT-1.0.6-cpeGNU-23.09-rocm.eb)
Install with the EasyBuild-user module:
To access module help after installation and get reminded for which stacks and partitions the module is installed, usemodule spider SpFFT/1.0.6-cpeGNU-23.09-rocm
.
EasyConfig:
# contributed by Luca Marsella (CSCS)
# adapted for LUMI-G by Peter Larsson
# Updated to version 1.0.6 by Radim Janalik (CSCS)
easyblock = 'CMakeMake'
name = 'SpFFT'
version = '1.0.6'
versionsuffix = '-rocm'
homepage = 'https://github.com/eth-cscs/SpFFT'
whatis = [
"SpFFT - A 3D FFT library for sparse frequency domain data written in C++ "
"with support for MPI, OpenMP, CUDA and ROCm. Compiled with ROCm support"
]
description = """
SpFFT - A 3D FFT library for sparse frequency domain data written in C++ with
support for MPI, OpenMP, CUDA and ROCm. Compiled with ROCm support
Inspired by the need of some computational material science applications with
spherical cutoff data in frequency domain, SpFFT provides Fast Fourier
Transformations of sparse frequency domain data. For distributed computations
with MPI, slab decomposition in space domain and pencil decomposition in
frequency domain (sparse data within a pencil / column must be on one rank) is
used.
Design Goals:
- Sparse frequency domain input
- Reuse of pre-allocated memory
- Support for shifted indexing with centered zero-frequency
- Optional parallelization and GPU acceleration
- Unified interface for calculations on CPUs and GPUs
- Support of Complex-To-Real and Real-To-Complex transforms, where the full
hermitian symmetry property is utilized C++, C and Fortran interfaces
"""
docurls = [
'Documentation: https://spfft.readthedocs.io/en/latest/',
]
toolchain = {'name': 'cpeGNU', 'version': '23.09'}
toolchainopts = {'openmp': True, 'opt': True, 'pic': True}
source_urls = ['https://github.com/eth-cscs/%(name)s/archive']
sources = ['v%(version)s.tar.gz']
patches = ['SpFFT-1.0.6_rocm6.patch']
checksums = [
'd179ccdce65890587d0cbf72dc2e5ec0b200ffc56e723ed01a2f5063de6a8630', # v1.0.6.tar.gz
'ce70e46cc88d2595da1fa3331ddde0539599ca990f2fa2b72d3e320faea9ea0d', # SpFFT-1.0.6_rocm6.patch
]
builddependencies = [
('buildtools', '%(toolchain_version)s', '', True),
]
dependencies = [
('rocm', EXTERNAL_MODULE),
('cray-fftw', EXTERNAL_MODULE),
]
configopts = ' '.join([
'-DSPFFT_FFTW_LIB=FFTW',
'-DSPFFT_GPU_BACKEND=ROCM',
'-DSPFFT_SINGLE_PRECISION=ON',
'-DSPFFT_MPI=ON',
'-DSPFFT_OMP=ON',
'-DHIP_HCC_FLAGS="--offload-arch=gfx90a"',
])
prebuildopts = 'export CPATH=$ROCM_PATH/include/hipfft:$CPATH && '
preinstallopts = prebuildopts
sanity_check_paths = {
'files': [
'lib/libspfft.so',
'include/%(namelower)s/config.h',
'include/%(namelower)s/%(namelower)s.hpp'
],
'dirs': [],
}
moduleclass = 'lib'