[v0.01] Adding and creating basic source code base taken from cpufetch
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
|
||||
#include "args.hpp"
|
||||
#include "global.hpp"
|
||||
#include "../cuda/cuda.hpp"
|
||||
|
||||
static const char* VERSION = "0.01";
|
||||
|
||||
@@ -47,5 +48,11 @@ int main(int argc, char* argv[]) {
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
struct gpu_info* gpu = get_gpu_info();
|
||||
if(gpu == NULL)
|
||||
return EXIT_FAILURE;
|
||||
|
||||
printf("Name: %s\n", gpu->name);
|
||||
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user