From f2d428cb29dfb5cd2286707830acdd030b15db6a Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Mon, 11 Nov 2024 17:50:07 +0100 Subject: [PATCH] examples : rename vision to simple-vision This commit renames the vision example to simple-vision. This is to avoid confusion with vision.cpp in common. --- Makefile | 4 ++-- examples/CMakeLists.txt | 2 +- examples/{vision => simple-vision}/CMakeLists.txt | 4 ++-- .../{vision/vision.cpp => simple-vision/simple-vision.cpp} | 0 4 files changed, 5 insertions(+), 5 deletions(-) rename examples/{vision => simple-vision}/CMakeLists.txt (68%) rename examples/{vision/vision.cpp => simple-vision/simple-vision.cpp} (100%) diff --git a/Makefile b/Makefile index 8478302fb31ace..48981f638f6950 100644 --- a/Makefile +++ b/Makefile @@ -37,7 +37,7 @@ BUILD_TARGETS = \ llama-speculative \ llama-tokenize \ llama-vdot \ - llama-vision \ + llama-simple-vision \ llama-cvector-generator \ llama-gen-docs \ tests/test-c.o @@ -1470,7 +1470,7 @@ llama-gbnf-validator: examples/gbnf-validator/gbnf-validator.cpp \ $(CXX) $(CXXFLAGS) -c $< -o $(call GET_OBJ_FILE, $<) $(CXX) $(CXXFLAGS) $(filter-out %.h $<,$^) $(call GET_OBJ_FILE, $<) -o $@ $(LDFLAGS) -llama-vision: examples/vision/vision.cpp \ +llama-simple-vision: examples/simple-vision/simple-vision.cpp \ $(OBJ_ALL) $(CXX) $(CXXFLAGS) -c $< -o $(call GET_OBJ_FILE, $<) $(CXX) $(CXXFLAGS) $(filter-out %.h $<,$^) $(call GET_OBJ_FILE, $<) -o $@ $(LDFLAGS) diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 41f3d398f82358..a0bf7bc6d678bf 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -49,7 +49,7 @@ else() add_subdirectory(save-load-state) add_subdirectory(simple) add_subdirectory(simple-chat) + add_subdirectory(simple-vision) add_subdirectory(speculative) add_subdirectory(tokenize) - add_subdirectory(vision) endif() diff --git a/examples/vision/CMakeLists.txt b/examples/simple-vision/CMakeLists.txt similarity index 68% rename from examples/vision/CMakeLists.txt rename to examples/simple-vision/CMakeLists.txt index 572dae88f170e8..92796a78f911e1 100644 --- a/examples/vision/CMakeLists.txt +++ b/examples/simple-vision/CMakeLists.txt @@ -1,5 +1,5 @@ -set(TARGET llama-vision) -add_executable(${TARGET} vision.cpp) +set(TARGET llama-simple-vision) +add_executable(${TARGET} simple-vision.cpp) install(TARGETS ${TARGET} RUNTIME) target_link_libraries(${TARGET} PRIVATE common llama ${CMAKE_THREAD_LIBS_INIT}) target_compile_features(${TARGET} PRIVATE cxx_std_11) diff --git a/examples/vision/vision.cpp b/examples/simple-vision/simple-vision.cpp similarity index 100% rename from examples/vision/vision.cpp rename to examples/simple-vision/simple-vision.cpp