diff --git a/ggml/src/CMakeLists.txt b/ggml/src/CMakeLists.txt index 2e104890643c1..dff31457f1c2a 100644 --- a/ggml/src/CMakeLists.txt +++ b/ggml/src/CMakeLists.txt @@ -672,9 +672,8 @@ if (GGML_KOMPUTE) set(options) set(oneValueArgs) set(multiValueArgs SOURCES) - set(GGML_HEADER_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../include/ggml.h") - message(STATUS "GGML_HEADER_PATH: ${GGML_HEADER_PATH}") - get_define_value(${GGML_HEADER_PATH} GGML_ROPE_TYPE_NEOX GGML_ROPE_TYPE_NEOX_VALUE) + set(GGML_HEADER_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../include/ggml.h") + get_define_value(${GGML_HEADER_PATH} GGML_ROPE_TYPE_NEOX GGML_ROPE_TYPE_NEOX_VALUE) cmake_parse_arguments(compile_shader "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN}) foreach(source ${compile_shader_SOURCES}) get_filename_component(filename ${source} NAME) @@ -686,10 +685,10 @@ if (GGML_KOMPUTE) ${CMAKE_CURRENT_SOURCE_DIR}/kompute-shaders/op_getrows.comp ${CMAKE_CURRENT_SOURCE_DIR}/kompute-shaders/op_mul_mv_q_n_pre.comp ${CMAKE_CURRENT_SOURCE_DIR}/kompute-shaders/op_mul_mv_q_n.comp - ${GGML_HEADER_PATH} + ${GGML_HEADER_PATH} COMMAND ${glslc_executable} --target-env=vulkan1.2 - -o ${spv_file} ${CMAKE_CURRENT_SOURCE_DIR}/${source} - -DGGML_ROPE_TYPE_NEOX=${GGML_ROPE_TYPE_NEOX_VALUE} + -o ${spv_file} ${CMAKE_CURRENT_SOURCE_DIR}/${source} + -DGGML_ROPE_TYPE_NEOX=${GGML_ROPE_TYPE_NEOX_VALUE} COMMENT "Compiling ${source} to ${spv_file}" )