Skip to content

Commit

Permalink
Merge commit 'eeb135172' into bfgminer
Browse files Browse the repository at this point in the history
  • Loading branch information
luke-jr committed Jun 3, 2020
2 parents 8b52933 + eeb1351 commit 7cf2951
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 12 deletions.
8 changes: 4 additions & 4 deletions adl.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

#include <stdbool.h>

bool adl_active;
bool opt_reorder;
const int opt_targettemp;
const int opt_overheattemp;
extern bool adl_active;
extern bool opt_reorder;
extern const int opt_targettemp;
extern const int opt_overheattemp;
void init_adl(int nDevs);
float gpu_temp(int gpu);
int gpu_engineclock(int gpu);
Expand Down
2 changes: 2 additions & 0 deletions driver-cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@

BFG_REGISTER_DRIVER(cpu_drv)

struct cgpu_info *cpus;

#if defined(__linux) && defined(CPU_ZERO) /* Linux specific policy and affinity management */
#include <sched.h>
static inline void drop_policy(void)
Expand Down
1 change: 0 additions & 1 deletion driver-opencl.c
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,6 @@ char *print_ndevs_and_exit(int *ndevs)


struct cgpu_info gpus[MAX_GPUDEVICES]; /* Maximum number apparently possible */
struct cgpu_info *cpus;


/* In dynamic mode, only the first thread of each device will be in use.
Expand Down
4 changes: 0 additions & 4 deletions miner.c
Original file line number Diff line number Diff line change
Expand Up @@ -3762,10 +3762,6 @@ static int statusy;
static int devsummaryYOffset;
static int total_lines;
#endif
#ifdef USE_OPENCL
struct cgpu_info gpus[MAX_GPUDEVICES]; /* Maximum number apparently possible */
#endif
struct cgpu_info *cpus;

bool _bfg_console_cancel_disabled;
int _bfg_console_prev_cancelstate;
Expand Down
1 change: 0 additions & 1 deletion sha256_sse2_amd64.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ static uint32_t g_sha256_k[]__attribute__((aligned(0x100))) = {
const uint32_t sha256_init_sse2[8]__asm__("sha256_init_sse2")__attribute__((aligned(0x100))) =
{0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19};

__m128i g_4sha256_k[64];
__m128i sha256_consts_m128i[64]__asm__("sha256_consts_m128i")__attribute__((aligned(0x1000)));

bool scanhash_sse2_64(struct thr_info * const thr, struct work * const work,
Expand Down
1 change: 0 additions & 1 deletion sha256_sse2_i386.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ static uint32_t g_sha256_k[]__attribute__((aligned(0x100))) = {
const uint32_t sha256_32init[8]__attribute__((aligned(0x100))) =
{0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19};

__m128i g_4sha256_k[64];
__m128i sha256_consts_m128i[64]__asm__("sha256_consts_m128i")__attribute__((aligned(0x1000)));

bool scanhash_sse2_32(struct thr_info * const thr, struct work * const work,
Expand Down
2 changes: 1 addition & 1 deletion util.h
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ void cgsleep_us(int64_t us);
#define cgtimer_time(ts_start) timer_set_now(ts_start)
#define cgsleep_prepare_r(ts_start) cgtimer_time(ts_start)
void cgsleep_ms_r(cgtimer_t *ts_start, int ms);
void (*cgsleep_us_r)(cgtimer_t *ts_start, int64_t us);
extern void (*cgsleep_us_r)(cgtimer_t *ts_start, int64_t us);

static inline
int cgtimer_to_ms(cgtimer_t *cgt)
Expand Down

0 comments on commit 7cf2951

Please sign in to comment.