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

120 Commits

Author SHA1 Message Date
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
Con Kolivas
196e8a0f76 Fix kernel selection process and build error. 2012-02-11 11:48:11 +11:00
Philip Kaufmann
47a09ceab8 added OpenCL >= 1.1 detection code, in preparation of OpenCL 1.1 global offset parameter support 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
ckolivas
53c1e9ae37 Allow the OpenCL platform ID to be chosen with --gpu-platform. 2012-02-04 15:15:57 +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
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
82af288e69 Revert "Fix various harmless warnings."
This reverts commit a4b67f030f.
2012-01-29 22:57:29 +11:00
Con Kolivas
a4b67f030f Fix various harmless warnings. 2012-01-29 21:06:17 +11:00
Con Kolivas
b8f845b478 Display information about the opencl platform with verbose enabled. 2012-01-29 16:43:38 +11:00
ckolivas
5d5584f80c Explicitly check for nvidia in opencl platform strings as well. 2012-01-29 16:31:03 +11:00
Con Kolivas
a3d90f84e2 Default to poclbm kernel on Tahiti (7970) since phatk does not work, even though performance is sub-standard so that at least it will mine successfully
by default.
2012-01-29 11:01:17 +11:00
Con Kolivas
31f6e8c782 Unset prog_built after it is patched because it needs rebuilding. 2012-01-28 17:06:28 +11:00
Con Kolivas
1e5035497b Retain cl program after every possible place we might build the program. 2012-01-28 16:29:19 +11:00
Con Kolivas
25caca9086 Revert "Don't explicitly retain the cl program as it is of no benefit to do so and may lead to problems when trying to release the program."
This reverts commit 32910463a3.

Turns out this does help.
2012-01-28 16:26:53 +11:00
Con Kolivas
32910463a3 Don't explicitly retain the cl program as it is of no benefit to do so and may lead to problems when trying to release the program. 2012-01-26 20:53:35 +11:00
Con Kolivas
d18d55649f Do not attempt to build the program that becomes the kernel twice. This could have been leading to failures on initialising cl. 2012-01-26 20:39:35 +11:00
Con Kolivas
c87460b34e Typo. 2012-01-26 19:42:57 +11:00
Con Kolivas
2ecabd8535 Some opencl compilers have issues with no spaces after -D in the compiler options. 2012-01-26 19:38:15 +11:00
Con Kolivas
77e9b1c2e8 Use calloced stack memory for CompilerOptions to ensure sprintf writes to the beginning of the char. 2012-01-26 13:06:39 +11:00
Con Kolivas
d7aac25489 Whitelist 79x0 cards to prefer no vectors as they perform better without. 2012-01-26 11:44:42 +11:00
Con Kolivas
3d4cfce8df Instead of using the BFI_INT patching hack on any device reporting cl_amd_media_ops, create a whitelist of devices that need it.
This should enable GCN architectures (ATI 79xx cards) to work properly.
2012-01-24 20:23:44 +11:00
Con Kolivas
6442c1aba0 Style police. 2012-01-22 20:36:57 +11:00
Con Kolivas
0719d40704 Clean up on failure to load a binary kernel. 2012-01-22 17:09:06 +11:00
Con Kolivas
fb0c580b62 Go to kernel build should we fail to clCreateProgramWithBinary instead of failing on that device.
Should fix the windows problems with devices not initialising.
2011-10-15 13:29:44 +11:00
Con Kolivas
2053de6d59 Add the directory name from the arguments cgminer was called from as well to allow it running from a relative pathname. 2011-09-06 10:11:34 +10:00
Con Kolivas
5848c11004 Confusion over the variable name for number of devices was passing a bogus value which likely was causing the zero sized binary issue. 2011-08-29 00:16:58 +10:00
Con Kolivas
3567b69e5e Remove fragile source patching for bitalign, vectors et. al and simply pass it with the compiler options. 2011-08-26 10:20:02 +10:00
Con Kolivas
3d5f555407 Allow a custom kernel path to be entered on the command line. 2011-08-25 14:42:03 +10:00
Con Kolivas
413d97096d Make cgminer look in the install directory for the .cl files making make install work correctly. 2011-08-25 13:59:46 +10:00
Con Kolivas
48180b697b Fail gracefully if unable to open the opencl files. 2011-08-25 13:10:53 +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
4beade3772 Retain the program immediately after it's created from source. 2011-08-18 22:42:37 +10:00
Con Kolivas
082e20df5f Explicitly tell the compiler to retain the program to minimise the chance of the zero sized binary errors. 2011-08-18 22:34:03 +10:00