Files
2024-09-21 16:06:16 -07:00

52 lines
1.1 KiB
Markdown

# gfx803
## blender
[x] ROCm `5.7.3` (runtime) + Blender `3.6.15` with `-O3` kernel
Only with kernel compiled with:
```bash
# gfx803
# > https://github.com/xuhuisheng/rocm-gfx803/issues/28
/opt/rocm/bin/hipcc \
-Wno-parentheses-equality \
-Wno-unused-value \
-O3 \
--amdgpu-target=gfx803 \
-I /home/rocm/blender/intern/cycles \
--genco /home/rocm/blender/intern/cycles/kernel/device/hip/kernel.cpp \
-o kernel_gfx803.fatbin
# Same as:
/usr/bin/hipcc \
--offload-arch=gfx803 \
--genco /home/rocm/blender/intern/cycles/kernel/device/hip/kernel.cpp \
-D CCL_NAMESPACE_BEGIN= \
-D CCL_NAMESPACE_END= \
-D HIPCC \
-I /home/rocm/blender/intern/cycles/kernel/.. \
-I /home/rocm/blender/intern/cycles/kernel/device/hip \
-Wno-parentheses-equality \
-Wno-unused-value \
-O3 \
-o kernel_gfx803-O3-original.fatbin
```
`-ffast-math` may cause error
ROCm `5.4.1` (clang 15) compiler is needed.
ROCm `5.5.3` (clang 16) compiler not working.
## Monitor
```bash
watch -n 1 /opt/rocm/bin/rocm-smi
```
## amdgpu
<https://launchpad.net/~kisak/+archive/ubuntu/kisak-mesa>