mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-07 16:05:05 -05:00
Use libcpuid for detect optimal threads count.
This commit is contained in:
9
cpu.h
9
cpu.h
@@ -25,9 +25,13 @@
|
||||
#define __CPU_H__
|
||||
|
||||
struct cpu_info {
|
||||
int count;
|
||||
int total_cores;
|
||||
int total_logical_cpus;
|
||||
int flags;
|
||||
char brand[48];
|
||||
int sockets;
|
||||
int l2_cache;
|
||||
int l3_cache;
|
||||
char brand[64];
|
||||
};
|
||||
|
||||
extern struct cpu_info cpu_info;
|
||||
@@ -40,7 +44,6 @@ enum cpu_flags {
|
||||
};
|
||||
|
||||
|
||||
|
||||
void cpu_init();
|
||||
int get_optimal_threads_count();
|
||||
int affine_to_cpu_mask(int id, unsigned long mask);
|
||||
|
||||
Reference in New Issue
Block a user