Skip to content

Error while building for hipBLAS on Windows 11 #6514

@phungthomas

Description

@phungthomas

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 .

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions