-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Closed
Labels
Description
Hello,
I am trying to build llama.cpp for hipBLAS on gfx1100 on Windows 11, but I get this error:
[...]
D:/Documents/llama.cpp/ggml-cuda.cu:2620:81: error: use of undeclared identifier 'hipHostRegisterReadOnly'
cudaError_t err = cudaHostRegister(buffer, size, cudaHostRegisterPortable | cudaHostRegisterReadOnly);
^
D:/Documents/llama.cpp/./ggml-cuda/common.cuh:78:34: note: expanded from macro 'cudaHostRegisterReadOnly'
#define cudaHostRegisterReadOnly hipHostRegisterReadOnly
^
13 warnings and 1 error generated when compiling for gfx1100.
[...]
Commit 2bf8d0f seems to have brought this issue, as I am able to successfuly build it on previous commits, but it fails on this one,
Here are the commands that I use to build:
SET CC=clang.exe
SET CXX=clang++.exe
cmake .. -G "Ninja" -DLLAMA_HIPBLAS=ON -DCMAKE_BUILD_TYPE=Release -DAMDGPU_TARGETS=gfx1100
cmake --build .