1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-11 07:17:58 +00:00
Commit Graph

26 Commits

Author SHA1 Message Date
ckolivas
c531f1bd04 Use the max_hashes variable to determine when to abandon work. 2012-02-15 10:34:26 +11:00
ckolivas
b36d857d9b Use the max_hashes variable to increment nonce only in dynamic mode and use the all time highest value. 2012-02-15 10:03:18 +11:00
ckolivas
29f0b2714c The amount of work scanned can fluctuate when intensity changes and since we do this one cycle behind, we increment the work more than enough to prevent repeating work. 2012-02-15 08:51:59 +11:00
Con Kolivas
49c28b3929 Use PreVal4addT1 instead of PreVal4 in poclbm kernel. 2012-02-15 00:29:07 +11:00
Con Kolivas
5c4df1309a Import PreVal4 and PreVal0 into poclbm kernel. 2012-02-15 00:29:07 +11:00
Con Kolivas
f5c296785f Import more prepared constants into poclbm kernel.
Conflicts:

	poclbm120213.cl
2012-02-15 00:29:07 +11:00
Con Kolivas
60f8ccb313 Use local and group id on poclbm kernel as well. 2012-02-13 12:51:24 +11:00
Con Kolivas
56907db2d6 Fix harmless warnings with -Wsign-compare to allow cgminer to build with -W. 2012-02-12 18:21:30 +11:00
zefir
713e8be629 move CPU chipset specific optimization into device-cpu 2012-02-11 20:25:41 +01:00
Con Kolivas
52bb99c3ea Fix double definition of A0 B0 to zeroA zeroB. 2012-02-11 21:42:02 +11:00
Con Kolivas
405a2120f8 Remove unnecessary check for opt_debug on every invocation of applog at LOG_DEBUG and place the check in applog(). 2012-02-11 20:11:18 +11:00
Luke Dashjr
543265d66a Generalize --temp-cutoff and implement support for reading temperature from BitFORCE FPGAs 2012-02-10 22:14:27 -05:00
Con Kolivas
3d4c78ca89 Leave diakgcn and diablo kernels as silent options for now since they don't work. 2012-02-11 11:48:58 +11:00
ckolivas
59d3d0112b Implement diablo kernel support and try to make it work. 2012-02-11 11:48:12 +11:00
ckolivas
95a989da4d Conflicting entries of cl_kernel may have been causing problems, and automatically chosen kernel type was not being passed on. Rename the enum to cl_kernels and store the chosen kernel in each clState. 2012-02-11 11:48:12 +11:00
Philip Kaufmann
17feecac8c queue_phatk_kernel now uses CL_SET_VARG() for base-nonce(s), too 2012-02-11 11:48:11 +11:00
Con Kolivas
80cf0fd407 Diakgcn should be using the modified PreVal4 which includes T1. 2012-02-11 11:48:11 +11:00
ckolivas
033913ca8e First working port of the diakgcn kernel. 2012-02-11 11:48:11 +11:00
ckolivas
cb7145b179 Add basic build ability with diakgcn and put all kernel names in configure.ac to avoid changing them in mutliple places. 2012-02-11 11:48:11 +11:00
Con Kolivas
04b6ec948f Curses needs to be included before stdbool to compile properly with pdcurses on mingw32. 2012-02-06 18:41:15 +11:00
Con Kolivas
1dff4297fa Don't send a ping to a dynamic device if it's not enabled as that will just enable it for one pass and then disable it again. 2012-02-06 17:43:24 +11:00
Con Kolivas
22526399d4 Remove unused header include. 2012-02-06 09:22:01 +11:00
Con Kolivas
36d2fa485c Silence unused parameter warnings. 2012-02-05 22:39:28 +11:00
ckolivas
a4f47812ff Iterate over all platforms displaying their information and number of devices when --ndevs is called. 2012-02-04 14:47:23 +11:00
ckolivas
cda798d91b Only enable curses on failure if curses is desired. 2012-02-04 13:05:28 +11:00
zefir
e0b0a6c030 Modularize code: main.c -> device-cpu + device-gpu
This patch is an initial attempt to re-structure cgminer source
code from its monolithic design (with nearly all code being
concentrated in main.c) to a more modular one.

In this first stage, the conditionally compiled functions for
GPU and CPU mining were extracted into dedicated files:
 * device-cpu.h and device-cpu.c covering WANT_CPUMINE functions
 * device-gpu.h and device-gpu.c covering HAVE_OPENCL functions

The main.c file is left untouched as reference, while the
remainder without the extracted parts is located in cgminer.c.

The Makefile.am has been updated to use the re-structured
source files for the build.

Above pure re-structuring *NO* functional modifications were
made. The sources were tested to compile and run on on a
current Linux system with working CPU and GPU mining
(Bitforce not tested due to loack of hardware).
2012-02-04 10:23:06 +11:00