Skip to content

Commit ffd9c19

Browse files
committed
gpu: change some messages level from debug to info
1 parent 06c633f commit ffd9c19

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/gpu.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ GPUS::GPUS(overlay_params* params) : params(params) {
6666
std::shared_ptr<GPU> ptr = std::make_shared<GPU>(node_name, vendor_id, device_id, pci_dev);
6767
available_gpus.emplace_back(ptr);
6868

69-
SPDLOG_DEBUG("GPU Found: node_name: {}, vendor_id: {:x} device_id: {:x} pci_dev: {}", node_name, vendor_id, device_id, pci_dev);
69+
SPDLOG_INFO("GPU Found: node_name: {}, vendor_id: {:x} device_id: {:x} pci_dev: {}", node_name, vendor_id, device_id, pci_dev);
7070
}
7171

7272
find_active_gpu();
@@ -153,7 +153,7 @@ void GPUS::find_active_gpu() {
153153
for (const auto& gpu : available_gpus) {
154154
if (gpu->pci_dev == drm_pdev) {
155155
gpu->is_active = true;
156-
SPDLOG_DEBUG("Active GPU Found: node_name: {}, pci_dev: {}", gpu->name, gpu->pci_dev);
156+
SPDLOG_INFO("Active GPU Found: node_name: {}, pci_dev: {}", gpu->name, gpu->pci_dev);
157157
} else {
158158
gpu->is_active = false;
159159
}
@@ -173,7 +173,7 @@ void GPUS::find_active_gpu() {
173173
for (auto& pid : gpu->nvidia_pids()) {
174174
if (pid == getpid()) {
175175
gpu->is_active = true;
176-
SPDLOG_DEBUG("Active GPU Found: node_name: {}, pci_dev: {}", gpu->name, gpu->pci_dev);
176+
SPDLOG_INFO("Active GPU Found: node_name: {}, pci_dev: {}", gpu->name, gpu->pci_dev);
177177
return;
178178
}
179179
}
@@ -182,7 +182,7 @@ void GPUS::find_active_gpu() {
182182
}
183183
}
184184
#endif
185-
SPDLOG_DEBUG("failed to find active GPU");
185+
SPDLOG_WARN("failed to find active GPU");
186186
}
187187

188188
int GPU::index_in_selected_gpus() {

0 commit comments

Comments
 (0)