Skip to content

Commit

Permalink
remove logging temporarily
Browse files Browse the repository at this point in the history
  • Loading branch information
atalman authored Jan 23, 2024
1 parent 14c9035 commit b3b676e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions userbenchmark/release-test/monitor_proc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ else
COMMAND_TO_RUN=$@
fi

echo "Running ${COMMAND_TO_RUN} > \"${LOG_FILE}\" 2>&1 &"
/usr/bin/time -f "\nTotal time elapsed: %e seconds." ${COMMAND_TO_RUN} > "${LOG_FILE}" 2>&1 &
echo "Running ${COMMAND_TO_RUN} 2>&1 &"
/usr/bin/time -f "\nTotal time elapsed: %e seconds." ${COMMAND_TO_RUN} 2>&1 &
PID_TO_WATCH=$(ps aux | grep -v 'grep' | grep -F "${COMMAND_TO_RUN}" | grep -v "$0" | awk '{print $2}' | head -1)
trap "kill -9 ${PID_TO_WATCH} >/dev/null 2>/dev/null || exit 0" $(seq 0 15)
MAX_GPU_MEMORY=0
Expand Down

0 comments on commit b3b676e

Please sign in to comment.