diff --git a/offload/utils/gpurun/gpurun b/offload/utils/gpurun/gpurun index b8a0daf64b913..870bc7a8ccbcd 100755 --- a/offload/utils/gpurun/gpurun +++ b/offload/utils/gpurun/gpurun @@ -36,10 +36,6 @@ function execOnError() { exec "$@" } -if [ "$GPURUN_BYPASS" = "1" ]; then - execOnError "$@" -fi - # PROGVERSION string is updated by cmake when component is installed PROGVERSION=X.Y-Z function version(){ @@ -174,6 +170,10 @@ while [ "$_end_gpurun_opts" == "0" ] ; do fi done +if [ "$GPURUN_BYPASS" = "1" ]; then + execOnError "$@" +fi + # Default: quiet operation GPURUN_VERBOSE=${GPURUN_VERBOSE:-0} # Default: create mutually exclusive sets of CUs when GPU is oversubscribed