Skip to content

Commit

Permalink
gpu: fix gpu_name for single GPU
Browse files Browse the repository at this point in the history
  • Loading branch information
gort818 committed Oct 13, 2024
1 parent 71d2fa9 commit 024cf21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ int GPU::index_in_selected_gpus() {
std::string GPU::gpu_text() {
std::string gpu_text;
size_t index = this->index_in_selected_gpus();
if (gpus->selected_gpus().size() > 1) {
if (gpus->selected_gpus().size() >= 1) {
gpu_text = "GPU" + std::to_string(index);
if (gpus->params->gpu_text.size() > index)
gpu_text = gpus->params->gpu_text[index];
Expand Down

0 comments on commit 024cf21

Please sign in to comment.