-
Notifications
You must be signed in to change notification settings - Fork 798
Add ROCm-6.4.1 easyconfigs #25576
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
Merged
Merged
Add ROCm-6.4.1 easyconfigs #25576
Changes from 65 commits
Commits
Show all changes
87 commits
Select commit
Hold shift + click to select a range
5b4094e
Add CppHeaderParser-2.7.4-GCCcore-14.2.0
zerefwayne b39f1e3
Add rocm-compilers-19.0.0-ROCm-6.4.1.eb
zerefwayne 6b6af7f
Add rocm-cmake-0.14.0-rocm-compilers-19.0.0-ROCm-6.4.1.eb
zerefwayne 6f93daf
Add HIP-6.4.1-rocm-compilers-19.0.0-ROCm-6.4.1.eb
zerefwayne 1cac1b2
Add hipBLAS-common-1.2.0-rocm-compilers-19.0.0-ROCm-6.4.1.eb
zerefwayne bdb4000
Add rocTracer-4.1.0-GCCcore-14.2.0-ROCm-6.4.1.eb
zerefwayne afdedbc
Add hipBLASLt-0.12.1-GCC-14.2.0-ROCm-6.4.1.eb
zerefwayne a54965a
Add Boost-1.88.0-rocm-compilers-19.0.0-ROCm-6.4.1.eb and msgpack-cxx-…
zerefwayne 1bebdd7
Add rocPRIM-3.4.0-rocm-compilers-19.0.0-ROCm-6.4.1.eb
zerefwayne bb1c0e6
Add rocRAND-3.3.0-rocm-compilers-19.0.0-ROCm-6.4.1.eb
zerefwayne fba3027
Add rocThrust-3.3.0-rocm-compilers-19.0.0-ROCm-6.4.1.eb
zerefwayne 4aa7fc9
Add hipRAND-2.13.0-rocm-compilers-19.0.0-ROCm-6.4.1.eb
zerefwayne 5fa1166
Add HIPIFY-19.0.0-rocm-compilers-19.0.0-ROCm-6.4.1.eb
zerefwayne ad6c416
Add hipCUB-3.3.0-rocm-compilers-19.0.0-ROCm-6.4.1.eb
zerefwayne 3f1e1c7
Add half-1.12.0-rocm-compilers-19.0.0-ROCm-6.4.1.eb
zerefwayne 3c51790
Add Tensile-4.43.0-rocm-compilers-19.0.0-ROCm-6.4.1.eb
zerefwayne 84bdd1e
Fix amdsmi-26.2.1
zerefwayne 8a08dfd
Get rid of weird ASCII chars in the filename
27769e9
Fix lint issues
zerefwayne 784fe0b
Add author credits to Jan André Reuter
zerefwayne 4ec3031
Fix credits in old files
zerefwayne 69f493b
Add rocBLAS-4.4.0-rocm-compilers-19.0.0-ROCm-6.4.1.eb
zerefwayne d3ed575
Add rocSPARSE-3.4.0-rocm-compilers-19.0.0-ROCm-6.4.1.eb
zerefwayne d224d7f
Turn off device tests and verification for rocBLAS
zerefwayne 0716694
Add Tensile-4.43.0 patch
zerefwayne 8014926
Add rocSOLVER-3.28.0-rocm-compilers-19.0.0-ROCm-6.4.1.eb
zerefwayne 44ae552
Add hipSPARSE-3.2.0-rocm-compilers-19.0.0-ROCm-6.4.1.eb and hipSPARSE…
zerefwayne 3f3581c
Add rocFFT-1.0.32-GCCcore-14.2.0-ROCm-6.4.1-nompi.eb
zerefwayne 7c4654d
Add rocminfo-1.0.0-rocm-compilers-19.0.0-ROCm-6.4.1.eb
zerefwayne ff4a267
Add rocprofiler-register-0.4.0-GCCcore-14.2.0-ROCm-6.4.1.eb
zerefwayne 30d2489
Add rocm_bandwidth_test-1.4.0-rocm-compilers-19.0.0-ROCm-6.4.1.eb
zerefwayne 4dedfc0
Add ROCgdb-15.2-GCCcore-14.2.0-ROCm-6.4.1.eb and ROCdbgapi-0.77.2-roc…
zerefwayne 5104be0
Rename rocFFT-1.0.32
zerefwayne 28808e9
Add hipSPARSE-3.2.0_fix-fortran-std.patch
zerefwayne 5be2d76
Removed versionsuffix and dep that is now no longer needed
69374b5
Add patch for rocBLAS to fix hardcoded paths
zerefwayne c07d224
Add patch for rocSPARSE hardcoded paths
zerefwayne 67bab6f
Add patch for rocSOLVER to fix hardcoded paths
zerefwayne 1eb9788
Add patch for hipSPARSE to fix hardcoded paths
zerefwayne 03ec8de
Fix trailing whitespace for rocprofiler-register
zerefwayne b926ba3
Temporarily disable rocminfo sanity check commands to allow cross-com…
zerefwayne 8b3b87f
Take out hipBLASLt since it fails on cross-compilation
zerefwayne d86f006
Add composable_kernel-1.1.0-rocm-compilers-19.0.0-ROCm-6.4.1.eb
zerefwayne d3d277a
Add hipTensor-1.5.0-rocm-compilers-19.0.0-ROCm-6.4.1.eb
zerefwayne 05b7522
Add ROCmValidationSuite-1.1.0-rocm-compilers-19.0.0-ROCm-6.4.1.eb
zerefwayne c8ed368
Add hipBLASLt-0.12.1-GCC-14.2.0-ROCm-6.4.1.eb
zerefwayne 198f836
Add RPP-1.9.10-rocm-compilers-19.0.0-ROCm-6.4.1.eb
zerefwayne ad380dd
Add hipFFT-1.0.18-rocm-compilers-19.0.0-ROCm-6.4.1-nompi.eb
zerefwayne 580e191
Add hipSOLVER-2.4.0-rocm-compilers-19.0.0-ROCm-6.4.1.eb
zerefwayne 23d4e97
Fix linting issue for hipBLASLt-0.12.1
zerefwayne e27a735
Add hipBLAS-2.4.0-rocm-compilers-19.0.0-ROCm-6.4.1.eb
zerefwayne 480e4be
Add hipFORT-0.6.0-rocm-compilers-19.0.0-ROCm-6.4.1.eb
zerefwayne de03ab3
Remove CMAKE_IGNORE_PATH from easyconfigs
zerefwayne e24ba00
Update dependencies for hipFORT-0.6.0
zerefwayne d3b911f
Add rocWMMA-1.7.0-rocm-compilers-19.0.0-ROCm-6.4.1.eb
zerefwayne 2236e4d
Add rocm-core-6.4.0-GCCcore-14.2.0-ROCm-6.4.1.eb
zerefwayne 0744500
Fix hipSPARSELt-3.2.0 to use msgpack-cxx
zerefwayne 460e916
Add RCCL-2.22.3-rocm-compilers-19.0.0-ROCm-6.4.1.eb
zerefwayne 8b4fbd0
Fix failing unit tests
zerefwayne d4124af
Bump `half` version to the one we actually provide as easyconfig
casparvl fb1130b
Fix ROCgdb file name
zerefwayne 36aeec4
Remove redundant ROCm-LLVM dependencies and GCCcore suffix
zerefwayne 8a443c9
Fix suffix issues
zerefwayne bae89e2
Add -nompi suffix to hipFFT
zerefwayne ba8510a
Merge branch 'easybuilders:develop' into amd-working
zerefwayne dd08209
Remove two ROCm-LLVM deps that are obsolete now that we use `rocm-com…
casparvl 23c3ec3
Fix binutils version
casparvl a848b31
Merge branch 'easybuilders:develop' into amd-working
zerefwayne 73a968f
Add patch comments and minor refactors
zerefwayne 5578474
Update patch checksums
zerefwayne 33e4110
Merge branch 'easybuilders:develop' into amd-working
zerefwayne f42b32b
Merge branch 'easybuilders:develop' into amd-working
zerefwayne 04fa96a
Remove binutils from easyconfigs
zerefwayne d2ca782
Add checksums for HIP and HIP patch
e582944
Make sure to use comma-seperation, as is expected here
ed2bab9
Use abs_path_compilers to fix RPATH-ing issues
024392e
Add binutils
ef5917e
Now really: Add flex and Bison as build deps
e3385e1
Strip EBROOTBINUTILS/lib and EBROOTBINUTILS/lib64 from the LIBRARY_PA…
ffb6f04
Remove ROCgdb from this PR, as it's proving problematic to resolve th…
4502641
Merge branch 'easybuilders:develop' into amd-working
zerefwayne c86c5f3
Address failing tests
zerefwayne 42e2257
Add rocm-compilers to sanity_check whitelist
zerefwayne ef92c15
Add checksums for rocm-core-6.4.0-GCCcore-14.2.0-ROCm-6.4.1.eb
zerefwayne b90fdee
Fix checksum
4ffdc7d
Remove amdgcn_capabilities parameter from configopts
zerefwayne 8b7db9b
Remove RVS and vestigial local_gcc_version
zerefwayne 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
31 changes: 31 additions & 0 deletions
31
easybuild/easyconfigs/b/Boost/Boost-1.88.0-rocm-compilers-19.0.0-ROCm-6.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,31 @@ | ||
| # Author: Jan André Reuter <j.reuter@fz-juelich.de> | ||
|
|
||
| name = 'Boost' | ||
| version = '1.88.0' | ||
|
|
||
| homepage = 'https://www.boost.org/' | ||
| description = """Boost provides free peer-reviewed portable C++ source libraries.""" | ||
|
|
||
| toolchain = {'name': 'rocm-compilers', 'version': '19.0.0-ROCm-6.4.1'} | ||
| toolchainopts = {'pic': True} | ||
|
|
||
| source_urls = ['https://archives.boost.io/release/%(version)s/source/'] | ||
| sources = ['%%(namelower)s_%s.tar.gz' % '_'.join(version.split('.'))] | ||
| checksums = ['3621533e820dcab1e8012afd583c0c73cf0f77694952b81352bf38c1488f9cb4'] | ||
|
|
||
| dependencies = [ | ||
| ('bzip2', '1.0.8'), | ||
| ('zlib', '1.3.1'), | ||
| ('XZ', '5.6.3'), | ||
| ('zstd', '1.5.6'), | ||
| ('ICU', '76.1'), | ||
| ] | ||
|
|
||
| configopts = '--without-libraries=python,mpi' | ||
| toolset = 'clang' | ||
|
|
||
| # disable MPI, build Boost libraries with tagged layout | ||
| boost_mpi = False | ||
| tagged_layout = True | ||
|
|
||
| moduleclass = 'devel' |
34 changes: 34 additions & 0 deletions
34
easybuild/easyconfigs/c/CppHeaderParser/CppHeaderParser-2.7.4-GCCcore-14.2.0.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,34 @@ | ||
| # Author: Jan André Reuter <j.reuter@fz-juelich.de> | ||
|
|
||
| easyblock = 'PythonBundle' | ||
|
|
||
| name = 'CppHeaderParser' | ||
| version = '2.7.4' | ||
|
|
||
| homepage = 'https://senexcanis.com/open-source/cppheaderparser' | ||
| description = """CppHeaderParser is a pure python module that will parse C++ | ||
| header files and generate a data structure representing the class.""" | ||
|
|
||
| toolchain = {'name': 'GCCcore', 'version': '14.2.0'} | ||
|
|
||
| dependencies = [ | ||
| ('binutils', '2.42'), | ||
| ('Python', '3.13.1'), | ||
| ] | ||
|
|
||
| exts_list = [ | ||
| ('ply', '3.11', { | ||
| 'checksums': ['00c7c1aaa88358b9c765b6d3000c6eec0ba42abca5351b095321aef446081da3'], | ||
| }), | ||
| (name, version, { | ||
| 'modulename': False, | ||
| 'checksums': ['382b30416d95b0a5e8502b214810dcac2a56432917e2651447d3abe253e3cc42'], | ||
| }), | ||
| ] | ||
|
|
||
| fix_python_shebang_for = [ | ||
| 'lib/python%(pyshortver)s/site-packages/CppHeaderParser/*.py', | ||
| 'lib/python%(pyshortver)s/site-packages/CppHeaderParser/examples/*.py', | ||
| ] | ||
|
|
||
| moduleclass = 'lib' |
51 changes: 51 additions & 0 deletions
51
...syconfigs/c/composable_kernel/composable_kernel-1.1.0-rocm-compilers-19.0.0-ROCm-6.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,51 @@ | ||
| easyblock = 'ROCmComponent' | ||
|
|
||
|
|
||
| name = 'composable_kernel' | ||
| version = '1.1.0' | ||
| _rocm_version = '6.4.1' | ||
|
|
||
| homepage = 'https://github.com/ROCm/composable_kernel' | ||
| description = """The Composable Kernel (CK) library provides a programming model for | ||
| writing performance-critical kernels for machine learning workloads across multiple | ||
| architectures (GPUs, CPUs, etc.). The CK library uses general purpose kernel languages, such as HIP C++.""" | ||
| docurls = ['https://rocm.docs.amd.com/projects/composable_kernel/en/latest/'] | ||
|
|
||
| toolchain = {'name': 'rocm-compilers', 'version': '19.0.0-ROCm-6.4.1'} | ||
|
|
||
| github_account = 'ROCm' | ||
| source_urls = [GITHUB_SOURCE] | ||
| sources = [f'rocm-{_rocm_version}.tar.gz'] | ||
| patches = [ | ||
| 'composable_kernel-1.1.0_fix-hardcoded-paths.patch', | ||
| 'composable_kernel-1.1.0_disable-warnings.patch', | ||
| ] | ||
| checksums = [ | ||
| {'rocm-6.4.1.tar.gz': '6db4d36673da6506ca52625b3bd40c29d3b376d31a224fd221ffe60cf97564bf'}, | ||
| {'composable_kernel-1.1.0_fix-hardcoded-paths.patch': | ||
| 'f523ead386c4a392195a8a2f048dd6ae6b35d1c39343d1c880d646ea9f6dd776'}, | ||
| {'composable_kernel-1.1.0_disable-warnings.patch': | ||
| '5f3d4b8d64374b850b73a00c12c30772b9b9abd1fbd12a8fa130e32165945956'}, | ||
| ] | ||
|
|
||
| builddependencies = [ | ||
| ('binutils', '2.42'), | ||
|
zerefwayne marked this conversation as resolved.
Outdated
|
||
| ('CMake', '3.31.3'), | ||
| ('Python', '3.13.1'), | ||
| ] | ||
|
|
||
| dependencies = [ | ||
| ('HIP', _rocm_version), | ||
| ('git', '2.49.0'), | ||
| ] | ||
|
|
||
| configopts = "-DBUILD_TESTING=OFF " | ||
|
|
||
| # Disable Legacy/Fallback Kernels | ||
| configopts += "-DDL_KERNELS=OFF -DDPP_KERNELS=OFF " | ||
|
|
||
| # Disable Developer Bloat & Strict Warnings | ||
| configopts += "-DBUILD_DEV=OFF -DCK_TIME_KERNEL=OFF -DCK_USE_CODEGEN=OFF " | ||
| configopts += "-DUSE_BITINT_EXTENSION_INT4=OFF -DUSE_OPT_GFX11=OFF " | ||
|
|
||
| moduleclass = 'lib' | ||
21 changes: 21 additions & 0 deletions
21
easybuild/easyconfigs/c/composable_kernel/composable_kernel-1.1.0_disable-warnings.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,21 @@ | ||
| diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
|
zerefwayne marked this conversation as resolved.
|
||
| index 1fe1bc91d..c41322e02 100644 | ||
| --- a/CMakeLists.txt | ||
| +++ b/CMakeLists.txt | ||
| @@ -381,7 +381,7 @@ else() | ||
| endif() | ||
|
|
||
| ## tidy | ||
| -include(EnableCompilerWarnings) | ||
| +# include(EnableCompilerWarnings) | ||
| set(CK_TIDY_ERRORS ERRORS * -readability-inconsistent-declaration-parameter-name) | ||
| if(CMAKE_CXX_COMPILER MATCHES ".*hcc" OR CMAKE_CXX_COMPILER MATCHES ".*clang\\+\\+") | ||
| set(CK_TIDY_CHECKS -modernize-use-override -readability-non-const-parameter) | ||
| @@ -534,6 +534,7 @@ include_directories(BEFORE | ||
| ) | ||
|
|
||
| SET(BUILD_DEV ON CACHE BOOL "BUILD_DEV") | ||
| +add_compile_options(-Wno-error -Wno-unused-parameter) | ||
| if(BUILD_DEV) | ||
| add_compile_options(-Werror) | ||
| add_compile_options(-Weverything) | ||
31 changes: 31 additions & 0 deletions
31
easybuild/easyconfigs/c/composable_kernel/composable_kernel-1.1.0_fix-hardcoded-paths.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,31 @@ | ||
| diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
|
zerefwayne marked this conversation as resolved.
|
||
| index 1fe1bc91d..bb8f6170f 100644 | ||
| --- a/CMakeLists.txt | ||
| +++ b/CMakeLists.txt | ||
| @@ -121,7 +121,7 @@ execute_process(COMMAND "${GIT_EXECUTABLE}" rev-parse HEAD OUTPUT_VARIABLE COMMI | ||
| configure_file(include/ck/version.h.in ${CMAKE_CURRENT_BINARY_DIR}/include/ck/version.h) | ||
|
|
||
| set(ROCM_SYMLINK_LIBS OFF) | ||
| -find_package(ROCM REQUIRED PATHS /opt/rocm) | ||
| +find_package(ROCM REQUIRED PATHS $ENV{EBROOTROCMMINCMAKE} $ENV{EBROOTROCMMINLLVM}) | ||
|
|
||
| include(ROCMInstallTargets) | ||
| include(ROCMPackageConfigHelpers) | ||
| @@ -134,7 +134,7 @@ include(TargetFlags) | ||
|
|
||
| rocm_setup_version(VERSION ${version}) | ||
|
|
||
| -list(APPEND CMAKE_PREFIX_PATH ${CMAKE_INSTALL_PREFIX} ${CMAKE_INSTALL_PREFIX}/llvm ${CMAKE_INSTALL_PREFIX}/hip /opt/rocm /opt/rocm/llvm /opt/rocm/hip "$ENV{ROCM_PATH}" "$ENV{HIP_PATH}") | ||
| +list(APPEND CMAKE_PREFIX_PATH $ENV{EBROOTROCMMINLLVM} $ENV{EBROOTHIP} ${CMAKE_INSTALL_PREFIX} ${CMAKE_INSTALL_PREFIX}/llvm ${CMAKE_INSTALL_PREFIX}/hip "$ENV{ROCM_PATH}" "$ENV{HIP_PATH}") | ||
|
|
||
| message("GPU_TARGETS= ${GPU_TARGETS}") | ||
| message("GPU_ARCHS= ${GPU_ARCHS}") | ||
| @@ -148,7 +148,7 @@ if(GPU_TARGETS) | ||
| else() | ||
| set(USER_GPU_TARGETS 0) | ||
| endif() | ||
| -find_package(hip REQUIRED) | ||
| +find_package(hip REQUIRED PATHS $ENV{EBROOTHIP}) | ||
| # No assumption that HIP kernels are launched with uniform block size for backward compatibility | ||
| # SWDEV-413293 and https://reviews.llvm.org/D155213 | ||
| math(EXPR hip_VERSION_FLAT "(${hip_VERSION_MAJOR} * 1000 + ${hip_VERSION_MINOR}) * 100000 + ${hip_VERSION_PATCH}") | ||
56 changes: 56 additions & 0 deletions
56
easybuild/easyconfigs/h/HIP/HIP-6.3.3_correct_paths_clang_and_rocm_agent_enum.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,56 @@ | ||
| From 8d2e14328cd99bbad2eaa498c207cf41f688fc30 Mon Sep 17 00:00:00 2001 | ||
|
zerefwayne marked this conversation as resolved.
|
||
| From: sreenivasa murthy kolam <sreenivasamurthy.kolam@amd.com> | ||
| Date: Mon, 23 Sep 2024 10:34:16 +0000 | ||
| Subject: [PATCH] Use the rocminfo_path and hipclang_path inside the hipcc.pl | ||
| and hipbin_amd.h | ||
|
|
||
| --- | ||
| amd/hipcc/bin/hipcc.pl | 9 ++++++--- | ||
| amd/hipcc/src/hipBin_amd.h | 2 +- | ||
| 2 files changed, 7 insertions(+), 4 deletions(-) | ||
|
|
||
| diff --git a/amd/hipcc/bin/hipcc.pl b/amd/hipcc/bin/hipcc.pl | ||
| index 27839e5..fcb8d4e 100755 | ||
| --- a/amd/hipcc/bin/hipcc.pl | ||
| +++ b/amd/hipcc/bin/hipcc.pl | ||
| @@ -160,11 +160,13 @@ if ($HIP_PLATFORM eq "amd") { | ||
| if($isWindows) { | ||
| $execExtension = ".exe"; | ||
| } | ||
| - $HIPCC=get_normalized_path("$HIP_CLANG_PATH/clang++" . $execExtension); | ||
| + # hip_clang_path is set inside the hip recipe | ||
| + $HIP_CLANG_PATH= $ENV{'HIP_CLANG_PATH'}; | ||
| + $HIPCC="${HIP_CLANG_PATH}/clang++" . $execExtension; | ||
|
|
||
| # If $HIPCC clang++ is not compiled, use clang instead | ||
| if ( ! -e $HIPCC ) { | ||
| - $HIPCC=get_normalized_path("$HIP_CLANG_PATH/clang" . $execExtension); | ||
| + $HIPCC="${HIP_CLANG_PATH}/clang" . $execExtension; | ||
| $HIPLDFLAGS = "--driver-mode=g++"; | ||
| } | ||
| # to avoid using dk linker or MSVC linker | ||
| @@ -480,7 +482,8 @@ if($HIP_PLATFORM eq "amd"){ | ||
| $targetsStr = $ENV{HCC_AMDGPU_TARGET}; | ||
| } elsif (not $isWindows) { | ||
| # Else try using rocm_agent_enumerator | ||
| - $ROCM_AGENT_ENUM = "${ROCM_PATH}/bin/rocm_agent_enumerator"; | ||
| + $ROCMINFO_PATH = $ENV{'EBROOTROCMINFO'} // $ROCMINFO_PATH; | ||
| + $ROCM_AGENT_ENUM = "${EBROOTROCMINFO}/bin/rocm_agent_enumerator"; | ||
| $targetsStr = `${ROCM_AGENT_ENUM} -t GPU`; | ||
| $targetsStr =~ s/\n/,/g; | ||
| } | ||
| diff --git a/amd/hipcc/src/hipBin_amd.h b/amd/hipcc/src/hipBin_amd.h | ||
| index 57d0098..d53d081 100644 | ||
| --- a/amd/hipcc/src/hipBin_amd.h | ||
| +++ b/amd/hipcc/src/hipBin_amd.h | ||
| @@ -752,7 +752,7 @@ void HipBinAmd::executeHipCCCmd(vector<string> argv) { | ||
| } else if (os != windows) { | ||
| // Else try using rocm_agent_enumerator | ||
| string ROCM_AGENT_ENUM; | ||
| - ROCM_AGENT_ENUM = roccmPath + "/bin/rocm_agent_enumerator"; | ||
| + ROCM_AGENT_ENUM = string(getenv("EBROOTROCMINFO")) + "/bin/rocm_agent_enumerator"; | ||
| targetsStr = ROCM_AGENT_ENUM +" -t GPU"; | ||
| SystemCmdOut sysOut = hipBinUtilPtr_->exec(targetsStr.c_str()); | ||
| regex toReplace("\n+"); | ||
| -- | ||
| 2.39.3 | ||
119 changes: 119 additions & 0 deletions
119
easybuild/easyconfigs/h/HIP/HIP-6.4.1-rocm-compilers-19.0.0-ROCm-6.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,119 @@ | ||
| # Author: Jan André Reuter <j.reuter@fz-juelich.de> | ||
|
|
||
| easyblock = 'Bundle' | ||
|
|
||
| name = 'HIP' | ||
| _rocm_version = '6.4.1' | ||
| version = _rocm_version | ||
|
|
||
| homepage = 'https://github.com/ROCm/HIP' | ||
| description = """HIP is a C++ Runtime API and Kernel Language that allows | ||
| developers to create portable applications for AMD and NVIDIA GPUs from single | ||
| source code.""" | ||
| docurls = ['https://rocmdocs.amd.com/projects/HIP/'] | ||
|
|
||
| toolchain = {'name': 'rocm-compilers', 'version': '19.0.0-ROCm-6.4.1'} | ||
|
|
||
| builddependencies = [ | ||
| ('binutils', '2.42'), | ||
|
zerefwayne marked this conversation as resolved.
Outdated
|
||
| ('CMake', '3.31.3'), | ||
| ('CppHeaderParser', '2.7.4'), | ||
| ] | ||
|
|
||
| dependencies = [ | ||
| ('libglvnd', '1.7.0'), | ||
| ('rocm-cmake', '0.14.0'), | ||
| ('numactl', '2.0.19'), | ||
| ('Perl', '5.40.0'), | ||
| ('rocminfo', '1.0.0'), | ||
| ('rocprofiler-register', '0.4.0', f'-ROCm-{_rocm_version}'), | ||
| ] | ||
|
|
||
| default_easyblock = 'CMakeMake' | ||
|
|
||
| default_component_specs = { | ||
| 'source_urls': ['https://github.com/ROCm/%(name)s/archive/'], | ||
| 'sources': [{ | ||
| 'download_filename': '%(version)s.tar.gz', | ||
| 'filename': '%(name)s-%(version)s.tar.gz', | ||
| }], | ||
| 'srcdir': '%(name)s-%(version)s', | ||
| } | ||
|
|
||
| components = [ | ||
| ('HIPCC', '%s' % _rocm_version, { | ||
| 'sources': [ | ||
| { | ||
| 'source_urls': ['https://github.com/ROCm/llvm-project/archive/'], | ||
| 'download_filename': 'rocm-%(version)s.tar.gz', | ||
| 'filename': 'llvm-project-rocm-%(version)s.tar.gz' | ||
| }, | ||
| ], | ||
| 'patches': [('HIP-6.3.3_correct_paths_clang_and_rocm_agent_enum.patch', | ||
| 'llvm-project-rocm-%s' % _rocm_version)], | ||
| 'checksums': [ | ||
| '460ad28677092b9eb86ffdc49bcb4d01035e32b4f05161d85f90c9fa80239f50', # llvm-project-rocm-6.4.1.tar.gz | ||
| # HIP-6.3.3_correct_paths_clang_and_rocm_agent_enum.patch | ||
| '63bb15c904c49c25f99ee643accc8976ee9aed40b5ba5cb42afa29e67fa41f76', | ||
| ], | ||
| 'srcdir': 'llvm-project-rocm-%s/amd/hipcc' % _rocm_version, | ||
| }), | ||
|
casparvl marked this conversation as resolved.
|
||
| ('HIP', '%s' % _rocm_version, { | ||
| 'sources': [ | ||
| { | ||
| 'source_urls': ['https://github.com/ROCm/clr/archive/'], | ||
| 'download_filename': 'rocm-%(version)s.tar.gz', | ||
| 'filename': 'clr-%(version)s.tar.gz', | ||
| }, | ||
| { | ||
| 'source_urls': ['https://github.com/ROCm/HIP/archive/'], | ||
| 'download_filename': 'rocm-%(version)s.tar.gz', | ||
| 'filename': 'HIP-%(version)s.tar.gz', | ||
| }, | ||
| ], | ||
| 'checksums': [ | ||
| '18ee75a04f6fc55e72f8b3fcad1e0d58eceb2ce0e0696ca76d9b3dfaf4bfd7ff', # clr-rocm-6.4.1.tar.gz | ||
| 'f26f098b08504636c6f4e1da45b162f1df2ce6608eba85606fa7932d8fea960f', # HIP-rocm-6.4.1.tar.gz | ||
| ], | ||
| 'srcdir': 'clr-rocm-%s' % _rocm_version, | ||
| 'configopts': '-DHIP_COMMON_DIR=%(builddir)s/hip-rocm-%(version)s/ -DHIP_PLATFORM=amd ' + | ||
| '-DHIPCC_BIN_DIR=%(installdir)s/bin -DCLR_BUILD_HIP=ON -DCLR_BUILD_OCL=OFF' | ||
| }), | ||
| ] | ||
|
|
||
| sanity_check_paths = { | ||
| 'files': ['bin/%s' % x for x in ['hipcc', 'hipcc.pl', 'hipconfig', 'hipconfig.pl']] + | ||
| ['bin/%s' % x for x in ['roc-obj', 'roc-obj-extract', 'roc-obj-ls']] + | ||
| ['include/hip/hip_common.h', 'include/hip/hip_runtime.h', 'lib/libamdhip64.%s' % SHLIB_EXT], | ||
| 'dirs': [], | ||
| } | ||
| sanity_check_commands = [ | ||
| 'hipcc --help', | ||
| 'hipconfig --full' | ||
| ] | ||
|
|
||
| modextravars = { | ||
| 'HIP_COMPILER': 'amdclang', | ||
| 'HIP_INCLUDE_PATH': '%(installdir)s/include', | ||
| 'HIP_LIB_PATH': '%(installdir)s/lib', | ||
| 'HIP_PATH': '%(installdir)s', | ||
| 'HIP_RUNTIME': 'rocclr', | ||
| 'HIPCC_PATH': '%(installdir)s', | ||
| 'ROCM_PATH': '%(installdir)s', | ||
| } | ||
|
|
||
| modluafooter = """ | ||
| setenv("DEVICE_LIB_PATH", os.getenv("EBROOTROCMMINLLVM") .. "/amdgcn/bitcode") | ||
| setenv("HIP_CLANG_INCLUDE_PATH", os.getenv("EBROOTROCMMINLLVM") .. "/include") | ||
| setenv("HIP_CLANG_PATH", os.getenv("EBROOTROCMMINLLVM") .. "/bin") | ||
| setenv("HSA_PATH", os.getenv("EBROOTROCMMINLLVM")) | ||
| """ | ||
|
|
||
| modtclfooter = """ | ||
| setenv DEVICE_LIB_PATH $::env(EBROOTROCMMINLLVM)/amdgcn/bitcode | ||
| setenv HIP_CLANG_INCLUDE_PATH $::env(EBROOTROCMMINLLVM)/include | ||
| setenv HIP_CLANG_PATH $::env(EBROOTROCMMINLLVM)/bin | ||
| setenv HSA_PATH $::env(EBROOTROCMMINLLVM) | ||
| """ | ||
|
|
||
| moduleclass = 'tools' | ||
Oops, something went wrong.
Oops, something went wrong.
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.