diff options
Diffstat (limited to 'vulkaninfo/vulkaninfo.cpp')
| -rw-r--r-- | vulkaninfo/vulkaninfo.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/vulkaninfo/vulkaninfo.cpp b/vulkaninfo/vulkaninfo.cpp index a4face92..d25cf1f0 100644 --- a/vulkaninfo/vulkaninfo.cpp +++ b/vulkaninfo/vulkaninfo.cpp @@ -936,7 +936,9 @@ int main(int argc, char **argv) { if (selected_gpu >= gpus.size()) { std::cout << "The selected gpu (" << selected_gpu << ") is not a valid GPU index. "; - if (gpus.size() == 1) + if (gpus.size() == 0) + std::cout << "There are no available GPUs.\n"; + else if (gpus.size() == 1) std::cout << "The only available GPU selection is 0.\n"; else std::cout << "The available GPUs are in the range of 0 to " << gpus.size() - 1 << ".\n"; |
