1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-01 18:55:36 +00:00
Commit Graph

211 Commits

Author SHA1 Message Date
Con Kolivas
578fabe07c Do not perform bfi int patching for opencl1.2 or later. 2013-10-12 16:54:39 +11:00
Con Kolivas
466d3beca0 Provide a --disable-libcurl config option to build support for stratum mining only. 2013-09-21 22:49:28 +10:00
Kano
383eeabc71 ocl.c fix applog warnings on windows 2013-06-16 18:39:09 +10:00
Con Kolivas
b196d4fa0c Support more shares to be returned for scrypt mining. 2013-05-11 16:19:02 +10:00
Kano
54d5d26095 ocl correct applog typing 2013-05-02 23:41:51 +10:00
Con Kolivas
2643ad1b22 Use only the one jump in ocl.c to bypass binary saves for osx opencl. 2013-04-25 00:16:09 +10:00
Con Kolivas
0a8f584909 Initialise variables not set on OSX in ocl.c. 2013-04-25 00:09:09 +10:00
Con Kolivas
9aae2256d3 Bypass attempting to read and save binary files on OSX to avoid crashes on >1 GPU. 2013-04-24 23:53:44 +10:00
Con Kolivas
57e5bfbb25 Set default ocl work size for scrypt to 256. 2013-04-21 09:36:49 +10:00
ckolivas
6ffba7e9d8 Convert error getting device IDs in ocl code to info log level only since multiple platforms may be installed and the error is harmless there. 2013-04-17 22:03:00 +10:00
ckolivas
a797898fc3 Unnecessary extra array in ocl code. 2013-04-17 22:01:38 +10:00
Kano
ed480de9c1 LTC text typo 2013-04-03 09:57:16 +11:00
Con Kolivas
132ee4c981 Do not scan other gpu platforms if one is specified. 2013-03-21 14:56:07 +11:00
Con Kolivas
584fc013ab Use a new algorithm for choosing a thread concurrency when none or no shader value is specified for scrypt. 2013-03-15 22:31:46 +11:00
Con Kolivas
d0f18e83ad Do not round up the bufsize to the maximum allocable with scrypt. 2013-03-15 22:00:52 +11:00
Con Kolivas
3c3fbdce1c Remove the rounding-up of the scrypt padbuffer which was not effectual and counter-productive on devices with lots of ram, limiting thread concurrencies and intensities. 2013-03-15 21:48:48 +11:00
Con Kolivas
1c6d8a36d8 bufsize is an unsigned integer, make it so for debug. 2013-03-15 19:43:38 +11:00
Con Kolivas
767d6df1a5 Whitelist AMD APP SDK 2.8 for diablo kernel. 2013-03-09 16:45:58 +11:00
Con Kolivas
87b62bde43 Cope with the highest opencl platform not having usable devices. 2013-03-09 16:19:00 +11:00
Con Kolivas
266d31271a Make the numbuf larger to accept larger scrypt parameters. 2013-02-10 15:07:49 +11:00
Con Kolivas
69494c12ed BeaverCreek doesn't like BFI INT patching. 2012-12-10 15:38:21 +11:00
Con Kolivas
25c39c96bb Ease the checking on allocation of padbuffer8 in the hope it works partially anyway on an apparently failed call. 2012-10-15 12:31:57 +11:00
Con Kolivas
cc3b693c6d Minor warning fixes. 2012-10-07 12:27:02 +11:00
Con Kolivas
40b747bae6 Put scrypt warning on separate line to avoid 0 being shown on windows as bufsize. 2012-10-07 10:08:45 +11:00
Con Kolivas
d91af893c8 Use correct sdk version detection for SDK 2.7 2012-08-28 18:08:39 +10:00
Con Kolivas
69983b778b Revert "Pick worksize 256 with Cypress if none is specified."
This reverts commit 482322a4b7.

Worksize 256 was only helpful on cypress with ultra-low memory speeds with old SDKs and the new kernels require higher memory clocks, having the opposite net effect.
2012-08-28 17:19:38 +10:00
Con Kolivas
4fbe5bed15 OpenCL 1.0 does not have native atomic_add and extremely slow support with atom_add so detect opencl1.0 and use a non-atomic workaround. 2012-08-23 23:25:32 +10:00
Con Kolivas
482322a4b7 Pick worksize 256 with Cypress if none is specified. 2012-08-23 12:47:28 +10:00
Con Kolivas
be06cf7083 Give warning with sdk2.7 and phatk as well. 2012-08-23 12:44:42 +10:00
Con Kolivas
cce19d9005 Whitelist sdk2.7 for diablo kernel as well. 2012-08-23 12:42:10 +10:00
Con Kolivas
fc44b6d7a1 Use different variables for command line specified lookup gap and thread concurrency to differentiate user defined versus auto chosen values. 2012-08-05 15:32:44 +10:00
Con Kolivas
97aa6ea492 Fix build error without scrypt enabled. 2012-07-29 19:13:45 +10:00
Con Kolivas
43752ee58c Limit thread concurrency for scrypt to 5xshaders if shaders is specified. 2012-07-26 16:12:45 +10:00
Con Kolivas
da1b996a39 Simplify repeated use of gpus[gpu]. in ocl.c 2012-07-26 16:10:21 +10:00
Con Kolivas
ea10b08dce Find the nearest power of 2 maximum alloc size for the scrypt buffer that can successfully be allocated and is large enough to accomodate the thread concurrency chosen, thus mapping it to an intensity. 2012-07-25 22:02:14 +10:00
Con Kolivas
9a6c082ad1 Make the thread concurrency and lookup gap options hidden on the command line and autotune parameters with a newly parsed --shaders option. 2012-07-24 20:27:37 +10:00
Con Kolivas
3a0d60cfe1 Always create the largest possible padbuffer for scrypt kernels even if not needed for thread_concurrency, giving us some headroom for intensity levels. 2012-07-23 21:30:30 +10:00
Con Kolivas
d8f81c18ee Use the detected maximum allocable memory on a GPU to determine the optimal scrypt settings when lookup_gap and thread_concurrency parameters are not given. 2012-07-23 17:51:57 +10:00
Con Kolivas
89eb1fa393 Check the maximum allocable memory size per opencl device. 2012-07-23 17:41:31 +10:00
Con Kolivas
5087ff9069 Add debugging output if buffer allocation fails for scrypt and round up bufsize to a multiple of 256. 2012-07-23 16:37:13 +10:00
Con Kolivas
1711b4eb77 Display size of scrypt buffer used in debug. 2012-07-22 00:58:09 +10:00
Con Kolivas
39f7d2fa74 Allow lookup gap and thread concurrency to be passed per device and store details in kernel binary filename. 2012-07-21 17:31:06 +10:00
Con Kolivas
7d53fba1ad Reinstate GPU only opencl device detection. 2012-07-21 02:49:50 +10:00
Con Kolivas
d13a3f1d50 Decrease lookup gap to 1. Does not seem to help in any way being 2. 2012-07-21 02:47:27 +10:00
Con Kolivas
d72add9af3 Send correct values to scrypt kernel to get it finally working. 2012-07-20 16:16:18 +10:00
Con Kolivas
3e61db105d Create command queue before compiling program in opencl. 2012-07-18 21:58:27 +10:00
Con Kolivas
471daecb5f Initialise mdplatform. 2012-07-16 20:15:27 +10:00
Con Kolivas
428d5e5d4d Limit scrypt to 1 vector. 2012-07-16 13:22:35 +10:00
Con Kolivas
a9a0bba18b Set the correct data for cldata and prepare for pad8 fixes. 2012-07-16 11:53:18 +10:00
Con Kolivas
04edf4bfa2 Temporarily set opencl to use all devices to allow debugging of scrypt kernel rapidly. 2012-07-15 13:40:56 +10:00