[v0.21] Add verbose option. Fix CUDA driver initialization message when verbose output is used

This commit is contained in:
Dr-Noob
2021-12-27 22:35:47 +01:00
parent 59f2715149
commit 8fbf97c47a
8 changed files with 35 additions and 7 deletions

View File

@@ -507,12 +507,14 @@ struct terminal* get_terminal_size() {
bool print_gpufetch(struct gpu_info* gpu, STYLE s, struct color** cs) {
struct terminal* term = get_terminal_size();
if(gpu->vendor == GPU_VENDOR_NVIDIA)
if(gpu->vendor == GPU_VENDOR_NVIDIA) {
#ifdef BACKEND_CUDA
if(clean_output()) printf("%*s", (int) strlen(CUDA_DRIVER_START_WARNING), " ");
return print_gpufetch_cuda(gpu, s, cs, term);
#else
return false;
#endif
}
else {
#ifdef BACKEND_INTEL
return print_gpufetch_intel(gpu, s, cs, term);