File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -147,20 +147,24 @@ make BUILD_TYPE=cublas build
147147
148148More 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
You can’t perform that action at this time.
0 commit comments