-
Notifications
You must be signed in to change notification settings - Fork 772
{compiler}[GCC/11.2.0] hipSYCL v0.9.2 w/ Python 3.9.6 #15074
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
nordmoen
wants to merge
3
commits into
easybuilders:develop
from
nordmoen:20220303122409_new_pr_hipSYCL092
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
78 changes: 78 additions & 0 deletions
78
easybuild/easyconfigs/c/Clang/Clang-13.0.1-GCCcore-11.2.0-CUDA-11.4.1.eb
This file contains hidden or 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,78 @@ | ||
| ## | ||
| # This file is an EasyBuild reciPY as per https://github.com/easybuilders/easybuild | ||
| # | ||
| # Copyright:: Copyright 2013-2015 Dmitri Gribenko, Ward Poelmans | ||
| # Authors:: Dmitri Gribenko <[email protected]> | ||
| # Authors:: Ward Poelmans <[email protected]> | ||
| # License:: GPLv2 or later, MIT, three-clause BSD. | ||
| # $Id$ | ||
| ## | ||
|
|
||
| name = 'Clang' | ||
| version = '13.0.1' | ||
| versionsuffix = '-CUDA-%(cudaver)s' | ||
|
|
||
| homepage = 'https://clang.llvm.org/' | ||
| description = """C, C++, Objective-C compiler, based on LLVM. Does not | ||
| include C++ standard library -- use libstdc++ from GCC.""" | ||
|
|
||
| # Clang also depends on libstdc++ during runtime, but this dependency is | ||
| # already specified as the toolchain. | ||
| toolchain = {'name': 'GCCcore', 'version': '11.2.0'} | ||
|
|
||
| source_urls = ["https://github.com/llvm/llvm-project/releases/download/llvmorg-%(version)s"] | ||
| sources = [ | ||
| 'llvm-%(version)s.src.tar.xz', | ||
| 'clang-%(version)s.src.tar.xz', | ||
| 'compiler-rt-%(version)s.src.tar.xz', | ||
| 'polly-%(version)s.src.tar.xz', | ||
| 'openmp-%(version)s.src.tar.xz', | ||
| # Also include the LLVM linker | ||
| 'lld-%(version)s.src.tar.xz', | ||
| 'libcxx-%(version)s.src.tar.xz', | ||
| 'libcxxabi-%(version)s.src.tar.xz', | ||
| 'clang-tools-extra-%(version)s.src.tar.xz', | ||
| 'libunwind-%(version)s.src.tar.xz', | ||
| ] | ||
| checksums = [ | ||
| 'ec6b80d82c384acad2dc192903a6cf2cdbaffb889b84bfb98da9d71e630fc834', # llvm-13.0.1.src.tar.xz | ||
| '787a9e2d99f5c8720aa1773e4be009461cd30d3bd40fdd24591e473467c917c9', # clang-13.0.1.src.tar.xz | ||
| '7b33955031f9a9c5d63077dedb0f99d77e4e7c996266952c1cec55626dca5dfc', # compiler-rt-13.0.1.src.tar.xz | ||
| 'f4003e03da57b53bf206faadd0cf53f7b198c38498c605dec45743db23c10ad0', # polly-13.0.1.src.tar.xz | ||
| '6b79261371616c31fea18cd3ee1797c79ee38bcaf8417676d4fa366a24c96b4f', # openmp-13.0.1.src.tar.xz | ||
| '666af745e8bf7b680533b4d18b7a31dc7cab575b1e6e4d261922bbafd9644cfb', # lld-13.0.1.src.tar.xz | ||
| '2f446acc00bb7cfb4e866c2fa46d1b6dbf4e7d2ab62e3c3d84e56f7b9e28110f', # libcxx-13.0.1.src.tar.xz | ||
| 'db5fa6093c786051e8b1c85527240924eceb6c95eeff0a2bbc57be8422b3cef1', # libcxxabi-13.0.1.src.tar.xz | ||
| 'cc2bc8598848513fa2257a270083e986fd61048347eccf1d801926ea709392d0', # clang-tools-extra-13.0.1.src.tar.xz | ||
| 'e206dbf1bbe058a113bffe189386ded99a160b2443ee1e2cd41ff810f78551ba', # libunwind-13.0.1.src.tar.xz | ||
| ] | ||
|
|
||
| dependencies = [ | ||
| # since Clang is a compiler, binutils is a runtime dependency too | ||
| ('binutils', '2.37'), | ||
| ('hwloc', '2.5.0'), | ||
| ('libxml2', '2.9.10'), | ||
| ('ncurses', '6.2'), | ||
| ('CUDA', '11.4.1', '', True), | ||
| ('GMP', '6.2.1'), | ||
| ('Z3', '4.8.12'), | ||
| ] | ||
|
|
||
| builddependencies = [ | ||
| ('CMake', '3.21.1'), | ||
| ('Python', '3.9.6'), | ||
| ('Perl', '5.34.0'), | ||
| ('elfutils', '0.185'), | ||
| ('pkg-config', '0.29.2'), | ||
| ] | ||
|
|
||
| assertions = False | ||
| usepolly = True | ||
| build_lld = True | ||
| libcxx = True | ||
| enable_rtti = True | ||
| build_extra_clang_tools = True | ||
|
|
||
| skip_all_tests = True | ||
|
|
||
| moduleclass = 'compiler' | ||
50 changes: 50 additions & 0 deletions
50
easybuild/easyconfigs/h/hipSYCL/hipSYCL-0.9.2-GCC-11.2.0-CUDA-11.4.1.eb
This file contains hidden or 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,50 @@ | ||
| easyblock = 'CMakeMake' | ||
|
|
||
| name = 'hipSYCL' | ||
| version = '0.9.2' | ||
| versionsuffix = '-CUDA-%(cudaver)s' | ||
|
|
||
| homepage = 'https://github.com/illuhad/hipSYCL' | ||
| description = """hipSYCL is a modern SYCL implementation targeting CPUs and | ||
| GPUs, with a focus on leveraging existing toolchains such as CUDA or HIP""" | ||
|
|
||
| toolchain = {'name': 'GCC', 'version': '11.2.0'} | ||
|
|
||
| source_urls = ["https://github.com/illuhad/hipSYCL/archive/refs/tags/"] | ||
| sources = ["v%(version)s.tar.gz"] | ||
| patches = ["hipSYCL-0.9.2-filter-cuda-stubs-rpath.patch"] | ||
| checksums = [ | ||
| # hipSYCL-0.9.2.tar.gz | ||
| '086cd259345627cd1205a2fbb96fb1f3d1c4f3a13f9520753a4f4df313445c6d', | ||
| # hipSYCL-0.9.2-filter-cuda-stubs-rpath.patch | ||
| '482fa016d1ba70ec456e70deb6b9e54259cd006f433be0ef8ef984908cd8f3b0'] | ||
|
|
||
| dependencies = [ | ||
| ('Boost', '1.77.0'), | ||
| ('CUDA', '11.4.1', '', True), | ||
| ('Clang', '13.0.1', '-CUDA-%(cudaver)s'), | ||
| ('Python', '3.9.6'), | ||
| ] | ||
|
|
||
| builddependencies = [ | ||
| ('CMake', '3.21.1'), | ||
| ] | ||
|
|
||
| configopts = '-DCMAKE_C_COMPILER="$EBROOTCLANG/bin/clang" ' | ||
| configopts += '-DCMAKE_CXX_COMPILER="$EBROOTCLANG/bin/clang++" ' | ||
| configopts += '-DLLVM_DIR=$EBROOTCLANG/lib/cmake/ ' | ||
| configopts += '-DWITH_CPU_BACKEND=ON ' | ||
| configopts += '-DWITH_CUDA_BACKEND=ON ' | ||
| configopts += '-DWITH_ROCM_BACKEND=OFF ' | ||
|
|
||
| sanity_check_paths = { | ||
| 'files': ['bin/syclcc-clang', 'include/sycl/sycl.hpp', | ||
| 'lib/hipSYCL/librt-backend-omp.%s' % SHLIB_EXT, | ||
| 'lib/hipSYCL/librt-backend-cuda.%s' % SHLIB_EXT, | ||
| 'lib/libhipSYCL_clang.%s' % SHLIB_EXT, | ||
| 'lib/libhipSYCL-rt.%s' % SHLIB_EXT], | ||
| 'dirs': ['include/CL', 'include/hipSYCL', 'include/SYCL', 'lib'], | ||
| } | ||
| sanity_check_commands = ['syclcc --help'] | ||
|
|
||
| moduleclass = 'compiler' |
32 changes: 32 additions & 0 deletions
32
easybuild/easyconfigs/h/hipSYCL/hipSYCL-0.9.2-filter-cuda-stubs-rpath.patch
This file contains hidden or 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,32 @@ | ||
| # This patch filters out the CUDA stubs directory from the RPATH of the CUDA | ||
| # runtime module of hipSYCL. | ||
| # | ||
| # Inspiration: https://github.com/easybuilders/easybuild-easyconfigs/pull/14382 | ||
|
|
||
| --- hipSYCL-0.9.2/src/runtime/CMakeLists.txt.orig 2022-03-02 08:22:35.379883966 +0100 | ||
| +++ hipSYCL-0.9.2/src/runtime/CMakeLists.txt 2022-03-02 08:28:52.125868898 +0100 | ||
| @@ -81,8 +81,22 @@ | ||
| target_include_directories(rt-backend-cuda PRIVATE | ||
| ${HIPSYCL_SOURCE_DIR}/include | ||
| ${CUDA_TOOLKIT_ROOT_DIR}/include) | ||
| - | ||
| - target_link_libraries(rt-backend-cuda PRIVATE hipSYCL-rt ${CUDA_LIBRARIES} ${CUDA_DRIVER_LIBRARY}) | ||
| + | ||
| + set(hipSYCL_CUDA_LIBS ${CUDA_LIBRARIES} ${CUDA_DRIVER_LIBRARY}) | ||
| + foreach(LIB in LISTS hipSYCL_CUDA_LIBS) | ||
| + message("LIB: ${LIB}") | ||
| + if(LIB MATCHES "stubs") | ||
| + message("Filtering ${LIB} from being set in hipSYCL RPATH, because it appears to be the CUDA stubs directory which should not be in the RPATH") | ||
| + else() | ||
| + cmake_path(GET LIB PARENT_PATH LIB_PATH) | ||
| + message("LIBPATH: ${LIB_PATH}") | ||
| + list(APPEND hipSYCL_CUDA_RPATH ${LIB_PATH}) | ||
| + endif() | ||
| + endforeach() | ||
| + message("hipSYCL_CUDA_RPATH: ${hipSYCL_CUDA_RPATH}") | ||
| + set_target_properties(rt-backend-cuda PROPERTIES INSTALL_RPATH_USE_LINK_PATH FALSE) | ||
| + set_target_properties(rt-backend-cuda PROPERTIES INSTALL_RPATH "${hipSYCL_CUDA_RPATH}") | ||
| + target_link_libraries(rt-backend-cuda PRIVATE hipSYCL-rt ${hipSYCL_CUDA_LIBS}) | ||
|
|
||
| install(TARGETS rt-backend-cuda | ||
| RUNTIME DESTINATION bin/hipSYCL |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.