Skip to content

Commit 865e523

Browse files
authored
Documentation for Hipblas (#1425)
hiplas arch
1 parent 9aa2a7c commit 865e523

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

docs/content/build/_index.en.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -147,20 +147,24 @@ make BUILD_TYPE=cublas build
147147

148148
More informations available in the upstream PR: https://github.com/ggerganov/llama.cpp/pull/1412
149149

150-
#### Hipblas (AMD GPU)
151150

152-
AMD GPU Acceleration
151+
#### Hipblas (AMD GPU with ROCm on Arch Linux)
153152

154-
Requirement: ROCm
153+
Packages:
154+
```
155+
pacman -S base-devel git rocm-hip-sdk rocm-opencl-sdk opencv clblast grpc
156+
```
155157

158+
Library links:
156159
```
157-
make BUILD_TYPE=hipblas build
160+
export CGO_CFLAGS="-I/usr/include/opencv4"
161+
export CGO_CXXFLAGS="-I/usr/include/opencv4"
162+
export CGO_LDFLAGS="-L/opt/rocm/hip/lib -lamdhip64 -L/opt/rocm/lib -lOpenCL -L/usr/lib -lclblast -lrocblas -lhipblas -lrocrand -lomp -O3 --rtlib=compiler-rt -unwindlib=libgcc -lhipblas -lrocblas --hip-link"
158163
```
159164

160-
Specific GPU targets can be specified with `GPU_TARGETS`:
161-
165+
Build:
162166
```
163-
make BUILD_TYPE=hipblas GPU_TARGETS=gfx90a build
167+
make BUILD_TYPE=hipblas GPU_TARGETS=gfx1030
164168
```
165169

166170
#### ClBLAS

0 commit comments

Comments
 (0)