From 7f66ccb2e252c2d0dd5200e8ee75bba51f9a283a Mon Sep 17 00:00:00 2001 From: Ron Lieberman Date: Wed, 19 Nov 2025 19:21:43 -0600 Subject: [PATCH] [gpurun] enable GPURUN_BYPASS after argument processing --- offload/utils/gpurun/gpurun | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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