Browse Source

Use blank_get_statline_before for GPU devices that don't support adl monitoring.

nfactor-troky
Con Kolivas 12 years ago
parent
commit
5d581cb5d7
  1. 2
      cgminer.c
  2. 3
      driver-opencl.c
  3. 2
      miner.h

2
cgminer.c

@ -6370,7 +6370,7 @@ static void noop_reinit_device(struct cgpu_info __maybe_unused *cgpu)
{ {
} }
static void blank_get_statline_before(char *buf, struct cgpu_info __maybe_unused *cgpu) void blank_get_statline_before(char *buf, struct cgpu_info __maybe_unused *cgpu)
{ {
tailsprintf(buf, " | "); tailsprintf(buf, " | ");
} }

3
driver-opencl.c

@ -1287,7 +1287,8 @@ static void get_opencl_statline_before(char *buf, struct cgpu_info *gpu)
else else
tailsprintf(buf, " "); tailsprintf(buf, " ");
tailsprintf(buf, "| "); tailsprintf(buf, "| ");
} } else
gpu->drv->get_statline_before = &blank_get_statline_before;
} }
#endif #endif

2
miner.h

@ -268,6 +268,8 @@ struct gpu_adl {
}; };
#endif #endif
extern void blank_get_statline_before(char *buf, struct cgpu_info __maybe_unused *cgpu);
struct api_data; struct api_data;
struct thr_info; struct thr_info;
struct work; struct work;

Loading…
Cancel
Save