char-fork/llama.cpp

git clone https://git.t4t.associates/char-fork/llama.cpp

Jeff Bolzvulkan: Use native e2m1 and e4m3 conversions for mxfp4/nvfp4 (#25338)e920c523e

char/aliceai-t5-moe
1.7 KiB43 linesraw
1cmake_minimum_required(VERSION 3.19)
2project("vulkan-shaders-gen" C CXX)
3
4find_package (Threads REQUIRED)
5
6if (GGML_VULKAN_COOPMAT_GLSLC_SUPPORT)
7    add_compile_definitions(GGML_VULKAN_COOPMAT_GLSLC_SUPPORT)
8    message(STATUS "Enabling coopmat glslc support")
9endif()
10if (GGML_VULKAN_COOPMAT2_GLSLC_SUPPORT)
11    add_compile_definitions(GGML_VULKAN_COOPMAT2_GLSLC_SUPPORT)
12    message(STATUS "Enabling coopmat2 glslc support")
13endif()
14if (GGML_VULKAN_COOPMAT2_DECODE_VECTOR_GLSLC_SUPPORT)
15    add_compile_definitions(GGML_VULKAN_COOPMAT2_DECODE_VECTOR_GLSLC_SUPPORT)
16    message(STATUS "Enabling coopmat2 decode_vector glslc support")
17endif()
18if (GGML_VULKAN_INTEGER_DOT_GLSLC_SUPPORT)
19    add_compile_definitions(GGML_VULKAN_INTEGER_DOT_GLSLC_SUPPORT)
20    message(STATUS "Enabling dot glslc support")
21endif()
22if (GGML_VULKAN_BFLOAT16_GLSLC_SUPPORT)
23    add_compile_definitions(GGML_VULKAN_BFLOAT16_GLSLC_SUPPORT)
24    message(STATUS "Enabling bfloat16 glslc support")
25endif()
26if (GGML_VULKAN_FLOAT_E2M1_GLSLC_SUPPORT)
27    add_compile_definitions(GGML_VULKAN_FLOAT_E2M1_GLSLC_SUPPORT)
28    message(STATUS "Enabling E2M1 glslc support")
29endif()
30if (GGML_VULKAN_FLOAT_E4M3_GLSLC_SUPPORT)
31    add_compile_definitions(GGML_VULKAN_FLOAT_E4M3_GLSLC_SUPPORT)
32    message(STATUS "Enabling E4M3 glslc support")
33endif()
34if (GGML_VULKAN_SHADER_DEBUG_INFO)
35    add_compile_definitions(GGML_VULKAN_SHADER_DEBUG_INFO)
36    message(STATUS "Enabling shader debug info")
37endif()
38
39set(TARGET vulkan-shaders-gen)
40add_executable(${TARGET} vulkan-shaders-gen.cpp)
41install(TARGETS ${TARGET} RUNTIME)
42target_compile_features(${TARGET} PRIVATE cxx_std_17)
43target_link_libraries(vulkan-shaders-gen PUBLIC Threads::Threads)