Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make shebang compatible with other distros v2 #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion batch_benchmark.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash -e
#!/usr/bin/env bash

set -eEu

MIN_NUM_GPU=${1:-1}
MAX_NUM_GPU=${2:-1}
Expand Down
5 changes: 4 additions & 1 deletion benchmark.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash -e
#!/usr/bin/env bash

set -eEu

GPU_INDEX=${1:-0}
IFS=', ' read -r -a gpus <<< "$GPU_INDEX"

Expand Down
2 changes: 1 addition & 1 deletion config/bs_fp16.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env sh

case "${GPU_RAM:-'12GB'}" in
'6GB')
Expand Down
2 changes: 1 addition & 1 deletion config/bs_fp32.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env sh

case "${GPU_RAM:-'12GB'}" in
'6GB')
Expand Down
3 changes: 1 addition & 2 deletions config/config_all.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/bin/sh
#!/usr/bin/env sh
MODELS="inception3 resnet152 resnet50 alexnet inception4 vgg16"
VARIABLE_UPDATE="replicated"
PRECISION="fp16 fp32"
RUN_MODE="train inference"
DATA_MODE="syn"

3 changes: 1 addition & 2 deletions config/config_debug.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/bin/sh
#!/usr/bin/env sh
MODELS="resnet152"
VARIABLE_UPDATE="replicated"
PRECISION="fp16"
RUN_MODE="train"
DATA_MODE="syn"

3 changes: 1 addition & 2 deletions config/config_inception3.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/bin/sh
#!/usr/bin/env sh
MODELS="inception3"
VARIABLE_UPDATE="replicated"
PRECISION="fp32 fp16"
RUN_MODE="train"
DATA_MODE="syn"

3 changes: 1 addition & 2 deletions config/config_resnet152_replicated_train_syn.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/bin/sh
#!/usr/bin/env sh
MODELS="resnet152"
VARIABLE_UPDATE="replicated"
PRECISION="fp16 fp32"
RUN_MODE="train"
DATA_MODE="syn"

3 changes: 1 addition & 2 deletions config/config_resnet50_replicated_fp16_train_syn.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/bin/sh
#!/usr/bin/env sh
MODELS="resnet50"
VARIABLE_UPDATE="replicated"
PRECISION="fp16"
RUN_MODE="train"
DATA_MODE="syn"

3 changes: 1 addition & 2 deletions config/config_resnet50_replicated_fp32_train_syn.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/bin/sh
#!/usr/bin/env sh
MODELS="resnet50"
VARIABLE_UPDATE="replicated"
PRECISION="fp32"
RUN_MODE="train"
DATA_MODE="syn"