Con Kolivas
d49ecf198e
Set opt_scrypt drv max diff for correctness.
12 years ago
Con Kolivas
bc0e71448e
Make scrypt submission use the submit_nonce code, with nonces matching endianness.
12 years ago
James Z.M. Gao
c9ae715019
Compile CPU mining for win32 and win64
12 years ago
Kano
7abf30b2c0
distinguish between drv and it's id enum now called drv_id
12 years ago
Kano
212f32e5e0
Split thr_info array into control_thr and mining_thr pointers so more mining threads can be added later
12 years ago
Kano
a4e95cfa42
device_drv missing drv for cpu and incorrect test
12 years ago
Kano
a344deb6ac
rename device_api -> device_drv and all related api -> drv and add a device_drv->drv enum for identifying which driver each is
12 years ago
Con Kolivas
c99636f21b
Begin tearing down the old workio command queues by removing submit commands from there and submit them asynchronously via their own threads.
12 years ago
Con Kolivas
52de7170b2
Shut up some boring old cpu warnings.
12 years ago
Con Kolivas
598ee76d37
Hash1 is only used by the deprecated cpu mining code and never changes so remove it from the work struct and bypass needing to process the value for all other mining.
12 years ago
Kano
796f3906c1
WorkTime - multiple nonce per work and identify the work source
12 years ago
Con Kolivas
fdcaea1c13
Start with smaller amount of hashes in cpu mining to enable scrypt to return today sometime.
13 years ago
Con Kolivas
a5ebb71216
Add cpumining capability for scrypt.
13 years ago
ckolivas
5c7e03084a
Modify te scanhash API to use an int64_t and return -1 on error, allowing zero to be a valid return value.
13 years ago
Luke Dashjr
d4af2d0535
Turn work_restart array into a bool in thr_info
13 years ago
Con Kolivas
5cf4b7c432
Make the devices array a dynamically allocated array of pointers to allow unlimited devices.
13 years ago
Luke Dashjr
eca996547b
CGPU API for device kernel name
13 years ago
Luke Dashjr
303dbf4664
Abstract add_cgpu function, to handle device id numbering and devices array
13 years ago
Luke Dashjr
e131dfab31
Unify drivers as driver-*.c and add driver name to API
13 years ago
Con Kolivas
d1cddf8bad
Update licensing to GPL V3.
13 years ago
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.
13 years ago
zefir
713e8be629
move CPU chipset specific optimization into device-cpu
13 years ago
Con Kolivas
405a2120f8
Remove unnecessary check for opt_debug on every invocation of applog at LOG_DEBUG and place the check in applog().
13 years ago
Kano
95e1e195ac
sys/wait.h not required in windows
13 years ago
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).
13 years ago
ckolivas
7d97ed6dd6
Fix various build issues.
13 years ago