Use pkg-config to locate vulkan library
This commit is contained in:
parent
491a967455
commit
99c3027298
1 changed files with 3 additions and 2 deletions
5
Makefile
5
Makefile
|
@ -597,8 +597,8 @@ endif # LLAMA_CUDA
|
||||||
|
|
||||||
ifdef LLAMA_VULKAN
|
ifdef LLAMA_VULKAN
|
||||||
MK_CPPFLAGS += -DGGML_USE_VULKAN
|
MK_CPPFLAGS += -DGGML_USE_VULKAN
|
||||||
MK_LDFLAGS += -lvulkan
|
MK_LDFLAGS += $(shell pkg-config --libs vulkan)
|
||||||
OBJS += ggml-vulkan.o
|
OBJS += ggml-vulkan.o ggml-vulkan-shaders.o
|
||||||
|
|
||||||
ifdef LLAMA_VULKAN_CHECK_RESULTS
|
ifdef LLAMA_VULKAN_CHECK_RESULTS
|
||||||
MK_CPPFLAGS += -DGGML_VULKAN_CHECK_RESULTS
|
MK_CPPFLAGS += -DGGML_VULKAN_CHECK_RESULTS
|
||||||
|
@ -852,6 +852,7 @@ clean:
|
||||||
rm -vrf *.o tests/*.o *.so *.a *.dll common/build-info.cpp *.dot $(COV_TARGETS) $(BUILD_TARGETS) $(TEST_TARGETS)
|
rm -vrf *.o tests/*.o *.so *.a *.dll common/build-info.cpp *.dot $(COV_TARGETS) $(BUILD_TARGETS) $(TEST_TARGETS)
|
||||||
rm -vrf ggml-cuda/*.o
|
rm -vrf ggml-cuda/*.o
|
||||||
rm -vrf ggml-cuda/template-instances/*.o
|
rm -vrf ggml-cuda/template-instances/*.o
|
||||||
|
rm -f ggml-vulkan-shaders.hpp ggml-vulkan-shaders.cpp
|
||||||
find examples pocs -type f -name "*.o" -delete
|
find examples pocs -type f -name "*.o" -delete
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue