# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: MIT

# For systems with a GB300 and additional GPUs, this setting ensures that only
# the GB300 is visible to CUDA applications. This improves performance and
# stability by preventing CUDA from attempting to use the other GPU

if [ -r /etc/cuda-gpu-select/env ]; then
    set -a
    . /etc/cuda-gpu-select/env
    set +a
fi