Skip to content

Commit

Permalink
Change LOG(WARNING) to VLOG(1) when no GPUs are detected (#497)
Browse files Browse the repository at this point in the history
* Since CPU-only mode will become a supported feature we want to avoid unnecessary warnings.

Relates to nv-morpheus/Morpheus#1851

Authors:
  - David Gardner (https:/dagardner-nv)

Approvers:
  - Michael Demoret (https:/mdemoret-nv)

URL: #497
  • Loading branch information
dagardner-nv authored Sep 11, 2024
1 parent 8489b45 commit ccbcd76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/mrc/src/internal/system/device_info.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: Copyright (c) 2018-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
* SPDX-FileCopyrightText: Copyright (c) 2018-2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -150,7 +150,7 @@ struct NvmlState
m_nvml_handle = std::make_unique<NvmlHandle>();
} catch (std::runtime_error e)
{
LOG(WARNING) << "NVML: " << e.what() << ". Setting DeviceCount to 0, CUDA will not be initialized";
VLOG(1) << "NVML: " << e.what() << ". Setting DeviceCount to 0, CUDA will not be initialized";
return;
}

Expand Down

0 comments on commit ccbcd76

Please sign in to comment.