]> git.djapps.eu Git - pkg/ggml/sources/ggml/commitdiff
ci : update to be able to run locally
authorGeorgi Gerganov <redacted>
Tue, 18 Jul 2023 11:40:53 +0000 (14:40 +0300)
committerGeorgi Gerganov <redacted>
Tue, 18 Jul 2023 11:40:53 +0000 (14:40 +0300)
.gitignore
ci/run.sh

index daef9cc944c8a0b337dfaf75e19e0ec2be059dc5..c7a8f76b0b8161542d907518f2f9d0904bc8e3f6 100644 (file)
@@ -4,8 +4,12 @@ build-release/
 build-sanitize-addr/
 build-sanitize-thread/
 build-cov/
+build-ci-debug/
+build-ci-release/
 out/
+tmp/
 models/
+models-mnt
 
 compile_commands.json
 CMakeSettings.json
index 95fe8a31374b5c28357f9a5a3deda62c354f599b..6068d086a4554199656d5378eaa4bdf1e1fbc9df 100644 (file)
--- a/ci/run.sh
+++ b/ci/run.sh
@@ -1,11 +1,23 @@
 #/bin/bash
 
+if [ -z "$2" ]; then
+    echo "usage: $0 <output-dir> <mnt-dir>"
+    exit 1
+fi
+
+mkdir -p "$1"
+mkdir -p "$2"
+
+OUT=$(realpath "$1")
+MNT=$(realpath "$2")
+
+rm -v $OUT/*.log
+rm -v $OUT/*.exit
+rm -v $OUT/*.md
+
 sd=`dirname $0`
 cd $sd/../
-
 SRC=`pwd`
-OUT="$1"
-MNT="$2"
 
 ## helpers
 
@@ -183,8 +195,9 @@ function gg_sum_mpt {
 if [ -z $GG_BUILD_LOW_PERF ]; then
     rm -rf ${SRC}/models-mnt
 
-    mkdir -p $(realpath ${MNT}/models)
-    ln -sfn ${MNT}/models ${SRC}/models-mnt
+    mnt_models=$(realpath ${MNT}/models)
+    mkdir -p ${mnt_models}
+    ln -sfn ${mnt_models} ${SRC}/models-mnt
 
     python3 -m pip install -r ${SRC}/requirements.txt
 fi