Skip to content

Commit

Permalink
fix julia env
Browse files Browse the repository at this point in the history
  • Loading branch information
SCiarella committed Dec 20, 2024
1 parent 3d926db commit 4f7f496
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 6 additions & 0 deletions simulations/Benchmark/benchmark.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ if false #src
end #src

@info "Script started"
@info VERSION

using Pkg
@info Pkg.status()

# Color palette for consistent theme throughout paper
palette = (; color = ["#3366cc", "#cc0000", "#669900", "#ff9900"])
Expand Down Expand Up @@ -119,6 +123,8 @@ else
clean() = nothing
end
conf["params"]["backend"] = deepcopy(backend)
@info backend
@info CUDA.versioninfo()


########################################################################## #src
Expand Down
6 changes: 4 additions & 2 deletions simulations/Benchmark/job_a100.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,19 @@
# - gpu_h100: 16 cores
# https://servicedesk.surf.nl/wiki/display/WIKI/Snellius+partitions+and+accounting

nvidia-smi

mkdir -p /scratch-shared/$USER

echo "Slurm job ID: $SLURM_JOB_ID"
echo "Slurm array task ID: $SLURM_ARRAY_TASK_ID"

export JULIA_DEPOT_PATH=/scratch-shared/$USER/.julia_a100:
export JULIA_DEPOT_PATH=/scratch-shared/$USER/.julia_a100
export CONF_FILE=$1

cd $HOME/CoupledNODE.jl/simulations/Benchmark

#julia --project -t auto -e 'using Pkg; Pkg.update()'
julia --project -t auto -e 'using Pkg; Pkg.update()'

julia --project -t auto benchmark.jl

0 comments on commit 4f7f496

Please sign in to comment.