-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #218 from Lumi-supercomputer/update/acpp-24.10
AdaptiveCpp update 24.10 release
- Loading branch information
Showing
1 changed file
with
80 additions
and
0 deletions.
There are no files selected for viewing
80 changes: 80 additions & 0 deletions
80
easybuild/easyconfigs/a/AdaptiveCpp/AdaptiveCpp-24.10-cpeAMD-24.03-rocm.eb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
easyblock = 'CMakeMake' | ||
|
||
local_Boost_version = '1.83.0' | ||
|
||
name = 'AdaptiveCpp' | ||
version = '24.10.0' | ||
versionsuffix = '-rocm' | ||
|
||
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': '24.03'} | ||
toolchainopts = {'verbose': False, 'openmp': True} | ||
|
||
sources = [{ | ||
'filename': '%(name)s-%(version)s.tar.gz', | ||
'git_config': { | ||
'url': 'https://github.com/AdaptiveCpp', | ||
'repo_name': '%(name)s', | ||
'tag': 'v%(version)s', | ||
} | ||
}] | ||
|
||
builddependencies = [ | ||
('buildtools', '%(toolchain_version)s', '', True), | ||
('Boost', local_Boost_version), | ||
] | ||
|
||
dependencies = [ | ||
('cray-python', EXTERNAL_MODULE), | ||
('rocm', EXTERNAL_MODULE), | ||
] | ||
|
||
preconfigopts = 'export PATH=${ROCM_PATH}/llvm/bin:$PATH && ' | ||
preconfigopts += 'export C_INCLUDE_PATH=$ROCM_PATH/llvm/include && ' | ||
preconfigopts += 'export CPLUS_INCLUDE_PATH=$ROCM_PATH/llvm/include && ' | ||
|
||
configopts = '-DACPP_VERSION_SUFFIX="rocm6" ' | ||
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 += '-DACPP_TARGETS="gfx90a" ' | ||
configopts += '-DBoost_NO_BOOST_CMAKE=TRUE ' | ||
configopts += '-DBoost_NO_SYSTEM_PATHS=TRUE ' | ||
configopts += '-DWITH_SSCP_COMPILER=OFF ' | ||
configopts += '-DLLVM_DIR=${ROCM_PATH}/llvm/lib/cmake/llvm/ ' | ||
configopts += '-DHIPSYCL_ALLOW_INSTANT_SUBMISSION=1 ' | ||
|
||
|
||
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' | ||
|