Skip to content

Commit

Permalink
Add set -e to scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondzouu committed Sep 11, 2023
1 parent 6ce556e commit af9e480
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions MaxText/configs/largest_job/128b.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ echo "Running 128b.sh"
# Example command to invoke this script
# bash MaxText/configs/largest_job/128b.sh

# Stop execution if any command exits with error
set -e

export OUTPUT_PATH="gs:https://maxtext-experiments-multipod"
export DATASET_PATH="gs:https://maxtext-dataset/"

Expand Down
3 changes: 3 additions & 0 deletions MaxText/configs/largest_job/32b.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ echo "Running 32b.sh"
# Example command to invoke this script
# bash MaxText/configs/largest_job/32b.sh

# Stop execution if any command exits with error
set -e

export OUTPUT_PATH="gs:https://maxtext-experiments-multipod"
export DATASET_PATH="gs:https://maxtext-dataset/"

Expand Down
3 changes: 3 additions & 0 deletions MaxText/configs/largest_job/64b_big_batch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ echo "Running 64b_big_batch.sh"
# Example command to invoke this script
# bash MaxText/configs/largest_job/64b_big_batch.sh

# Stop execution if any command exits with error
set -e

export OUTPUT_PATH="gs:https://maxtext-experiments-multipod"
export DATASET_PATH="gs:https://maxtext-dataset/"

Expand Down
3 changes: 3 additions & 0 deletions MaxText/configs/largest_job/64b_small_batch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ echo "Running 64b_small_batch.sh"
# Example command to invoke this script
# bash MaxText/configs/largest_job/64b_small_batch.sh

# Stop execution if any command exits with error
set -e

export OUTPUT_PATH="gs:https://maxtext-experiments-multipod"
export DATASET_PATH="gs:https://maxtext-dataset/"

Expand Down
3 changes: 3 additions & 0 deletions gke_rto_setup.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
echo "Running gke_rto_setup.sh..."

# Stop execution if any command exits with error
set -e

echo "Adjust RTO and apply non cache copy"
first_line_res=$(ip route show | head -n 1)
if [[ "$(echo "$first_line_res" | grep "rto_min lock 5ms" | wc -l)" -eq 0 ]]; then
Expand Down
4 changes: 4 additions & 0 deletions rto_setup.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
echo "Running rto_setup.sh..."

# Stop execution if any command exits with error
set -e

first_line_res=$(ip route show | head -n 1)
sudo ip route change ${first_line_res} rto_min 5ms
sudo ethtool -K ens9 tx-nocache-copy on
Expand Down

0 comments on commit af9e480

Please sign in to comment.