llama.cpp/ggml/src/vulkan-shaders
Jaeden Amero db20f50cf4
cmake : Link vulkan-shaders-gen with pthreads (#8835)
When using CMake to build with Vulkan support, compiling
vulkan-shaders-gen fails due to missing a CMakeLists.txt specification
to link vulkan-shaders-gen with the threading library, resulting in the
following error.

    [5/172] Linking CXX executable bin/vulkan-shaders-gen
    FAILED: bin/vulkan-shaders-gen
    : && /usr/bin/c++ ggml/src/vulkan-shaders/CMakeFiles/vulkan-shaders-gen.dir/vulkan-shaders-gen.cpp.o -o bin/vulkan-shaders-gen   && :
    ld: error: undefined symbol: pthread_create
    >>> referenced by vulkan-shaders-gen.cpp
    >>>               ggml/src/vulkan-shaders/CMakeFiles/vulkan-shaders-gen.dir/vulkan-shaders-gen.cpp.o:(std::__1::__libcpp_thread_create[abi:se180100](pthread**,
    >>>               void* (*)(void*), void*))
    c++: error: linker command failed with exit code 1 (use -v to see invocation)
    [6/172] Generating build details from Git
    -- Found Git: /usr/local/bin/git (found version "2.45.2")
    ninja: build stopped: subcommand failed.

Add the CMakeLists.txt specification to link vulkan-shaders-gen with the
threading library and fix the above error.

Fixes #8834
2024-08-06 15:21:47 +02:00
..
add.comp vulkan : implement Stable Diffusion operators (ggml/904) 2024-08-05 08:50:57 +03:00
argsort.comp llama : reorganize source code + improve CMake (#8006) 2024-06-26 18:33:02 +03:00
clamp.comp vulkan : implement Stable Diffusion operators (ggml/904) 2024-08-05 08:50:57 +03:00
CMakeLists.txt cmake : Link vulkan-shaders-gen with pthreads (#8835) 2024-08-06 15:21:47 +02:00
concat.comp vulkan : implement Stable Diffusion operators (ggml/904) 2024-08-05 08:50:57 +03:00
copy.comp vulkan : implement Stable Diffusion operators (ggml/904) 2024-08-05 08:50:57 +03:00
dequant_f32.comp llama : reorganize source code + improve CMake (#8006) 2024-06-26 18:33:02 +03:00
dequant_funcs.comp Vulkan IQ4_NL Support (#8613) 2024-07-23 10:56:49 +02:00
dequant_head.comp llama : reorganize source code + improve CMake (#8006) 2024-06-26 18:33:02 +03:00
dequant_iq4_nl.comp Vulkan IQ4_NL Support (#8613) 2024-07-23 10:56:49 +02:00
dequant_q2_k.comp llama : reorganize source code + improve CMake (#8006) 2024-06-26 18:33:02 +03:00
dequant_q3_k.comp llama : reorganize source code + improve CMake (#8006) 2024-06-26 18:33:02 +03:00
dequant_q4_0.comp Vulkan IQ4_NL Support (#8613) 2024-07-23 10:56:49 +02:00
dequant_q4_1.comp llama : reorganize source code + improve CMake (#8006) 2024-06-26 18:33:02 +03:00
dequant_q4_k.comp llama : reorganize source code + improve CMake (#8006) 2024-06-26 18:33:02 +03:00
dequant_q5_0.comp llama : reorganize source code + improve CMake (#8006) 2024-06-26 18:33:02 +03:00
dequant_q5_1.comp llama : reorganize source code + improve CMake (#8006) 2024-06-26 18:33:02 +03:00
dequant_q5_k.comp llama : reorganize source code + improve CMake (#8006) 2024-06-26 18:33:02 +03:00
dequant_q6_k.comp llama : reorganize source code + improve CMake (#8006) 2024-06-26 18:33:02 +03:00
dequant_q8_0.comp llama : reorganize source code + improve CMake (#8006) 2024-06-26 18:33:02 +03:00
diag_mask_inf.comp llama : reorganize source code + improve CMake (#8006) 2024-06-26 18:33:02 +03:00
div.comp vulkan : implement Stable Diffusion operators (ggml/904) 2024-08-05 08:50:57 +03:00
gelu.comp vulkan : implement Stable Diffusion operators (ggml/904) 2024-08-05 08:50:57 +03:00
gelu_quick.comp vulkan : implement Stable Diffusion operators (ggml/904) 2024-08-05 08:50:57 +03:00
generic_binary_head.comp vulkan : implement Stable Diffusion operators (ggml/904) 2024-08-05 08:50:57 +03:00
generic_head.comp llama : reorganize source code + improve CMake (#8006) 2024-06-26 18:33:02 +03:00
generic_unary_head.comp vulkan : implement Stable Diffusion operators (ggml/904) 2024-08-05 08:50:57 +03:00
get_rows.comp llama : reorganize source code + improve CMake (#8006) 2024-06-26 18:33:02 +03:00
get_rows_quant.comp llama : reorganize source code + improve CMake (#8006) 2024-06-26 18:33:02 +03:00
group_norm.comp vulkan : implement Stable Diffusion operators (ggml/904) 2024-08-05 08:50:57 +03:00
im2col.comp vulkan : implement Stable Diffusion operators (ggml/904) 2024-08-05 08:50:57 +03:00
leaky_relu.comp vulkan : implement Stable Diffusion operators (ggml/904) 2024-08-05 08:50:57 +03:00
mul.comp vulkan : implement Stable Diffusion operators (ggml/904) 2024-08-05 08:50:57 +03:00
mul_mat_split_k_reduce.comp llama : reorganize source code + improve CMake (#8006) 2024-06-26 18:33:02 +03:00
mul_mat_vec.comp vulkan : fix Qantized Mat-Vec Mul on AMD GPUs for ncols < 64 (#8855) 2024-08-05 08:52:55 +03:00
mul_mat_vec_base.comp llama : reorganize source code + improve CMake (#8006) 2024-06-26 18:33:02 +03:00
mul_mat_vec_nc.comp llama : reorganize source code + improve CMake (#8006) 2024-06-26 18:33:02 +03:00
mul_mat_vec_p021.comp llama : reorganize source code + improve CMake (#8006) 2024-06-26 18:33:02 +03:00
mul_mat_vec_q2_k.comp llama : reorganize source code + improve CMake (#8006) 2024-06-26 18:33:02 +03:00
mul_mat_vec_q3_k.comp llama : reorganize source code + improve CMake (#8006) 2024-06-26 18:33:02 +03:00
mul_mat_vec_q4_k.comp llama : reorganize source code + improve CMake (#8006) 2024-06-26 18:33:02 +03:00
mul_mat_vec_q5_k.comp llama : reorganize source code + improve CMake (#8006) 2024-06-26 18:33:02 +03:00
mul_mat_vec_q6_k.comp llama : reorganize source code + improve CMake (#8006) 2024-06-26 18:33:02 +03:00
mul_mm.comp Vulkan IQ4_NL Support (#8613) 2024-07-23 10:56:49 +02:00
norm.comp vulkan : implement Stable Diffusion operators (ggml/904) 2024-08-05 08:50:57 +03:00
pad.comp vulkan : implement Stable Diffusion operators (ggml/904) 2024-08-05 08:50:57 +03:00
relu.comp vulkan : implement Stable Diffusion operators (ggml/904) 2024-08-05 08:50:57 +03:00
rms_norm.comp vulkan : implement Stable Diffusion operators (ggml/904) 2024-08-05 08:50:57 +03:00
rope_head.comp llama : reorganize source code + improve CMake (#8006) 2024-06-26 18:33:02 +03:00
rope_neox.comp llama : reorganize source code + improve CMake (#8006) 2024-06-26 18:33:02 +03:00
rope_norm.comp llama : reorganize source code + improve CMake (#8006) 2024-06-26 18:33:02 +03:00
scale.comp vulkan : implement Stable Diffusion operators (ggml/904) 2024-08-05 08:50:57 +03:00
silu.comp vulkan : implement Stable Diffusion operators (ggml/904) 2024-08-05 08:50:57 +03:00
soft_max.comp vulkan : implement Stable Diffusion operators (ggml/904) 2024-08-05 08:50:57 +03:00
square.comp vulkan : implement Stable Diffusion operators (ggml/904) 2024-08-05 08:50:57 +03:00
sum_rows.comp vulkan : implement Stable Diffusion operators (ggml/904) 2024-08-05 08:50:57 +03:00
tanh.comp vulkan : implement Stable Diffusion operators (ggml/904) 2024-08-05 08:50:57 +03:00
timestep_embedding.comp vulkan : implement Stable Diffusion operators (ggml/904) 2024-08-05 08:50:57 +03:00
types.comp vulkan : implement Stable Diffusion operators (ggml/904) 2024-08-05 08:50:57 +03:00
upscale.comp vulkan : implement Stable Diffusion operators (ggml/904) 2024-08-05 08:50:57 +03:00
vulkan-shaders-gen.cpp [Vulkan] Fix compilation of vulkan-shaders-gen on w64devkit after e31a4f6 (#8880) 2024-08-06 13:32:03 +02:00