whisper.cpp
whisper.cpp copied to clipboard
Failed to compile it with Vulkan
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.