Skip to content

Commit

Permalink
Remove --check-bounds=no from precompilation, job-submission scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
johnomotani committed Jan 21, 2025
1 parent aa87d86 commit 56a87de
Show file tree
Hide file tree
Showing 21 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion machines/archer/jobscript-precompile-no-run.template
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ export SRUN_CPUS_PER_TASK=$SLURM_CPUS_PER_TASK

echo "precompiling $(date)"

bin/julia --project -O3 --check-bounds=no precompile-no-run.jl
bin/julia --project -O3 precompile-no-run.jl

echo "finished! $(date)"
2 changes: 1 addition & 1 deletion machines/archer/jobscript-precompile.template
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ export SRUN_CPUS_PER_TASK=$SLURM_CPUS_PER_TASK

echo "precompiling $(date)"

bin/julia --project -O3 --check-bounds=no precompile.jl
bin/julia --project -O3 precompile.jl

echo "finished! $(date)"
2 changes: 1 addition & 1 deletion machines/archer/jobscript-restart.template
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ export SRUN_CPUS_PER_TASK=$SLURM_CPUS_PER_TASK

echo "running INPUTFILE $(date)"

srun --distribution=block:block --hint=nomultithread --ntasks=$SLURM_NTASKS bin/julia -Jmoment_kinetics.so --project -O3 --check-bounds=no run_moment_kinetics.jl --restart INPUTFILE RESTARTFROM
srun --distribution=block:block --hint=nomultithread --ntasks=$SLURM_NTASKS bin/julia -Jmoment_kinetics.so --project -O3 run_moment_kinetics.jl --restart INPUTFILE RESTARTFROM

echo "finished INPUTFILE $(date)"
2 changes: 1 addition & 1 deletion machines/archer/jobscript-run.template
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ export SRUN_CPUS_PER_TASK=$SLURM_CPUS_PER_TASK

echo "running INPUTFILE $(date)"

srun --distribution=block:block --hint=nomultithread --ntasks=$SLURM_NTASKS bin/julia -Jmoment_kinetics.so --project -O3 --check-bounds=no run_moment_kinetics.jl INPUTFILE
srun --distribution=block:block --hint=nomultithread --ntasks=$SLURM_NTASKS bin/julia -Jmoment_kinetics.so --project -O3 run_moment_kinetics.jl INPUTFILE

echo "finished INPUTFILE $(date)"
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ source julia.env

echo "precompiling $(date)"

bin/julia --project -O3 --check-bounds=no precompile-no-run.jl
bin/julia --project -O3 precompile-no-run.jl

echo "finished! $(date)"
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ source julia.env

echo "precompiling $(date)"

bin/julia --project -O3 --check-bounds=no precompile.jl
bin/julia --project -O3 precompile.jl

echo "finished! $(date)"
2 changes: 1 addition & 1 deletion machines/generic-batch-template/jobscript-restart.template
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ source julia.env
echo "running INPUTFILE $(date)"

# May need to change this if mpirun` is not what should be used on your system
mpirun -np $SLURM_NTASKS bin/julia -Jmoment_kinetics.so --project -O3 --check-bounds=no run_moment_kinetics.jl --restart INPUTFILE RESTARTFROM
mpirun -np $SLURM_NTASKS bin/julia -Jmoment_kinetics.so --project -O3 run_moment_kinetics.jl --restart INPUTFILE RESTARTFROM

echo "finished INPUTFILE $(date)"
2 changes: 1 addition & 1 deletion machines/generic-batch-template/jobscript-run.template
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ source julia.env
echo "running INPUTFILE $(date)"

# May need to change this if mpirun` is not what should be used on your system
mpirun -np $SLURM_NTASKS bin/julia -Jmoment_kinetics.so --project -O3 --check-bounds=no run_moment_kinetics.jl INPUTFILE
mpirun -np $SLURM_NTASKS bin/julia -Jmoment_kinetics.so --project -O3 run_moment_kinetics.jl INPUTFILE

echo "finished INPUTFILE $(date)"
2 changes: 1 addition & 1 deletion machines/machine_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ SEPARATE_POSTPROC_PROJECTS=$(bin/julia --project machines/shared/get_mk_preferen
if [[ $BATCH_SYSTEM -eq 0 || $SEPARATE_POSTPROC_PROJECTS == "y" ]]; then
# Batch systems can (conveniently) use different optimization flags for
# running simulations and for post-processing.
OPTIMIZATION_FLAGS="-O3 --check-bounds=no"
OPTIMIZATION_FLAGS="-O3"
POSTPROC_OPTIMIZATION_FLAGS="-O3"
else
# On interactive systems which use the same project for running simulations
Expand Down
2 changes: 1 addition & 1 deletion machines/marconi/jobscript-precompile-no-run.template
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ source julia.env

echo "precompiling $(date)"

bin/julia --project -O3 --check-bounds=no precompile-no-run.jl
bin/julia --project -O3 precompile-no-run.jl

echo "finished! $(date)"
2 changes: 1 addition & 1 deletion machines/marconi/jobscript-precompile.template
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ source julia.env

echo "precompiling $(date)"

bin/julia --project -O3 --check-bounds=no precompile.jl
bin/julia --project -O3 precompile.jl

echo "finished! $(date)"
2 changes: 1 addition & 1 deletion machines/marconi/jobscript-restart.template
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ source julia.env

echo "running INPUTFILE $(date)"

mpirun -np $SLURM_NTASKS bin/julia -Jmoment_kinetics.so --project -O3 --check-bounds=no run_moment_kinetics.jl --restart INPUTFILE RESTARTFROM
mpirun -np $SLURM_NTASKS bin/julia -Jmoment_kinetics.so --project -O3 run_moment_kinetics.jl --restart INPUTFILE RESTARTFROM

echo "finished INPUTFILE $(date)"
2 changes: 1 addition & 1 deletion machines/marconi/jobscript-run.template
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ source julia.env

echo "running INPUTFILE $(date)"

mpirun -np $SLURM_NTASKS bin/julia -Jmoment_kinetics.so --project -O3 --check-bounds=no run_moment_kinetics.jl INPUTFILE
mpirun -np $SLURM_NTASKS bin/julia -Jmoment_kinetics.so --project -O3 run_moment_kinetics.jl INPUTFILE

echo "finished INPUTFILE $(date)"
2 changes: 1 addition & 1 deletion machines/shared/submit-restart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ sed -e "s|NODES|$NODES|" -e "s|RUNTIME|$RUNTIME|" -e "s|ACCOUNT|$ACCOUNT|" -e "s

if [[ "$WARN_OLD_SYSIMAGE" -eq 0 ]]; then
# Check that source code has not been changed since moment_kinetics.so was created
bin/julia --project -O3 --check-bounds=no moment_kinetics/src/check_so_newer_than_code.jl moment_kinetics.so
bin/julia --project -O3 moment_kinetics/src/check_so_newer_than_code.jl moment_kinetics.so
fi

if [[ $SUBMIT -eq 0 ]]; then
Expand Down
2 changes: 1 addition & 1 deletion machines/shared/submit-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ sed -e "s|NODES|$NODES|" -e "s|RUNTIME|$RUNTIME|" -e "s|ACCOUNT|$ACCOUNT|" -e "s

if [[ "$WARN_OLD_SYSIMAGE" -eq 0 ]]; then
# Check that source code has not been changed since moment_kinetics.so was created
bin/julia --project -O3 --check-bounds=no moment_kinetics/src/check_so_newer_than_code.jl moment_kinetics.so
bin/julia --project -O3 moment_kinetics/src/check_so_newer_than_code.jl moment_kinetics.so
fi

if [[ $SUBMIT -eq 0 ]]; then
Expand Down
2 changes: 1 addition & 1 deletion precompile-kinetic-electrons.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ using PackageCompiler
create_sysimage(; sysimage_path="moment_kinetics.so",
precompile_execution_file="util/precompile_run_kinetic-electrons.jl",
include_transitive_dependencies=false, # This is needed to make MPI work, see https://github.com/JuliaParallel/MPI.jl/issues/518
sysimage_build_args=`-O3 --check-bounds=no`, # Assume if we are precompiling we want an optimized, production build
sysimage_build_args=`-O3`, # Assume if we are precompiling we want an optimized, production build
)
2 changes: 1 addition & 1 deletion precompile-makie-post-processing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ using PackageCompiler
create_sysimage(; sysimage_path="makie_postproc.so",
precompile_execution_file="util/precompile_makie_plots.jl",
include_transitive_dependencies=false, # This is needed to make MPI work, see https://github.com/JuliaParallel/MPI.jl/issues/518
sysimage_build_args=`-O3`, # Assume if we are precompiling we want an optimized, production build. No `--check-bounds=no` because Makie doesn' like it https://github.com/MakieOrg/Makie.jl/issues/3132
sysimage_build_args=`-O3`, # Assume if we are precompiling we want an optimized, production build. We do not use `--check-bounds=no` for any runs any more, but if we want to again in future, check whether Makie works well with it, see https://github.com/MakieOrg/Makie.jl/issues/3132
)
2 changes: 1 addition & 1 deletion precompile-no-run.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ using PackageCompiler
# need to re-precompile if you change anything.
create_sysimage(; sysimage_path="moment_kinetics.so",
include_transitive_dependencies=false, # This is needed to make MPI work, see https://github.com/JuliaParallel/MPI.jl/issues/518
sysimage_build_args=`-O3 --check-bounds=no`, # Assume if we are precompiling we want an optimized, production build
sysimage_build_args=`-O3`, # Assume if we are precompiling we want an optimized, production build
)
2 changes: 1 addition & 1 deletion precompile-plots-post-processing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ using PackageCompiler
create_sysimage(; sysimage_path="plots_postproc.so",
precompile_execution_file="util/precompile_plots_plots.jl",
include_transitive_dependencies=false, # This is needed to make MPI work, see https://github.com/JuliaParallel/MPI.jl/issues/518
sysimage_build_args=`-O3`, # Assume if we are precompiling we want an optimized, production build. No `--check-bounds=no` because Makie doesn' like it https://github.com/MakieOrg/Makie.jl/issues/3132
sysimage_build_args=`-O3`, # Assume if we are precompiling we want an optimized, production build. For post-processing, we probably do not want `--check-bounds=no` even if we start using it again for simulations.
)
2 changes: 1 addition & 1 deletion precompile.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ using PackageCompiler
create_sysimage(; sysimage_path="moment_kinetics.so",
precompile_execution_file="util/precompile_run.jl",
include_transitive_dependencies=false, # This is needed to make MPI work, see https://github.com/JuliaParallel/MPI.jl/issues/518
sysimage_build_args=`-O3 --check-bounds=no`, # Assume if we are precompiling we want an optimized, production build
sysimage_build_args=`-O3`, # Assume if we are precompiling we want an optimized, production build
)
2 changes: 1 addition & 1 deletion precompile_dependencies.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ packages = collect(Symbol(d) for d ∈ keys(project_file["deps"]))
create_sysimage(packages; sysimage_path="dependencies.so",
precompile_execution_file="util/precompile_run_short.jl",
include_transitive_dependencies=false, # This is needed to make MPI work, see https://github.com/JuliaParallel/MPI.jl/issues/518
sysimage_build_args=`-O3 --check-bounds=no`, # Assume if we are precompiling we want an optimized, production build
sysimage_build_args=`-O3`, # Assume if we are precompiling we want an optimized, production build
)

0 comments on commit 56a87de

Please sign in to comment.