Skip to content
Merged
Show file tree
Hide file tree
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 Mar 11, 2026
b39f1e3
Add rocm-compilers-19.0.0-ROCm-6.4.1.eb
zerefwayne Mar 11, 2026
6b6af7f
Add rocm-cmake-0.14.0-rocm-compilers-19.0.0-ROCm-6.4.1.eb
zerefwayne Mar 11, 2026
6f93daf
Add HIP-6.4.1-rocm-compilers-19.0.0-ROCm-6.4.1.eb
zerefwayne Mar 11, 2026
1cac1b2
Add hipBLAS-common-1.2.0-rocm-compilers-19.0.0-ROCm-6.4.1.eb
zerefwayne Mar 13, 2026
bdb4000
Add rocTracer-4.1.0-GCCcore-14.2.0-ROCm-6.4.1.eb
zerefwayne Mar 13, 2026
afdedbc
Add hipBLASLt-0.12.1-GCC-14.2.0-ROCm-6.4.1.eb
zerefwayne Mar 14, 2026
a54965a
Add Boost-1.88.0-rocm-compilers-19.0.0-ROCm-6.4.1.eb and msgpack-cxx-…
zerefwayne Mar 14, 2026
1bebdd7
Add rocPRIM-3.4.0-rocm-compilers-19.0.0-ROCm-6.4.1.eb
zerefwayne Mar 14, 2026
bb1c0e6
Add rocRAND-3.3.0-rocm-compilers-19.0.0-ROCm-6.4.1.eb
zerefwayne Mar 14, 2026
fba3027
Add rocThrust-3.3.0-rocm-compilers-19.0.0-ROCm-6.4.1.eb
zerefwayne Mar 14, 2026
4aa7fc9
Add hipRAND-2.13.0-rocm-compilers-19.0.0-ROCm-6.4.1.eb
zerefwayne Mar 14, 2026
5fa1166
Add HIPIFY-19.0.0-rocm-compilers-19.0.0-ROCm-6.4.1.eb
zerefwayne Mar 14, 2026
ad6c416
Add hipCUB-3.3.0-rocm-compilers-19.0.0-ROCm-6.4.1.eb
zerefwayne Mar 14, 2026
3f1e1c7
Add half-1.12.0-rocm-compilers-19.0.0-ROCm-6.4.1.eb
zerefwayne Mar 14, 2026
3c51790
Add Tensile-4.43.0-rocm-compilers-19.0.0-ROCm-6.4.1.eb
zerefwayne Mar 14, 2026
84bdd1e
Fix amdsmi-26.2.1
zerefwayne Mar 17, 2026
8a08dfd
Get rid of weird ASCII chars in the filename
Mar 17, 2026
27769e9
Fix lint issues
zerefwayne Mar 17, 2026
784fe0b
Add author credits to Jan André Reuter
zerefwayne Mar 17, 2026
4ec3031
Fix credits in old files
zerefwayne Mar 17, 2026
69f493b
Add rocBLAS-4.4.0-rocm-compilers-19.0.0-ROCm-6.4.1.eb
zerefwayne Mar 14, 2026
d3ed575
Add rocSPARSE-3.4.0-rocm-compilers-19.0.0-ROCm-6.4.1.eb
zerefwayne Mar 14, 2026
d224d7f
Turn off device tests and verification for rocBLAS
zerefwayne Mar 14, 2026
0716694
Add Tensile-4.43.0 patch
zerefwayne Mar 17, 2026
8014926
Add rocSOLVER-3.28.0-rocm-compilers-19.0.0-ROCm-6.4.1.eb
zerefwayne Mar 17, 2026
44ae552
Add hipSPARSE-3.2.0-rocm-compilers-19.0.0-ROCm-6.4.1.eb and hipSPARSE…
zerefwayne Mar 17, 2026
3f3581c
Add rocFFT-1.0.32-GCCcore-14.2.0-ROCm-6.4.1-nompi.eb
zerefwayne Mar 17, 2026
7c4654d
Add rocminfo-1.0.0-rocm-compilers-19.0.0-ROCm-6.4.1.eb
zerefwayne Mar 17, 2026
ff4a267
Add rocprofiler-register-0.4.0-GCCcore-14.2.0-ROCm-6.4.1.eb
zerefwayne Mar 17, 2026
30d2489
Add rocm_bandwidth_test-1.4.0-rocm-compilers-19.0.0-ROCm-6.4.1.eb
zerefwayne Mar 17, 2026
4dedfc0
Add ROCgdb-15.2-GCCcore-14.2.0-ROCm-6.4.1.eb and ROCdbgapi-0.77.2-roc…
zerefwayne Mar 17, 2026
5104be0
Rename rocFFT-1.0.32
zerefwayne Mar 17, 2026
28808e9
Add hipSPARSE-3.2.0_fix-fortran-std.patch
zerefwayne Mar 17, 2026
5be2d76
Removed versionsuffix and dep that is now no longer needed
Mar 18, 2026
69374b5
Add patch for rocBLAS to fix hardcoded paths
zerefwayne Mar 18, 2026
c07d224
Add patch for rocSPARSE hardcoded paths
zerefwayne Mar 18, 2026
67bab6f
Add patch for rocSOLVER to fix hardcoded paths
zerefwayne Mar 18, 2026
1eb9788
Add patch for hipSPARSE to fix hardcoded paths
zerefwayne Mar 18, 2026
03ec8de
Fix trailing whitespace for rocprofiler-register
zerefwayne Mar 18, 2026
b926ba3
Temporarily disable rocminfo sanity check commands to allow cross-com…
zerefwayne Mar 18, 2026
8b3b87f
Take out hipBLASLt since it fails on cross-compilation
zerefwayne Mar 19, 2026
d86f006
Add composable_kernel-1.1.0-rocm-compilers-19.0.0-ROCm-6.4.1.eb
zerefwayne Mar 20, 2026
d3d277a
Add hipTensor-1.5.0-rocm-compilers-19.0.0-ROCm-6.4.1.eb
zerefwayne Mar 14, 2026
05b7522
Add ROCmValidationSuite-1.1.0-rocm-compilers-19.0.0-ROCm-6.4.1.eb
zerefwayne Mar 22, 2026
c8ed368
Add hipBLASLt-0.12.1-GCC-14.2.0-ROCm-6.4.1.eb
zerefwayne Mar 14, 2026
198f836
Add RPP-1.9.10-rocm-compilers-19.0.0-ROCm-6.4.1.eb
zerefwayne Mar 22, 2026
ad380dd
Add hipFFT-1.0.18-rocm-compilers-19.0.0-ROCm-6.4.1-nompi.eb
zerefwayne Mar 17, 2026
580e191
Add hipSOLVER-2.4.0-rocm-compilers-19.0.0-ROCm-6.4.1.eb
zerefwayne Mar 21, 2026
23d4e97
Fix linting issue for hipBLASLt-0.12.1
zerefwayne Mar 23, 2026
e27a735
Add hipBLAS-2.4.0-rocm-compilers-19.0.0-ROCm-6.4.1.eb
zerefwayne Mar 17, 2026
480e4be
Add hipFORT-0.6.0-rocm-compilers-19.0.0-ROCm-6.4.1.eb
zerefwayne Mar 21, 2026
de03ab3
Remove CMAKE_IGNORE_PATH from easyconfigs
zerefwayne Mar 23, 2026
e24ba00
Update dependencies for hipFORT-0.6.0
zerefwayne Mar 23, 2026
d3b911f
Add rocWMMA-1.7.0-rocm-compilers-19.0.0-ROCm-6.4.1.eb
zerefwayne Mar 22, 2026
2236e4d
Add rocm-core-6.4.0-GCCcore-14.2.0-ROCm-6.4.1.eb
zerefwayne Mar 23, 2026
0744500
Fix hipSPARSELt-3.2.0 to use msgpack-cxx
zerefwayne Mar 24, 2026
460e916
Add RCCL-2.22.3-rocm-compilers-19.0.0-ROCm-6.4.1.eb
zerefwayne Mar 24, 2026
8b4fbd0
Fix failing unit tests
zerefwayne Mar 25, 2026
d4124af
Bump `half` version to the one we actually provide as easyconfig
casparvl Mar 25, 2026
fb1130b
Fix ROCgdb file name
zerefwayne Mar 26, 2026
36aeec4
Remove redundant ROCm-LLVM dependencies and GCCcore suffix
zerefwayne Apr 2, 2026
8a443c9
Fix suffix issues
zerefwayne Apr 2, 2026
bae89e2
Add -nompi suffix to hipFFT
zerefwayne Apr 2, 2026
ba8510a
Merge branch 'easybuilders:develop' into amd-working
zerefwayne Apr 2, 2026
dd08209
Remove two ROCm-LLVM deps that are obsolete now that we use `rocm-com…
casparvl Apr 2, 2026
23c3ec3
Fix binutils version
casparvl Apr 2, 2026
a848b31
Merge branch 'easybuilders:develop' into amd-working
zerefwayne Apr 7, 2026
73a968f
Add patch comments and minor refactors
zerefwayne Apr 7, 2026
5578474
Update patch checksums
zerefwayne Apr 7, 2026
33e4110
Merge branch 'easybuilders:develop' into amd-working
zerefwayne Apr 8, 2026
f42b32b
Merge branch 'easybuilders:develop' into amd-working
zerefwayne Apr 8, 2026
04fa96a
Remove binutils from easyconfigs
zerefwayne Apr 9, 2026
d2ca782
Add checksums for HIP and HIP patch
Apr 13, 2026
e582944
Make sure to use comma-seperation, as is expected here
Apr 13, 2026
ed2bab9
Use abs_path_compilers to fix RPATH-ing issues
Apr 13, 2026
024392e
Add binutils
Apr 13, 2026
ef5917e
Now really: Add flex and Bison as build deps
Apr 13, 2026
e3385e1
Strip EBROOTBINUTILS/lib and EBROOTBINUTILS/lib64 from the LIBRARY_PA…
Apr 13, 2026
ffb6f04
Remove ROCgdb from this PR, as it's proving problematic to resolve th…
Apr 13, 2026
4502641
Merge branch 'easybuilders:develop' into amd-working
zerefwayne Apr 14, 2026
c86c5f3
Address failing tests
zerefwayne Apr 14, 2026
42e2257
Add rocm-compilers to sanity_check whitelist
zerefwayne Apr 14, 2026
ef92c15
Add checksums for rocm-core-6.4.0-GCCcore-14.2.0-ROCm-6.4.1.eb
zerefwayne Apr 14, 2026
b90fdee
Fix checksum
Apr 14, 2026
4ffdc7d
Remove amdgcn_capabilities parameter from configopts
zerefwayne Apr 15, 2026
8b7db9b
Remove RVS and vestigial local_gcc_version
zerefwayne Apr 15, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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'
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'
Comment thread
zerefwayne marked this conversation as resolved.
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'),
Comment thread
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'
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
Comment thread
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)
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
Comment thread
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}")
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
From 8d2e14328cd99bbad2eaa498c207cf41f688fc30 Mon Sep 17 00:00:00 2001
Comment thread
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
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'),
Comment thread
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,
}),
Comment thread
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'
Loading
Loading