Skip to content

Commit

Permalink
Add var FAST_CORES
Browse files Browse the repository at this point in the history
  • Loading branch information
Uwe Fechner committed Mar 18, 2024
1 parent 6364b66 commit fa1be94
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions bin/run_julia
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand All @@ -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

0 comments on commit fa1be94

Please sign in to comment.