1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-09 14:28:12 +00:00
Commit Graph

153 Commits

Author SHA1 Message Date
Philip Kaufmann
f479be0700 add goffset support for diakgcn with -v 1 and update kernel version 2012-04-27 09:58:30 +02:00
Con Kolivas
9a3ae2660e Add support for latest ATI SDK on windows. 2012-04-27 10:22:53 +10:00
Con Kolivas
bb31988347 Detect poorly performing combination of SDK and phatk kernel and add verbose warning at startup. 2012-04-25 11:41:35 +10:00
Con Kolivas
9175e4f25c Display all OpenCL devices when -n is called as well to allow debugging of differential mapping of OpenCL to ADL. 2012-04-23 17:56:31 +10:00
Con Kolivas
6274fbe727 Change the preferred vector width to 1 for Tahiti only, not all poclbm kernels. 2012-03-30 09:32:42 +11:00
Con Kolivas
621bcca7f5 Use global offset parameter to diablo and poclbm kernel ONLY for 1 vector kernels. 2012-03-27 22:58:46 +11:00
Con Kolivas
39395eb1e0 Use poclbm preferentially on Tahiti now regardless of SDK. 2012-03-27 22:58:46 +11:00
Con Kolivas
edb070c833 Fixes. 2012-02-24 14:14:05 +11:00
Con Kolivas
fb077c6d59 Pass vectors * worksize to kernel to avoid one op. 2012-02-24 14:14:04 +11:00
Con Kolivas
709c4cd8e1 Use diablo kernel on all future SDKs for Tahiti and set preferred vector width to 1 on poclbm kernel only. 2012-02-23 20:24:32 +11:00
ckolivas
dfcb98debf Use the SDK and hardware information to choose good performing default kernels. 2012-02-23 00:45:40 +11:00
ckolivas
d3ad87f5d2 Allow writing of multiple worksizes to the configuration file. 2012-02-22 20:13:23 +11:00
ckolivas
1b1fa5cd89 Allow writing of multiple vector sizes to the configuration file. 2012-02-22 20:08:29 +11:00
ckolivas
994cd77501 Allow writing of multiple kernels to the configuration file. 2012-02-22 20:01:09 +11:00
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
bf3a9f94f1 Unintentionally dropped the device name from the binary filenames. Reinstate. 2012-02-22 14:42:20 +11:00
Con Kolivas
5d23d70f68 As all kernels will be new versions it's an opportunity to change the .bin format and make it simpler. Specifying bitalign is redundant and long can be
l.
2012-02-22 14:14:26 +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
e9c3d7309a Tahiti prefers worksize 64 with poclbm. 2012-02-19 18:32:56 +11:00
Con Kolivas
30936f17e3 No need to expressly retain the opencl program now that the zero binary issue is fixed. 2012-02-18 23:28:41 +11:00
Con Kolivas
810ad04578 More copyright updates. 2012-02-18 23:16:08 +11:00
Con Kolivas
22d3034e10 Show error code on any opencl failure status. 2012-02-18 23:13:45 +11:00
Con Kolivas
be9db9ce63 Copyright updates. 2012-02-18 23:00:21 +11:00
Con Kolivas
0b6e35cda9 Add detection for version 898.1 SDK as well but only give SDK 2.6 warning once on startup instead of with each device initialisation. 2012-02-18 22:49:49 +11:00
Con Kolivas
67c4ada1b7 Provide warning on each startup about sdk 2.6 and decrease poclbm kernel selection to LOG_INFO. 2012-02-16 01:10:11 +11:00
Con Kolivas
b4c86ba615 Give SDK 2.6 warning only on building a kernel for !GCN bitalign devices. 2012-02-16 00:48:34 +11:00
Con Kolivas
728e3d4398 Revert "Automatically choose phatk kernel for bitalign non-gcn ATI cards, and then only select poclbm if SDK2.6 is detected."
This reverts commit e7fdadfc8f.

Broke kernel loading.
2012-02-16 00:45:08 +11:00
ckolivas
e7fdadfc8f Automatically choose phatk kernel for bitalign non-gcn ATI cards, and then only select poclbm if SDK2.6 is detected. 2012-02-15 14:52:29 +11:00
ckolivas
6a78594618 Make SDK 2.6 warning and advice big and bold. 2012-02-15 14:47:02 +11:00
Con Kolivas
23c01bc79c Make output buffer write only as per Diapolo's suggestion. 2012-02-13 13:19:04 +11:00
Con Kolivas
b2b5083bda Microoptimise phatk kernel on return code. 2012-02-13 12:22:35 +11:00
Con Kolivas
fd05341a87 Do not loop indefinitely setting poclbm kernel to load a binary. 2012-02-13 10:39:26 +11:00
Con Kolivas
d689cfbdf6 Try to load a binary if we've defaulted to the poclbm kernel on SDK2.6 2012-02-13 10:06:26 +11:00
Con Kolivas
3057b701e7 Use the poclbm kernel on SDK2.6 with bitalign devices only if there is no binary available. 2012-02-13 09:59:29 +11:00
Con Kolivas
2c33f12255 Whitelist ATI SDK 2.6 to use the poclbm kernel by default. 2012-02-13 08:34:44 +11:00
Con Kolivas
fb99c8d52a The longstanding generation of a zero sized binary appears to be due to the OpenCL library putting the binary in a RANDOM SLOT amongst 4 possible binary
locations. Iterate over each of them after building from source till the real binary is found and use that.
2012-02-12 21:38:45 +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
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
Con Kolivas
60c701457a Retain cl program after successfully loading a binary image. 2012-02-11 16:41:41 +11:00
Con Kolivas
55bd031db3 Variable unused after this so remove setting it. 2012-02-11 16:38:55 +11:00
Con Kolivas
1c1b8bec9a BFI INT patching is not necessarily true on binary loading of files and not true on ATI SDK2.6+. Report bitalign instead. 2012-02-11 15:58:07 +11:00
ckolivas
f2d5db0c77 Use only working kernels by default. 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
ckolivas
e6cf96adfa ALlow much longer filenames for kernels to load properly. 2012-02-11 11:48:12 +11:00
ckolivas
4822cca72b Allow different kernels to be used by different devices and fix the logic fail of overcorrecting on last commit with !strstr. 2012-02-11 11:48:11 +11:00