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
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
Phateus
d15d225a4c
Changed phatk version to 2.2
2011-08-17 14:53:17 +10:00
Con Kolivas
42d49ffdc7
Revert "Restart threads by abstracting out the clcontext initialisation and using that instead of probing all cards."
...
This reverts commit 8f186e61e250e71bd606cabb52795eaa0c9ad423.
2011-08-15 23:23:45 +10:00
Con Kolivas
cf543507c6
Revert "Preinitialise the devices only once on startup."
...
This reverts commit 071a0ad2f156ab492ebea6c5a60a1e49a62466de.
2011-08-15 23:23:39 +10:00
Con Kolivas
b1289a0159
Revert "Move the non cl_ variables into the cgpu info struct to allow creating a new cl state on reinit, preserving known GPU variables."
...
This reverts commit 28880d0dc7c601ee4479921502b66e913e38e36d.
2011-08-15 23:23:29 +10:00
Con Kolivas
28880d0dc7
Move the non cl_ variables into the cgpu info struct to allow creating a new cl state on reinit, preserving known GPU variables.
...
Create a new context from scratch in initCQ in case something was corrupted to maximise our chance of succesfully creating a new worker thread.
2011-08-13 20:54:20 +10:00
Con Kolivas
071a0ad2f1
Preinitialise the devices only once on startup.
2011-08-13 20:50:00 +10:00
Con Kolivas
8f186e61e2
Restart threads by abstracting out the clcontext initialisation and using that instead of probing all cards.
2011-07-30 16:59:54 +10:00
Con Kolivas
4365896ba2
Release the command queue created after we've copied the binary data.
2011-07-29 10:17:36 +10:00
Con Kolivas
283d5d2343
Create a command queue from the program created from source which allows us to flush the command queue in the hope it will not generate a zero sized binary any more.
2011-07-29 10:09:24 +10:00
Con Kolivas
2e37e3374e
Out of order command queue may fail on osx. Try without if it fails.
2011-07-24 10:58:03 +10:00
Con Kolivas
4cd12aa8e0
Fix harmless warning.
2011-07-24 09:04:56 +10:00
Con Kolivas
a9e1a25518
Make it possible to select the choice of kernel on the command line.
2011-07-23 15:15:46 +10: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
1c67f6068c
Sometimes the cl compiler generates zero sized binaries and only a reboot seems to fix it.
2011-07-21 10:07:29 +10:00
Con Kolivas
7b13812efb
Kernels are safely flushed in a way that allows out of order execution to work.
2011-07-21 09:58:28 +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
eea05c05b8
Update kernel with a shorter output path, and use 4k output buffer to match OS page sizes.
2011-07-15 13:04:25 +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
Con Kolivas
0c910673b2
Set max preferred size to 256 to prevent lying cards from crashing when no worksize is set.
2011-07-10 00:30:12 +10:00
Con Kolivas
826cc4800e
Opcode should be ULL.
2011-07-08 11:58:04 +10:00
Rusty Russell
efebee5ab8
Fix the case where there are no GPUs, and exit if they give errors.
...
If there are no GPUs, set nDevs to 0 not -1 (status is set to an
unhelpful -1001 here on my laptop, so we can't rely on a particular
status value).
Also, if nDevs is -1, exit rather than screwing up later.
2011-07-06 16:47:29 +09:30
Ycros
a636a6744f
Merge branch 'cgminer' of git://github.com/ckolivas/cgminer into cgminer
2011-07-05 21:31:41 +10:00
Ycros
52d6e7ca37
Fixed fread issues under Windows.
2011-07-05 21:31:24 +10:00
Con Kolivas
a93b22c630
Make it possible to build without GPU mining by picking up HAVE_OPENCL from config.h.
2011-07-05 17:34:54 +10:00
Con Kolivas
821da37c84
Add hardware name to binary kernel name allowing for unique kernels for different cards on the same machine.
2011-07-04 19:56:27 +10:00
Con Kolivas
13b43cfad1
Update copyright and authors.
2011-07-04 19:56:27 +10:00
Con Kolivas
594b38b8cb
Fix redefinition of gnu source.
2011-07-04 19:56:27 +10:00
Ycros
ec8319176e
Build on windows using mingw32.
2011-07-04 19:56:27 +10:00
Ycros
5d301c8ba0
Make a binary load failure build from source.
2011-07-04 19:56:27 +10:00