Skip to content

Commit 587308a

Browse files
committed
fixed some build errors on linux, changed icon resolution, added more error printing
1 parent fea84c3 commit 587308a

7 files changed

+17
-16
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ models/*
3434
/vdot
3535
/Pipfile
3636

37-
build-info.h
3837
arm_neon.h
3938
compile_commands.json
4039

Makefile

+3-8
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ gpttype_adapter_clblast.o: gpttype_adapter.cpp
266266
$(CXX) $(CXXFLAGS) $(CLBLAST_FLAGS) -c $< -o $@
267267

268268
clean:
269-
rm -vf *.o main quantize_llama quantize_gpt2 quantize_gptj quantize_neox quantize-stats perplexity embedding benchmark-matmult save-load-state build-info.h main.exe quantize_llama.exe quantize_gptj.exe quantize_gpt2.exe quantize_neox.exe koboldcpp.dll koboldcpp_openblas.dll koboldcpp_noavx2.dll koboldcpp_openblas_noavx2.dll koboldcpp_clblast.dll koboldcpp.so koboldcpp_openblas.so koboldcpp_noavx2.so koboldcpp_openblas_noavx2.so koboldcpp_clblast.so gptj.exe gpt2.exe
269+
rm -vf *.o main quantize_llama quantize_gpt2 quantize_gptj quantize_neox quantize-stats perplexity embedding benchmark-matmult save-load-state main.exe quantize_llama.exe quantize_gptj.exe quantize_gpt2.exe quantize_neox.exe koboldcpp.dll koboldcpp_openblas.dll koboldcpp_noavx2.dll koboldcpp_openblas_noavx2.dll koboldcpp_clblast.dll koboldcpp.so koboldcpp_openblas.so koboldcpp_noavx2.so koboldcpp_openblas_noavx2.so koboldcpp_clblast.so gptj.exe gpt2.exe
270270

271271
#
272272
# Examples
@@ -319,13 +319,8 @@ libllama.so: llama.o ggml.o $(OBJS)
319319
save-load-state: examples/save-load-state/save-load-state.cpp build-info.h ggml.o llama.o common.o $(OBJS)
320320
$(CXX) $(CXXFLAGS) $(filter-out %.h,$^) -o $@ $(LDFLAGS)
321321

322-
build-info.h: $(wildcard .git/index) scripts/build-info.sh
323-
@sh scripts/build-info.sh > $@.tmp
324-
@if ! cmp -s $@.tmp $@; then \
325-
mv $@.tmp $@; \
326-
else \
327-
rm $@.tmp; \
328-
fi
322+
build-info.h:
323+
$(DONOTHING)
329324

330325
#
331326
# Tests

build-info.h

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#ifndef BUILD_INFO_H
2+
#define BUILD_INFO_H
3+
4+
#define BUILD_NUMBER 999
5+
#define BUILD_COMMIT "KOBOLDCPP"
6+
7+
#endif // BUILD_INFO_H

ggml-opencl.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ static void ggml_cl_mul_mat_f32(const ggml_tensor * src0, const ggml_tensor * sr
557557
&queue, &ev_sgemm);
558558

559559
if (status != clblast::StatusCode::kSuccess) {
560-
printf("\nF32 Matmul Failed (%d): You may be out of VRAM. Please check if you have enough.\n",status);
560+
printf("\nF32 Matmul Failed (%d): [dims: %lld,%lld,%lld,%lld] You may be out of VRAM. Please check if you have enough.\n",status,ne00,ne01,ne10,ne11);
561561
GGML_ASSERT(false);
562562
}
563563

@@ -656,7 +656,7 @@ static void ggml_cl_mul_mat_f16(const ggml_tensor * src0, const ggml_tensor * sr
656656
&queue, &ev_sgemm);
657657

658658
if (status != clblast::StatusCode::kSuccess) {
659-
printf("\nF16 Matmul Failed (%d): You may be out of VRAM. Please check if you have enough.\n",status);
659+
printf("\nF16 Matmul Failed (%d): [dims: %lld,%lld,%lld,%lld] You may be out of VRAM. Please check if you have enough.\n",status,ne00,ne01,ne10,ne11);
660660
GGML_ASSERT(false);
661661
}
662662

@@ -764,7 +764,7 @@ static void ggml_cl_mul_mat_q_f32(const ggml_tensor * src0, const ggml_tensor *
764764
&queue, &ev_sgemm);
765765

766766
if (status != clblast::StatusCode::kSuccess) {
767-
printf("\nQF32 Matmul Failed (%d): You may be out of VRAM. Please check if you have enough.\n",status);
767+
printf("\nQF32 Matmul Failed (%d): [dims: %lld,%lld,%lld,%lld] You may be out of VRAM. Please check if you have enough.\n",status,ne00,ne01,ne10,ne11);
768768
GGML_ASSERT(false);
769769
}
770770
}

koboldcpp.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def utfprint(str):
208208
maxlen = 128
209209
modelbusy = False
210210
defaultport = 5001
211-
KcppVersion = "1.24"
211+
KcppVersion = "1.25"
212212

213213
class ServerRequestHandler(http.server.SimpleHTTPRequestHandler):
214214
sys_version = ""

niko.ico

-8.06 KB
Binary file not shown.

otherarch/ggml_v2-opencl.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ static void ggml_v2_cl_mul_mat_f32(const ggml_v2_tensor * src0, const ggml_v2_te
573573
&queue, &ev_sgemm);
574574

575575
if (status != clblast::StatusCode::kSuccess) {
576-
printf("\nF32 Matmul Failed (%d): You may be out of VRAM. Please check if you have enough.\n",status);
576+
printf("\nF32 Matmul Failed (%d): [dims: %lld,%lld,%lld,%lld] You may be out of VRAM. Please check if you have enough.\n",status,ne00,ne01,ne10,ne11);
577577
GGML_V2_ASSERT(false);
578578
}
579579

@@ -672,7 +672,7 @@ static void ggml_v2_cl_mul_mat_f16(const ggml_v2_tensor * src0, const ggml_v2_te
672672
&queue, &ev_sgemm);
673673

674674
if (status != clblast::StatusCode::kSuccess) {
675-
printf("\nF16 Matmul Failed (%d): You may be out of VRAM. Please check if you have enough.\n",status);
675+
printf("\nF16 Matmul Failed (%d): [dims: %lld,%lld,%lld,%lld] You may be out of VRAM. Please check if you have enough.\n",status,ne00,ne01,ne10,ne11);
676676
GGML_V2_ASSERT(false);
677677
}
678678

@@ -780,7 +780,7 @@ static void ggml_v2_cl_mul_mat_q_f32(const ggml_v2_tensor * src0, const ggml_v2_
780780
&queue, &ev_sgemm);
781781

782782
if (status != clblast::StatusCode::kSuccess) {
783-
printf("\nQF32 Matmul Failed (%d): You may be out of VRAM. Please check if you have enough.\n",status);
783+
printf("\nQF32 Matmul Failed (%d): [dims: %lld,%lld,%lld,%lld] You may be out of VRAM. Please check if you have enough.\n",status,ne00,ne01,ne10,ne11);
784784
GGML_V2_ASSERT(false);
785785
}
786786
}

0 commit comments

Comments
 (0)