Skip to content

Commit

Permalink
hiplas arch
Browse files Browse the repository at this point in the history
  • Loading branch information
sfxworks committed Dec 12, 2023
1 parent 9aa2a7c commit d0ffa04
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions docs/content/build/_index.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,20 +147,24 @@ make BUILD_TYPE=cublas build

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

#### Hipblas (AMD GPU)

AMD GPU Acceleration
#### Hipblas (AMD GPU with ROCm on Arch Linux)

Requirement: ROCm
Packages:
```
pacman -S base-devel git rocm-hip-sdk rocm-opencl-sdk opencv clblast grpc
```

Library links:
```
make BUILD_TYPE=hipblas build
export CGO_CFLAGS="-I/usr/include/opencv4"
export CGO_CXXFLAGS="-I/usr/include/opencv4"
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"
```

Specific GPU targets can be specified with `GPU_TARGETS`:

Build:
```
make BUILD_TYPE=hipblas GPU_TARGETS=gfx90a build
make BUILD_TYPE=hipblas GPU_TARGETS=gfx1030
```

#### ClBLAS
Expand Down

0 comments on commit d0ffa04

Please sign in to comment.