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) -c $< -o $(call GET_OBJ_FILE, $<)
|
||||||
$(CXX) $(CXXFLAGS) $(filter-out %.h $<,$^) $(call GET_OBJ_FILE, $<) -o $@ $(LDFLAGS)
|
$(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) -c $< -o $(call GET_OBJ_FILE, $<)
|
||||||
$(CXX) $(CXXFLAGS) $(filter-out %.h $<,$^) $(call GET_OBJ_FILE, $<) -o $@ $(LDFLAGS)
|
$(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)
|
if (split == 1 || split == 2)
|
||||||
{
|
{
|
||||||
std::lock_guard<std::mutex> guard(spec_ctx.mtx);
|
std::lock_guard<std::mutex> guard(spec_ctx.mtx);
|
||||||
spec_ctx.active_id = 2 - split;
|
spec_ctx.active_id = split - 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -387,4 +387,4 @@ int main(int argc, char ** argv) {
|
||||||
llama_backend_free();
|
llama_backend_free();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue