correct split id
This commit is contained in:
parent
60fe62e6eb
commit
02e2c91d01
2 changed files with 3 additions and 3 deletions
2
Makefile
2
Makefile
|
@ -777,7 +777,7 @@ simple: examples/simple/simple.cpp ggml.o llama.o $(C
|
|||
$(CXX) $(CXXFLAGS) -c $< -o $(call GET_OBJ_FILE, $<)
|
||||
$(CXX) $(CXXFLAGS) $(filter-out %.h $<,$^) $(call GET_OBJ_FILE, $<) -o $@ $(LDFLAGS)
|
||||
|
||||
simple: examples/duo/duo.cpp ggml.o llama.o $(COMMON_DEPS) $(OBJS)
|
||||
duo: examples/duo/duo.cpp ggml.o llama.o $(COMMON_DEPS) $(OBJS)
|
||||
$(CXX) $(CXXFLAGS) -c $< -o $(call GET_OBJ_FILE, $<)
|
||||
$(CXX) $(CXXFLAGS) $(filter-out %.h $<,$^) $(call GET_OBJ_FILE, $<) -o $@ $(LDFLAGS)
|
||||
|
||||
|
|
|
@ -59,7 +59,7 @@ static void split_done_cb(int split)
|
|||
if (split == 1 || split == 2)
|
||||
{
|
||||
std::lock_guard<std::mutex> guard(spec_ctx.mtx);
|
||||
spec_ctx.active_id = 2 - split;
|
||||
spec_ctx.active_id = split - 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue