Skip to content

[AdaptiveCpp] [package list]

AdaptiveCpp/23.10.0-cpeAMD-23.09-rocm-5.2.3 (AdaptiveCpp-23.10.0-cpeAMD-23.09-rocm-5.2.3.eb)

Install with the EasyBuild-user module:

eb AdaptiveCpp-23.10.0-cpeAMD-23.09-rocm-5.2.3.eb -r
To access module help after installation and get reminded for which stacks and partitions the module is installed, use module spider AdaptiveCpp/23.10.0-cpeAMD-23.09-rocm-5.2.3.

EasyConfig:

easyblock = 'CMakeMake'

name =    'AdaptiveCpp'
version = '23.10.0'
versionsuffix = '-rocm-5.2.3'

homepage = 'https://adaptivecpp.github.io/'

whatis = [
    "Description: Implementation of SYCL and C++ standard parallelism for CPUs and GPUs from all vendors: The independent, community-driven compiler for C++-based heterogeneous programming models."
]

description = """
AdaptiveCpp is the independent, community-driven modern platform for C++-based heterogeneous programming models targeting CPUs and GPUs from all major vendors. 
"""

toolchain = {'name': 'cpeAMD', 'version': '23.09'}
toolchainopts = {'verbose': False, 'openmp': True}

sources = [{
    'filename': '%(name)s-%(version)s.tar.gz',
    'git_config': {
        'url': 'https://github.com/AdaptiveCpp',
        'repo_name': '%(name)s',
        'commit': 'v%(version)s',
    }
}]

dependencies = [
    ('cray-python/3.10.10', EXTERNAL_MODULE),
    ('rocm/5.2.3', EXTERNAL_MODULE),
    ('gcc-mixed/12.2.0', EXTERNAL_MODULE),
]

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

preconfigopts = 'export PATH=${ROCM_PATH}/llvm/bin:$PATH && '

configopts =  '-DACPP_VERSION_SUFFIX={} '.format(versionsuffix)
configopts += '-DROCM_PATH=$ROCM_PATH '
configopts += '-DCMAKE_C_COMPILER=${ROCM_PATH}/llvm/bin/clang '
configopts += '-DCMAKE_CXX_COMPILER=${ROCM_PATH}/llvm/bin/clang++ '
configopts += '-DWITH_ACCELERATED_CPU=ON '
configopts += '-DWITH_CPU_BACKEND=ON '
configopts += '-DWITH_CUDA_BACKEND=OFF '
configopts += '-DWITH_ROCM_BACKEND=ON '
configopts += '-DWITH_OPENCL_BACKEND=OFF '
configopts += '-DWITH_LEVEL_ZERO_BACKEND=OFF '
configopts += '-DDEFAULT_GPU_ARCH=gfx90a '
configopts += '-DAMDGPU_TARGETS="gfx90a" '
configopts += '-DGPU_TARGETS="gfx90a" ' 
configopts += '-DBoost_NO_BOOST_CMAKE=TRUE '
configopts += '-DBoost_NO_SYSTEM_PATHS=TRUE '
configopts += '-DWITH_SSCP_COMPILER=OFF ' 
configopts += '-DROCM_CXX_FLAGS="--gcc-toolchain=$GCC_PATH/snos/" '
configopts += '-DLLVM_DIR=${ROCM_PATH}/llvm/lib/cmake/llvm/ '


sanity_check_paths = {
    'files': ['bin/acpp', 'include/AdaptiveCpp/sycl/sycl.hpp',
              'lib/hipSYCL/librt-backend-omp.%s' % SHLIB_EXT,
              'lib/hipSYCL/librt-backend-hip.%s' % SHLIB_EXT,
              'lib/libacpp-clang.%s' % SHLIB_EXT,
              'lib/libacpp-rt.%s' % SHLIB_EXT],
    'dirs': ['include/AdaptiveCpp/CL', 'include/AdaptiveCpp/SYCL'],
}
sanity_check_commands = [
    'acpp --help'
]

modextravars = {
    'ACPP_TARGETS': 'hip:gfx90a',
}

moduleclass = 'compiler'

[AdaptiveCpp] [package list]