-
Notifications
You must be signed in to change notification settings - Fork 791
Expand file tree
/
Copy pathHIP-7.2.0-rocm-compilers-22.0.0-ROCm-7.2.0.eb
More file actions
122 lines (110 loc) · 4.17 KB
/
Copy pathHIP-7.2.0-rocm-compilers-22.0.0-ROCm-7.2.0.eb
File metadata and controls
122 lines (110 loc) · 4.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
easyblock = 'Bundle'
name = 'HIP'
_rocm_version = '7.2.0'
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': '22.0.0-ROCm-7.2.0'}
builddependencies = [
('binutils', '2.44'),
('CMake', '4.0.3'),
('CppHeaderParser', '2.7.4'),
]
dependencies = [
('OpenGL', '2025.09'),
('rocm-cmake', '0.14.0'),
('numactl', '2.0.19'),
('Perl', '5.40.2'),
('rocprofiler-register', '0.6.0', f'-ROCm-{_rocm_version}'),
('Python', '3.13.5'),
('glog', '0.7.1'),
]
default_easyblock = 'CMakeMake'
components = [
('rocminfo', '1.0.0', {
'sources': [
{
'source_urls': ['https://github.com/ROCm/rocminfo/archive/'],
'download_filename': f'rocm-{_rocm_version}.tar.gz',
'filename': 'rocminfo-%(version)s.tar.gz',
},
],
'checksums': ['99fb0bfb8691edd25d06cb20d5a0c325ef3d485c4cf833a75f50d7141eaf0010'],
'srcdir': 'rocminfo-rocm-%s' % _rocm_version,
'configopts': ' '.join([
"-DCMAKE_EXE_LINKER_FLAGS='-Wl,--disable-new-dtags'",
"-DROCRTST_BLD_TYPE=Release",
"-DROCM_DIR=%(installdir)s",
]),
}),
('HIPCC', '%s' % _rocm_version, {
'sources': [
{
'source_urls': ['https://github.com/ROCm/llvm-project/archive/'],
'download_filename': 'rocm-%s.tar.gz' % _rocm_version,
'filename': 'llvm-project-rocm-%(version)s.tar.gz',
'alt_location': 'ROCm-LLVM',
}
],
'checksums': [
'e86138d2a63fbcbdf64668d55573b26ae944d0f0ae5a3f5bb59bf7bdb3124d3f', # llvm-project-rocm-7.2.0.tar.gz
],
'srcdir': 'llvm-project-rocm-%s/amd/hipcc' % _rocm_version,
}),
('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': [
'fc79e674a5c6da0192437e11d3d41cc593fcc7344194f2d02fa47b965ddd1a5f', # clr-rocm-7.2.0.tar.gz
'4a22fcd0baf8df47d2e234f887f5bc03d522ce78928f82d1b0669a55897c4205', # HIP-rocm-7.2.0.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', 'hipconfig']] +
['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'