Commit a513107
committed
Fix compilation error using SDK 6.3
Recent commit added support for gfx1152 but used an uninitialized
variable `gpus_archs`.
Follow the same code as for SDK 6.2 and use gpus.append() instead.
---
This fixes the following compilation error:
[ 3%] Precompiling kernels via compile.py
Compile kernel using hip sdk: /opt/rocm
HIP version: 6.3.42133-1b9c17779
AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.1 24491 1e0fda770a2079fbd71e4b70974d74f62fd3af10)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/rocm-6.3.1/lib/llvm/bin
Configuration file: /opt/rocm-6.3.1/lib/llvm/bin/clang++.cfg
Traceback (most recent call last):
File "/home/sergey/Developer/build_linux/deps_x64/build/hiprt/src/external_hiprt/scripts/bitcodes/compile.py", line 209, in <module>
compileAmd()
File "/home/sergey/Developer/build_linux/deps_x64/build/hiprt/src/external_hiprt/scripts/bitcodes/compile.py", line 103, in compileAmd
gpus_archs.append('gfx1152')
^^^^^^^^^^
NameError: name 'gpus_archs' is not defined1 parent 9452e5c commit a513107
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
| 110 | + | |
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| |||
0 commit comments