Skip to content

Commit 0ffed82

Browse files
committed
Run MPI examples with -O0 --check-bounds=auto
1 parent 19f56f6 commit 0ffed82

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

docs/src/grids.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -937,7 +937,7 @@ write("distributed_arch_example.jl", make_distributed_arch)
937937
#
938938
# from the terminal.
939939
using MPI
940-
run(`$(mpiexec()) -n 2 $(Base.julia_cmd()) --project distributed_arch_example.jl`)
940+
run(`$(mpiexec()) -n 2 $(Base.julia_cmd()) -O0 --check-bounds=auto --project distributed_arch_example.jl`)
941941
rm("distributed_arch_example.jl")
942942
nothing # hide
943943
```
@@ -975,7 +975,7 @@ grid = RectilinearGrid(architecture,
975975
write("distributed_grid_example.jl", make_distributed_grid)
976976
977977
using MPI
978-
run(`$(mpiexec()) -n 2 $(Base.julia_cmd()) --project distributed_grid_example.jl`)
978+
run(`$(mpiexec()) -n 2 $(Base.julia_cmd()) -O0 --check-bounds=auto --project distributed_grid_example.jl`)
979979
nothing # hide
980980
```
981981

@@ -998,7 +998,7 @@ Now we're getting somewhere. Let's note a few things:
998998
To drive these points home, let's run the same script, but using 3 processors instead of 2:
999999

10001000
```@example distributed_grids
1001-
run(`$(mpiexec()) -n 3 $(Base.julia_cmd()) --project distributed_grid_example.jl`)
1001+
run(`$(mpiexec()) -n 3 $(Base.julia_cmd()) -O0 --check-bounds=auto --project distributed_grid_example.jl`)
10021002
nothing # hide
10031003
```
10041004

@@ -1033,7 +1033,7 @@ end
10331033
write("partition_example.jl", make_y_partition)
10341034
10351035
using MPI
1036-
run(`$(mpiexec()) -n 2 $(Base.julia_cmd()) --project partition_example.jl`)
1036+
run(`$(mpiexec()) -n 2 $(Base.julia_cmd()) -O0 --check-bounds=auto --project partition_example.jl`)
10371037
nothing # hide
10381038
```
10391039

@@ -1076,7 +1076,7 @@ end
10761076
write("programmatic_partition_example.jl", make_xy_partition)
10771077
10781078
using MPI
1079-
run(`$(mpiexec()) -n 6 $(Base.julia_cmd()) --project programmatic_partition_example.jl`)
1079+
run(`$(mpiexec()) -n 6 $(Base.julia_cmd()) -O0 --check-bounds=auto --project programmatic_partition_example.jl`)
10801080
nothing # hide
10811081
```
10821082

@@ -1125,6 +1125,6 @@ end
11251125
write("equally_partitioned_grids.jl", partitioned_grid_example)
11261126
11271127
using MPI
1128-
run(`$(mpiexec()) -n 4 $(Base.julia_cmd()) --project equally_partitioned_grids.jl`)
1128+
run(`$(mpiexec()) -n 4 $(Base.julia_cmd()) -O0 --check-bounds=auto --project equally_partitioned_grids.jl`)
11291129
nothing # hide
11301130
```

0 commit comments

Comments
 (0)