mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-09-18 08:44:57 +02:00
ccaed41be0
# Conflicts: # .github/workflows/build-openvino.yml # .github/workflows/server-sanitize.yml # AUTHORS # README.md # app/llama.cpp # ci/run.sh # common/build-info.h # docs/backend/SYCL.md # docs/build.md # docs/ops.md # ggml/CMakeLists.txt # ggml/src/ggml-cuda/CMakeLists.txt # ggml/src/ggml-musa/CMakeLists.txt # ggml/src/ggml-opencl/CMakeLists.txt # ggml/src/ggml-opencl/ggml-opencl.cpp # ggml/src/ggml-opencl/kernels/cvt.cl # ggml/src/ggml-opencl/kernels/gemm_noshuffle_q4_k_f32.cl # ggml/src/ggml-opencl/kernels/gemm_noshuffle_q6_k_f32.cl # ggml/src/ggml-opencl/kernels/gemv_noshuffle_q4_0_f32.cl # ggml/src/ggml-opencl/kernels/gemv_noshuffle_q4_1_f32.cl # ggml/src/ggml-opencl/kernels/gemv_noshuffle_q4_k_f32.cl # ggml/src/ggml-opencl/kernels/gemv_noshuffle_q5_k_f32.cl # ggml/src/ggml-opencl/kernels/gemv_noshuffle_q6_k_f32.cl # ggml/src/ggml-opencl/kernels/gemv_noshuffle_q8_0_f32.cl # ggml/src/ggml-opencl/kernels/mul_mm_f32_f32_l4_lm.cl # ggml/src/ggml-opencl/kernels/rms_norm.cl # ggml/src/ggml-sycl/binbcast.cpp # ggml/src/ggml-sycl/binbcast.hpp # ggml/src/ggml-sycl/common.hpp # ggml/src/ggml-sycl/fattn.cpp # ggml/src/ggml-sycl/fusion.cpp # ggml/src/ggml-sycl/ggml-sycl.cpp # ggml/src/ggml-sycl/norm.cpp # ggml/src/ggml-sycl/norm.hpp # scripts/snapdragon/build.py # scripts/snapdragon/qdc/run_qdc_jobs.py # scripts/snapdragon/qdc/tests/linux/run_linux.sh # scripts/snapdragon/qdc/tests/run_backend_ops_posix.py # scripts/snapdragon/qdc/tests/run_bench_tests_posix.py # scripts/snapdragon/qdc/tests/utils.py # scripts/snapdragon/run.py # src/CMakeLists.txt # src/llama.cpp # tests/test-backend-ops.cpp # tests/test-json-schema-to-grammar.cpp
42 lines
1.1 KiB
C++
42 lines
1.1 KiB
C++
#ifndef BUILD_INFO_H
|
|
#define BUILD_INFO_H
|
|
|
|
#define LLAMA_BUILD_NUMBER 999
|
|
#define LLAMA_VERSION "1.0"
|
|
#define LLAMA_COMMIT "KOBOLDCPP"
|
|
#define LLAMA_COMPILER "KCPP"
|
|
#define LLAMA_TARGET "KCPP"
|
|
#define LLAMA_BUILD_COMMIT "KOBOLDCPP"
|
|
#define LLAMA_BUILD_COMPILER "KCPP"
|
|
#define LLAMA_BUILD_TARGET "KCPP"
|
|
|
|
#include <string>
|
|
|
|
static inline int llama_build_number(void) {
|
|
return LLAMA_BUILD_NUMBER;
|
|
}
|
|
|
|
static inline const char * llama_commit(void) {
|
|
return LLAMA_COMMIT;
|
|
}
|
|
|
|
static inline const char * llama_compiler(void) {
|
|
return LLAMA_COMPILER;
|
|
}
|
|
|
|
static inline const char * llama_build_target(void) {
|
|
return LLAMA_BUILD_TARGET;
|
|
}
|
|
|
|
static inline const char * llama_build_info(void) {
|
|
static std::string s = "b" + std::to_string(LLAMA_BUILD_NUMBER) + "-" + LLAMA_COMMIT;
|
|
return s.c_str();
|
|
}
|
|
|
|
static inline void llama_print_build_info(const char *, FILE * = stderr) {
|
|
fprintf(stderr, "%s: build = %d (%s)\n", __func__, llama_build_number(), llama_commit());
|
|
fprintf(stderr, "%s: built with %s for %s\n", __func__, llama_compiler(), llama_build_target());
|
|
}
|
|
|
|
#endif // BUILD_INFO_H
|