1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-11 15:27:53 +00:00
Commit Graph

42 Commits

Author SHA1 Message Date
ckolivas
93efb726bb Allow multiple different kernels to be chosen per device. 2012-02-22 19:38:01 +11:00
ckolivas
a54f76061b Fix multiple work size entry. 2012-02-22 19:00:44 +11:00
Con Kolivas
26c59fbf0f Allow the worksize to be set per-device. 2012-02-22 16:59:28 +11:00
Con Kolivas
deff55c640 Allow different vectors to be set per device. 2012-02-22 16:54:06 +11:00
Con Kolivas
8f08a775ad Use any() in kernel output code and revert breakage of diakgcn kernel. 2012-02-22 14:11:19 +11:00
Con Kolivas
145f3c0b1d Put the nonce for each vector offset in advance, avoiding one extra addition in the kernel. 2012-02-22 12:18:25 +11:00
Con Kolivas
d1cddf8bad Update licensing to GPL V3. 2012-02-21 22:23:07 +11:00
Con Kolivas
00290a3e02 Select diablo kernel on all but GCN+SDK 2.6. 2012-02-21 21:48:10 +11:00
Con Kolivas
d85fc0f799 Begin import of DiabloMiner kernel. 2012-02-21 21:48:10 +11:00
Con Kolivas
89b32b1738 Officially support diakgcn in code and docs. 2012-02-20 09:28:01 +11:00
Con Kolivas
02295c69c8 Allow devices that are disabled due to overheating to be flagged as recovering instead of disabling them and re-enable them if they're below ideal
temperatures and --no-restart has not been set.
2012-02-19 20:19:47 +11:00
Con Kolivas
810ad04578 More copyright updates. 2012-02-18 23:16:08 +11:00
Con Kolivas
83dde50f9d Updates to diakgcn kernel courtesy of Philip Kaufmann <phil.kaufmann@t-online.de> 2012-02-18 15:17:50 +11:00
ckolivas
6693898710 Fix diakgcn kernel working by passing it D1A variable and renaming it in the cl code accordingly.
Renumber version consistent with change in code since it now works.
2012-02-16 17:31:22 +11:00
Con Kolivas
7d3635c7a4 Add message explaining 2nd thread disabling for dynamic mode and how to tune it. 2012-02-15 21:03:24 +11:00
ckolivas
c235c7e373 Allow the refresh interval to be adjusted in dynamic intensity with a --gpu-dyninterval parameter. 2012-02-15 14:35:13 +11:00
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