Skip to content

Compilation error using HIP SDK on Windows #7242

@lastrosade

Description

@lastrosade

Building with:

cmake -B "%LLAMA_DIR%\build.hip" -S "%LLAMA_DIR%" ^
    -DCMAKE_BUILD_TYPE=Release ^
    -DCMAKE_C_COMPILER=clang ^
    -DCMAKE_CXX_COMPILER=clang++ ^
    -DLLAMA_NATIVE=ON ^
    -DLLAMA_HIPBLAS=ON ^
    -DAMDGPU_TARGETS=gfx1100 ^
    -G Ninja

Yields:

B:/Users/pedr0/Desktop/llama.cpp/build/llama.cpp/ggml-cuda/common.cuh:374:31: error: no matching function for call to '__shfl_xor'
        const half2 a_other = __shfl_xor_sync(0xffffffff, a, mask, 32);
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
B:/Users/pedr0/Desktop/llama.cpp/build/llama.cpp/ggml-cuda/common.cuh:43:53: note: expanded from macro '__shfl_xor_sync'
#define __shfl_xor_sync(mask, var, laneMask, width) __shfl_xor(var, laneMask, width)
                                                    ^~~~~~~~~~

Full log: llama_win.txt

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