zefir
e0fec35751
modularized logging, support for priority based logging
...
Functions related to logging are extracted into dedicated source files
for better maintainability.
The existing low-level logging API is extended with a generalized scheme
providing log functions log_{error, warning, notice, info, debug} that
log messages based on a global opt_log_level.
opt_log_level for now is set to LOG_NOTICE and might be modified via
command line options or config files in future releases.
2012-02-11 20:26:25 +01: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
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
ckolivas
55f693a80c
Revert Makefile.am component for easier merge of upcoming changes.
2012-02-04 09:59:20 +11:00
Con Kolivas
ebaa2be1df
Update poclbm kernel for better performance on GCN and new SDKs with bitalign support when not BFI INT patching.
...
Update phatk kernel to work properly for non BFI INT patched kernels, providing support for phatk to run on GCN and non-ATI cards.
2012-02-03 18:19:39 +11:00
Con Kolivas
c0e8819d86
Fix bitforce failing to build into cgminer.
2012-01-31 00:20:58 +11:00
Luke Dashjr
5dfc8b694f
BitForce FPGA support
...
cgminer will scan for and mine BitForce FPGAs on USB ports by providing the
new --scan-serial <device> option, or autodetect them by searching
/dev/serial/by-id for *BitFORCE_SHA256*
2012-01-19 01:24:37 -05:00
ckolivas
332b3ca1e6
Configure out building and support of all CPU mining code unless --enable-cpumining is enabled.
2012-01-19 16:56:42 +11:00
Con Kolivas
743d81b36b
Adjust column width of A/R/HW to be the maximum of any device and align them.
2012-01-01 20:25:04 +11:00
Con Kolivas
f67111da2d
Include API examples in distribution tarball.
2011-12-29 10:22:16 +11:00
Kano
2358056606
API v0.1
2011-11-23 14:35:49 +11:00
Con Kolivas
d5231ea57f
Fix build error with -ldl being passed to LDFLAGS instead of LDADD and update configure output.
2011-11-11 22:21:30 +11:00
Con Kolivas
2a19153d90
Add example.conf to makefile dist.
2011-10-17 14:07:38 +11:00
Con Kolivas
5133cf5b06
Add altivec 4 way support courtesy of Gilles Risch.
2011-10-09 12:22:00 +11:00
Con Kolivas
c04abf5cbe
Include polarssl implementation of sha256 (sha2) and remove dependency on openssl.
2011-09-23 09:44:09 +10:00
UukGoblin
88fd7c1d38
use ATISTREAMSDKROOT env variable if available...
...
... to determine the location of OpenCL libs
clean up the use of OPENCL_* vars in autostuff
2011-09-15 11:34:39 +10:00
Con Kolivas
c8d40fb434
Win32 does not use dlopen so link in -ldl only when not on win32 and display what ldflags are being passed on ./configure.
2011-09-07 09:33:43 +10:00
Con Kolivas
ffa68cdaab
Ideally we should like with -ldl for dlopen() dlclose().
2011-09-06 22:48:57 +10:00
Con Kolivas
a62b4e3e22
Remove unused LIBCURL_CPPFLAGS variable which should help cgminer compile on other platforms.
2011-09-06 13:45:02 +10:00
Con Kolivas
a1ba15fb52
Fix pacakaging missing adl headers and build failure without adl sdk headers installed.
2011-09-06 09:01:24 +10:00
Con Kolivas
a2f6bb77ad
Add new needed text files to distribution.
2011-09-05 19:36:12 +10:00
Con Kolivas
d57cd91955
Implement ATI ADL support for GPU parameter monitoring now and setting later (temp, fan, clocks etc.).
...
Check for the presence of the ADL header files in ADL_SDK.
Import adl_functions.h from amd overdrive ctrl.
Implement a setup function that tries to detect GPUs that support the ADL and link in the parameters into the gpus struct.
Put a summary of monitoring information from the GPU menu.
2011-09-03 10:53:35 +10:00
Con Kolivas
67dff290f7
Doc updates.
2011-08-26 13:45:45 +10:00
Con Kolivas
7dc3db2340
Implement SSE2 32 bit assembly algorithm as well.
2011-08-25 13:04:15 +10:00
Con Kolivas
ebf7999305
Include uthash.h in distro.
2011-08-25 12:32:42 +10:00
Con Kolivas
6d10ef2f6e
Bump version numbers of kernels to indicate slightly different versions.
2011-08-22 10:17:23 +10:00
Con Kolivas
f062765c94
Explicitly link in ws2_32 on the windows build and update README file on how to compile successfully on windows.
2011-08-20 10:08:59 +10:00
Con Kolivas
0f782ba6bd
Update poclbm kernel to FF sized mask and only check that range.
2011-08-17 15:47:18 +10:00
Con Kolivas
c40f51c7c1
Move to cgminer style buffer return and file naming convention and fix a compiler warning.
2011-08-17 15:06:59 +10:00
Con Kolivas
3f48a97a4f
Include correct files for dist.
2011-08-17 14:54:11 +10:00
Con Kolivas
58eb4d5859
Add bench_block to makefile.
2011-08-16 17:13:10 +10:00
Diogo Franco
44faebecca
Fix the Makefile.am for the last commit
...
That LIBCURL_CHECK_CONFIG macro apparently did some things wrong
too, like adding libraries to a non-standard "LIBCURL" variable
instead of "LIBCURL_LIBS". Fixes linking after the previous commit.
2011-07-29 00:04:39 -03:00
Con Kolivas
116a9dc025
Update phatk kernel to one with new parameters for slightly less overhead again.
...
Make the queue kernel parameters call a function pointer to select phatk or poclbm.
2011-07-23 14:17:25 +10:00
Con Kolivas
0aa9887300
Add an sse4 algorithm to CPU mining.
2011-07-18 11:27:58 +10:00
Con Kolivas
a7707a26cb
Rename the poclbm file to ensure a new binary is built since.
2011-07-18 10:42:24 +10:00
Con Kolivas
b913bc5988
Update makefile to suit new kernel.
2011-07-15 13:06:13 +10:00
Con Kolivas
857902a13d
Commit a new phatk kernel renamed to force new binary building and add proper support in makefiles.
2011-07-12 22:23:03 +10:00
Ycros
386489a147
Added support for pdcurses.
2011-07-11 14:56:17 +10:00
Con Kolivas
90839cdf5a
Implement a completely curses based display and don't output to stderr when log is enabled unless it's redirected away from the terminal.
2011-07-11 13:41:31 +10:00
Rusty Russell
a0d14d1564
ccan: add ccan/opt and dependencies to build.
2011-07-06 16:47:25 +09:30
Con Kolivas
91f9c527ba
Rename code and application binary to cgminer version 1.0.9 preempting version 1.1.0, moving main code to main.c.
2011-07-04 20:33:31 +10:00
Ycros
ec8319176e
Build on windows using mingw32.
2011-07-04 19:56:27 +10:00
ckolivas
3983f1b9c3
Breaks nvidia building. Roll back for now.
...
Revert "configure.ac, Makefile.am: Allow setting of OpenCL location"
This reverts commit a9893d818dac53cb52c2ed06ece59195228f44d9.
2011-07-04 19:56:26 +10:00
Tom Rini
2a8475b5bd
configure.ac, Makefile.am: Allow setting of OpenCL location
...
Add two new configure flags, --with-opencl-libdir and --with-opencl-inc
to specify where OpenCL headers and libraries exist. This now adds
a test for the OpenCL header file and makes not finding the library
or headers a fatal error.
Signed-off-by: Tom Rini <trini@kernel.crashing.org>
2011-07-04 19:56:26 +10:00
Con Kolivas
dde7039726
Merge gpumining from oclmine. Unstable.
2011-07-04 19:46:39 +10:00
Christian Ludwig
feb02dfb62
Fix libcurl include path
...
Fix the include path for libcurl, if it was installed in a location
where gcc does not look by default. The variable is declared in
the LIBCURL_CHECK_CONFIG m4 macro.
2011-07-04 19:46:38 +10:00
fleger
a9a2840d81
Proper platform detection.
...
Use target instead of host.
Fix compilation for non win32 and non x86_64 platforms.
2011-04-11 13:04:29 -04:00
Jeff Garzik
0258fae450
Fix Windows build, that broke with yasm integration
2011-03-14 23:36:28 -04:00
Jeff Garzik
4f7a51e9ed
Move all RPC I/O to separate thread.
2011-03-14 23:17:34 -04:00
Jeff Garzik
aaf46802be
Makefile.am: neaten minerd sources list
2011-03-14 20:18:03 -04:00
Mark Crichton
96d2287c72
X86_64 SSE2 support for Linux
2011-03-06 23:49:00 -05:00
Jeff Garzik
6d2882937f
Add support for JSON-format configuration file
2011-02-13 03:04:02 -05:00
Jeff Garzik
74bb196296
Add Crypto++ sha256 implementation (C only, ASM elided for now)
2010-11-28 20:16:22 -05:00
Jeff Garzik
339ddf4d75
Move sha256_generic into its own .o build output. Const-ify midstate param.
2010-11-27 04:31:32 -05:00
Jeff Garzik
e2eeaaf75b
Add experimental (read: probably broken) VIA padlock support.
2010-11-27 01:29:56 -05:00
Jeff Garzik
c639149977
Add tcatm's 4way SSE2 sha256 implementation.
2010-11-26 19:04:48 -05:00
Jeff Garzik
0a333110f7
Build on Windows using mingw32.
2010-11-26 16:28:12 -05:00
Jeff Garzik
4575851ea3
Build jansson 1.3 in-tree, if not present on system.
2010-11-26 16:13:32 -05:00
Jeff Garzik
750deb7a99
Makefile.am: add compat.h, to correct 'make distcheck' failures
2010-11-26 15:52:06 -05:00
Jeff Garzik
59f1fb2ec8
Link with pthreads lib, if present. Remove GNU-specific asprintf usage.
2010-11-26 15:20:54 -05:00
Jeff Garzik
945be82ea1
Move utility routines to util.c.
2010-11-25 04:03:59 -05:00
Jeff Garzik
1032fec15b
Allocate work struct once, on stack, rather than alloc+free for each getwork.
2010-11-25 01:16:34 -05:00
Jeff Garzik
a614823fa7
Remove unused OpenSSL dependency.
...
Also, turn a few strings into #define'd constants.
2010-11-25 01:02:53 -05:00
Jeff Garzik
82fff8f4cf
Do not build sha256_generic module separate from cpu-miner.c. Version 0.1.1.
2010-11-24 19:34:59 -05:00
Jeff Garzik
702e2ac811
Convert over to autotools. Release version 0.1.
2010-11-24 19:31:12 -05:00