[v0.11] Fixes to recover CUDA functionality, ready for implementing Intel iGPU code

This commit is contained in:
Dr-Noob
2021-11-26 09:33:57 +01:00
parent e5a4f91b20
commit 310486a6a2
4 changed files with 20 additions and 46 deletions

View File

@@ -73,10 +73,10 @@ int main(int argc, char* argv[]) {
set_log_level(true);
printWarn("gpufetch is in beta. The provided information may be incomplete or wrong.\n\
printf("[WARNING]: gpufetch is in beta. The provided information may be incomplete or wrong.\n\
If you want to help to improve gpufetch, please compare the output of the program\n\
with a reliable source which you know is right (e.g, techpowerup.com) and report\n\
any inconsistencies to https://github.com/Dr-Noob/gpufetch/issues");
any inconsistencies to https://github.com/Dr-Noob/gpufetch/issues\n");
struct gpu_info* gpu = get_gpu_info(list, get_gpu_idx());
if(gpu == NULL)

View File

@@ -42,12 +42,12 @@ bool print_gpus_list(struct gpu_list* list) {
for(int i=0; i < list->num_gpus; i++) {
printf("GPU %d: ", i);
if(list->gpus[i]->vendor == GPU_VENDOR_NVIDIA) {
#ifdef ENABLE_CUDA_BACKEND
#ifdef BACKEND_CUDA
print_gpu_cuda(list->gpus[i]);
#endif
}
else if(list->gpus[i]->vendor == GPU_VENDOR_INTEL) {
#ifdef ENABLE_INTEL_BACKEND
#ifdef BACKEND_INTEL
print_gpu_intel(list->gpus[i]);
#endif
}