Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 727008
Collapse All | Expand All

(-)a/adl.h (-4 / +4 lines)
Lines 4-13 Link Here
4
4
5
#include <stdbool.h>
5
#include <stdbool.h>
6
6
7
bool adl_active;
7
extern bool adl_active;
8
bool opt_reorder;
8
extern bool opt_reorder;
9
const int opt_targettemp;
9
extern const int opt_targettemp;
10
const int opt_overheattemp;
10
extern const int opt_overheattemp;
11
void init_adl(int nDevs);
11
void init_adl(int nDevs);
12
float gpu_temp(int gpu);
12
float gpu_temp(int gpu);
13
int gpu_engineclock(int gpu);
13
int gpu_engineclock(int gpu);
(-)a/driver-cpu.c (+2 lines)
Lines 43-48 Link Here
43
43
44
BFG_REGISTER_DRIVER(cpu_drv)
44
BFG_REGISTER_DRIVER(cpu_drv)
45
45
46
struct cgpu_info *cpus;
47
46
#if defined(__linux) && defined(CPU_ZERO)  /* Linux specific policy and affinity management */
48
#if defined(__linux) && defined(CPU_ZERO)  /* Linux specific policy and affinity management */
47
#include <sched.h>
49
#include <sched.h>
48
static inline void drop_policy(void)
50
static inline void drop_policy(void)
(-)a/driver-opencl.c (-1 lines)
Lines 795-801 char *print_ndevs_and_exit(int *ndevs) Link Here
795
795
796
796
797
struct cgpu_info gpus[MAX_GPUDEVICES]; /* Maximum number apparently possible */
797
struct cgpu_info gpus[MAX_GPUDEVICES]; /* Maximum number apparently possible */
798
struct cgpu_info *cpus;
799
798
800
799
801
/* In dynamic mode, only the first thread of each device will be in use.
800
/* In dynamic mode, only the first thread of each device will be in use.
(-)a/miner.c (-4 lines)
Lines 3762-3771 static int statusy; Link Here
3762
static int devsummaryYOffset;
3762
static int devsummaryYOffset;
3763
static int total_lines;
3763
static int total_lines;
3764
#endif
3764
#endif
3765
#ifdef USE_OPENCL
3766
struct cgpu_info gpus[MAX_GPUDEVICES]; /* Maximum number apparently possible */
3767
#endif
3768
struct cgpu_info *cpus;
3769
3765
3770
bool _bfg_console_cancel_disabled;
3766
bool _bfg_console_cancel_disabled;
3771
int _bfg_console_prev_cancelstate;
3767
int _bfg_console_prev_cancelstate;
(-)a/sha256_sse2_amd64.c (-1 lines)
Lines 48-54 static uint32_t g_sha256_k[]__attribute__((aligned(0x100))) = { Link Here
48
const uint32_t sha256_init_sse2[8]__asm__("sha256_init_sse2")__attribute__((aligned(0x100))) =
48
const uint32_t sha256_init_sse2[8]__asm__("sha256_init_sse2")__attribute__((aligned(0x100))) =
49
{0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19};
49
{0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19};
50
50
51
__m128i g_4sha256_k[64];
52
__m128i sha256_consts_m128i[64]__asm__("sha256_consts_m128i")__attribute__((aligned(0x1000)));
51
__m128i sha256_consts_m128i[64]__asm__("sha256_consts_m128i")__attribute__((aligned(0x1000)));
53
52
54
bool scanhash_sse2_64(struct thr_info * const thr, struct work * const work,
53
bool scanhash_sse2_64(struct thr_info * const thr, struct work * const work,
(-)a/sha256_sse2_i386.c (-1 lines)
Lines 48-54 static uint32_t g_sha256_k[]__attribute__((aligned(0x100))) = { Link Here
48
const uint32_t sha256_32init[8]__attribute__((aligned(0x100))) =
48
const uint32_t sha256_32init[8]__attribute__((aligned(0x100))) =
49
{0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19};
49
{0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19};
50
50
51
__m128i g_4sha256_k[64];
52
__m128i sha256_consts_m128i[64]__asm__("sha256_consts_m128i")__attribute__((aligned(0x1000)));
51
__m128i sha256_consts_m128i[64]__asm__("sha256_consts_m128i")__attribute__((aligned(0x1000)));
53
52
54
bool scanhash_sse2_32(struct thr_info * const thr, struct work * const work,
53
bool scanhash_sse2_32(struct thr_info * const thr, struct work * const work,
(-)a/util.h (-1 / +1 lines)
Lines 217-223 void cgsleep_us(int64_t us); Link Here
217
#define cgtimer_time(ts_start) timer_set_now(ts_start)
217
#define cgtimer_time(ts_start) timer_set_now(ts_start)
218
#define cgsleep_prepare_r(ts_start) cgtimer_time(ts_start)
218
#define cgsleep_prepare_r(ts_start) cgtimer_time(ts_start)
219
void cgsleep_ms_r(cgtimer_t *ts_start, int ms);
219
void cgsleep_ms_r(cgtimer_t *ts_start, int ms);
220
void (*cgsleep_us_r)(cgtimer_t *ts_start, int64_t us);
220
extern void (*cgsleep_us_r)(cgtimer_t *ts_start, int64_t us);
221
221
222
static inline
222
static inline
223
int cgtimer_to_ms(cgtimer_t *cgt)
223
int cgtimer_to_ms(cgtimer_t *cgt)

Return to bug 727008