1- #! /bin/bash
2- # Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
1+ #! /usr/ bin/env bash
2+ # Copyright 2021-2025 , NVIDIA CORPORATION & AFFILIATES . All rights reserved.
33#
44# Licensed under the Apache License, Version 2.0 (the "License");
55# you may not use this file except in compliance with the License.
1414# limitations under the License.
1515
1616set -e
17- cat << EOF
18- =============================
19- === Triton Model Analyzer ===
20- =============================
21- NVIDIA Release ${MODEL_ANALYZER_CONTAINER_VERSION} (build ${NVIDIA_BUILD_ID} )
22- Copyright (c) 2020-2021, NVIDIA CORPORATION. All rights reserved.
23- Various files include modifications (c) NVIDIA CORPORATION. All rights reserved.
24- This container image and its contents are governed by the NVIDIA Deep Learning Container License.
25- By pulling and using the container, you accept the terms and conditions of this license:
26- https://developer.nvidia.com/ngc/nvidia-deep-learning-container-license
27- EOF
2817
2918if [[ " $( find -L /usr -name libcuda.so.1 | grep -v " compat" ) " == " " || " $( ls /dev/nvidiactl 2> /dev/null) " == " " ]]; then
3019 echo
@@ -34,7 +23,6 @@ if [[ "$(find -L /usr -name libcuda.so.1 | grep -v "compat") " == " " || "$(ls /
3423 ln -s ` find / -name libnvidia-ml.so -print -quit` /opt/tritonserver/lib/libnvidia-ml.so.1
3524 export TRITON_SERVER_CPU_ONLY=1
3625else
37- ( /usr/local/bin/checkSMVER.sh )
3826 DRIVER_VERSION=$( sed -n ' s/^NVRM.*Kernel Module *\([0-9.]*\).*$/\1/p' /proc/driver/nvidia/version 2> /dev/null || true)
3927 if [[ ! " $DRIVER_VERSION " =~ ^[0-9]* .[0-9]* (.[0-9]* )? $ ]]; then
4028 echo " Failed to detect NVIDIA driver version."
0 commit comments