Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to compile it with Vulkan #2399

Open
feengg opened this issue Sep 2, 2024 · 0 comments
Open

Failed to compile it with Vulkan #2399

feengg opened this issue Sep 2, 2024 · 0 comments

Comments

@feengg
Copy link

feengg commented Sep 2, 2024

I tried to compile it with this commands in X64 Native Tools Command Prompt but failed:

cmake -G Ninja -DGGML_VULKAN=ON -DGGML_STATIC=ON -DBUILD_SHARED_LIBS=OFF -DGGML_OPENMP=OFF -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=Release ..
cmake --build .

Here are the error logs:

FAILED: ggml/src/CMakeFiles/ggml.dir/ggml-vulkan.cpp.obj
C:\opt\rocm\5.7\bin\clang++.exe -DGGML_SCHED_MAX_COPIES=4 -DGGML_USE_VULKAN -D_CRT_SECURE_NO_WARNINGS -D_XOPEN_SOURCE=600 -ID:/code/try/whisper.cpp/lastest/whisper.cpp/ggml/src/../include -ID:/code/try/whisper.cpp/lastest/whisper.cpp/ggml/src/. -ID:/code/try/whisper.cpp/lastest/whisper.cpp/build_vulkan_latest/ggml/src -isystem C:/opt/VulkanSDK/1.3.283.0/Include -O3 -DNDEBUG -D_DLL -D_MT -Xclang --dependent-lib=msvcrt -std=gnu++14 -Wmissing-declarations -Wmissing-noreturn -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function -Wunreachable-code-break -Wunreachable-code-return -Wmissing-prototypes -Wextra-semi -march=native -MD -MT ggml/src/CMakeFiles/ggml.dir/ggml-vulkan.cpp.obj -MF ggml\src\CMakeFiles\ggml.dir\ggml-vulkan.cpp.obj.d -o ggml/src/CMakeFiles/ggml.dir/ggml-vulkan.cpp.obj -c D:/code/try/whisper.cpp/lastest/whisper.cpp/ggml/src/ggml-vulkan.cpp
D:/code/try/whisper.cpp/lastest/whisper.cpp/ggml/src/ggml-vulkan.cpp:1707:74: error: use of undeclared identifier 'sin_f32_len'
    ggml_vk_create_pipeline(device, device->pipeline_sin_f32, "sin_f32", sin_f32_len, sin_f32_data, "main", 2, sizeof(vk_op_unary_push_constants), {512, 1, 1}, {}, 1);
                                                                         ^
D:/code/try/whisper.cpp/lastest/whisper.cpp/ggml/src/ggml-vulkan.cpp:1707:87: error: use of undeclared identifier 'sin_f32_data'
    ggml_vk_create_pipeline(device, device->pipeline_sin_f32, "sin_f32", sin_f32_len, sin_f32_data, "main", 2, sizeof(vk_op_unary_push_constants), {512, 1, 1}, {}, 1);
                                                                                      ^
D:/code/try/whisper.cpp/lastest/whisper.cpp/ggml/src/ggml-vulkan.cpp:1708:74: error: use of undeclared identifier 'cos_f32_len'
    ggml_vk_create_pipeline(device, device->pipeline_cos_f32, "cos_f32", cos_f32_len, cos_f32_data, "main", 2, sizeof(vk_op_unary_push_constants), {512, 1, 1}, {}, 1);
                                                                         ^
D:/code/try/whisper.cpp/lastest/whisper.cpp/ggml/src/ggml-vulkan.cpp:1708:87: error: use of undeclared identifier 'cos_f32_data'
    ggml_vk_create_pipeline(device, device->pipeline_cos_f32, "cos_f32", cos_f32_len, cos_f32_data, "main", 2, sizeof(vk_op_unary_push_constants), {512, 1, 1}, {}, 1);
                                                                                      ^
D:/code/try/whisper.cpp/lastest/whisper.cpp/ggml/src/ggml-vulkan.cpp:6768:61: warning: format specifies type 'long' but the argument has type 'size_t' (aka 'unsigned long long') [-Wformat]
        snprintf(name, sizeof(name), "%s%ld", GGML_VK_NAME, i);
                                        ~~~                 ^
                                        %zu
1 warning and 4 errors generated.
@feengg feengg changed the title Failed to compile Vulkan version Failed to compile it with Vulkan Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant