From fa1be94958c300da4240fcc1e4e00000b181e07c Mon Sep 17 00:00:00 2001 From: Uwe Fechner Date: Mon, 18 Mar 2024 09:56:22 +0100 Subject: [PATCH] Add var FAST_CORES --- bin/run_julia | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bin/run_julia b/bin/run_julia index cbc62062..2c11ebfe 100755 --- a/bin/run_julia +++ b/bin/run_julia @@ -10,8 +10,10 @@ fi export MPLBACKEND=qt5agg +FAST_CORES=7 + # instead of 7, use the number of fast CPU cores you have minus one -GCT="--gcthreads=7,1" +GCT="--gcthreads=$FAST_CORES,1" julia_version=$(julia --version | awk '{print($3)}') julia_major=${julia_version:0:3} @@ -24,8 +26,8 @@ branch=$(git rev-parse --abbrev-ref HEAD) if test -f "bin/kps-image-${julia_major}-${branch}.so"; then echo "Found system image!" - julia -J bin/kps-image-${julia_major}-${branch}.so -t 7,1 $GCT --project + julia -J bin/kps-image-${julia_major}-${branch}.so -t $FAST_CORES,1 $GCT --project else - julia --project -t 7,1 $GCT + julia --project -t $FAST_CORES,1 $GCT # julia --project fi