Skip to content

Commit ab83665

Browse files
committed
gathering timing data for some long-running sections of the installer
1 parent 57d95f2 commit ab83665

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spark-rapids/spark-rapids.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ IS_MIG_ENABLED=0
261261
function execute_with_retries() {
262262
local -r cmd=$1
263263
for ((i = 0; i < 10; i++)); do
264-
if eval "$cmd"; then
264+
if time eval "$cmd"; then
265265
return 0
266266
fi
267267
sleep 5
@@ -452,7 +452,7 @@ function install_nvidia_gpu_driver() {
452452
curl -fsSL --retry-connrefused --retry 10 --retry-max-time 30 \
453453
"https://developer.download.nvidia.com/compute/cuda/${CUDA_VERSION}/local_installers/${cuda_runfile}" \
454454
-o cuda.run
455-
bash cuda.run --silent --toolkit --no-opengl-libs
455+
time bash cuda.run --silent --toolkit --no-opengl-libs
456456
rm cuda.run
457457
else
458458
# Install from repo provided by NV

0 commit comments

Comments
 (0)