Skip to content

Commit

Permalink
Update project and CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Uwe Fechner committed Mar 14, 2024
1 parent 46d80e6 commit f7a0109
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
arch: x64
version: 1
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ YAML = "ddb6d928-2868-570f-bddf-ab3f9cf99eb6"
KiteModels = "0.5.2"
KiteUtils = "0.5"
NLsolve = "4.5"
Observables = "0.3, 0.4"
Observables = "0.3, 0.4, 0.5"
Parameters = "0.12"
Plots = "1.29"
StaticArrayInterface = "1.5"
Expand Down
7 changes: 5 additions & 2 deletions bin/run_julia
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,16 @@ if [[ $HOSTNAME == "tuxedi" ]]; then
sudo performance.sh
fi

# instead of 8, use the number of fast CPU cores you have
GCT="--gcthreads=8,1"

julia_version=$(julia --version | awk '{print($3)}')
julia_major=${julia_version:0:3}
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 1 --project
julia -J bin/kps-image-${julia_major}-${branch}.so -t 16 $GCT --project
else
julia --project
julia --project -t 16 $GCT
fi

0 comments on commit f7a0109

Please sign in to comment.