Skip to content

Commit

Permalink
fix: make sure the GNUMake jobserver is passed to cmake for the llama…
Browse files Browse the repository at this point in the history
….cpp build (#2697)

Signed-off-by: Chris Jowett <[email protected]>
  • Loading branch information
cryptk committed Jul 2, 2024
1 parent b941732 commit c047c19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/cpp/llama/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ clean: purge
grpc-server: llama.cpp llama.cpp/examples/grpc-server
@echo "Building grpc-server with $(BUILD_TYPE) build type and $(CMAKE_ARGS)"
ifneq (,$(findstring sycl,$(BUILD_TYPE)))
bash -c "source $(ONEAPI_VARS); \
+bash -c "source $(ONEAPI_VARS); \
cd llama.cpp && mkdir -p build && cd build && cmake .. $(CMAKE_ARGS) && cmake --build . --config Release $(TARGET)"
else
cd llama.cpp && mkdir -p build && cd build && cmake .. $(CMAKE_ARGS) && cmake --build . --config Release $(TARGET)
+cd llama.cpp && mkdir -p build && cd build && cmake .. $(CMAKE_ARGS) && cmake --build . --config Release $(TARGET)
endif
cp llama.cpp/build/bin/grpc-server .

0 comments on commit c047c19

Please sign in to comment.