If only HSA is enabled we dont need pciutils since AMD detection does not rely on it. Therefore we change CMakeLists.txt to build pciutils only if required. This commit has some side-effects: 1. We now don't build Intel backend by default. In other words, no backend is built by default, the user must specify which backend to use. 2. There were some issues with includes and wrongly used defines and variables. This commit fixes all that.
19 lines
540 B
C++
19 lines
540 B
C++
#ifndef __CUDA_UARCH__
|
|
#define __CUDA_UARCH__
|
|
|
|
#include "../common/gpu.hpp"
|
|
|
|
struct uarch;
|
|
|
|
struct uarch* get_uarch_from_cuda(struct gpu_info* gpu);
|
|
bool clkm_possible_for_uarch(int clkm, struct uarch* arch);
|
|
MEMTYPE guess_memtype_from_cmul_and_uarch(int ddr, struct uarch* arch);
|
|
char* get_str_uarch_cuda(struct uarch* arch);
|
|
char* get_str_cc(struct uarch* arch);
|
|
char* get_str_chip(struct uarch* arch);
|
|
char* get_str_process(struct uarch* arch);
|
|
void free_uarch_struct(struct uarch* arch);
|
|
bool is_chip_TU116(struct uarch* arch);
|
|
|
|
#endif
|