[v0.01] Adding and creating basic source code base taken from cpufetch

This commit is contained in:
Dr-Noob
2021-08-11 10:12:27 +02:00
parent f824e3c4f2
commit 7b88845d71
9 changed files with 123 additions and 4 deletions

37
src/cuda/uarch.cpp Normal file
View File

@@ -0,0 +1,37 @@
#include <stdint.h>
#include <cstddef>
typedef uint32_t MICROARCH;
// Data not available
#define NA -1
// Unknown manufacturing process
#define UNK -1
enum {
UARCH_UNKNOWN,
UARCH_TESLA
};
struct uarch {
MICROARCH uarch;
char* uarch_str;
int32_t process;
};
struct uarch* get_uarch_from_cuda(struct gpu_info* gpu) {
return NULL;
}
char* get_str_uarch(struct gpu_info* gpu) {
return NULL;
}
char* get_str_process(struct gpu_info* gpu) {
return NULL;
}
void free_uarch_struct(struct uarch* arch) {
}