Con Kolivas
cf543507c6
Revert "Preinitialise the devices only once on startup."
...
This reverts commit 071a0ad2f1
.
13 years ago
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 28880d0dc7
.
13 years ago
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.
13 years ago
Con Kolivas
071a0ad2f1
Preinitialise the devices only once on startup.
13 years ago
Con Kolivas
8f186e61e2
Restart threads by abstracting out the clcontext initialisation and using that instead of probing all cards.
14 years ago
Con Kolivas
4365896ba2
Release the command queue created after we've copied the binary data.
14 years ago
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.
14 years ago
Con Kolivas
2e37e3374e
Out of order command queue may fail on osx. Try without if it fails.
14 years ago
Con Kolivas
4cd12aa8e0
Fix harmless warning.
14 years ago
Con Kolivas
a9e1a25518
Make it possible to select the choice of kernel on the command line.
14 years ago
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.
14 years ago
Con Kolivas
1c67f6068c
Sometimes the cl compiler generates zero sized binaries and only a reboot seems to fix it.
14 years ago
Con Kolivas
7b13812efb
Kernels are safely flushed in a way that allows out of order execution to work.
14 years ago
Con Kolivas
a7707a26cb
Rename the poclbm file to ensure a new binary is built since.
14 years ago
Con Kolivas
eea05c05b8
Update kernel with a shorter output path, and use 4k output buffer to match OS page sizes.
14 years ago
Con Kolivas
857902a13d
Commit a new phatk kernel renamed to force new binary building and add proper support in makefiles.
14 years ago
Con Kolivas
0c910673b2
Set max preferred size to 256 to prevent lying cards from crashing when no worksize is set.
14 years ago
Con Kolivas
826cc4800e
Opcode should be ULL.
14 years ago
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.
14 years ago
Ycros
52d6e7ca37
Fixed fread issues under Windows.
14 years ago
Con Kolivas
a93b22c630
Make it possible to build without GPU mining by picking up HAVE_OPENCL from config.h.
14 years ago
Con Kolivas
821da37c84
Add hardware name to binary kernel name allowing for unique kernels for different cards on the same machine.
14 years ago
Con Kolivas
13b43cfad1
Update copyright and authors.
14 years ago
Con Kolivas
594b38b8cb
Fix redefinition of gnu source.
14 years ago
Ycros
ec8319176e
Build on windows using mingw32.
14 years ago
Ycros
5d301c8ba0
Make a binary load failure build from source.
14 years ago
Con Kolivas
3aa5be4fcf
Reinstate binary kernel loading with fixes.
...
Build binaries with unique filenames from the kernel generated and save them.
Try to load this cached binary if it matches on next kernel instantiation.
This speeds up start-up dramatically, and has a unique kernel binary for different kernel configurations.
14 years ago
Con Kolivas
60f0bb19de
Temporarily back out binary building till it's working more reliably.
14 years ago
Con Kolivas
a095f0fae2
Broke source generated program. Fix.
14 years ago
Con Kolivas
4d73057772
Build binaries with unique filenames from the kernel generated and save them.
...
Try to load this cached binary if it matches on next kernel instantiation.
This speeds up start-up dramatically, and has a unique kernel binary for different kernel configurations.
14 years ago
Con Kolivas
973b2199e1
Tidy.
14 years ago
Con Kolivas
2b6e841673
Use a buffer of up to 512 * 4 integers when retrieving work from the GPU.
...
This allows each local thread id to have one slot to put any positive results into, thus making overlapping results far less likely.
Thus races will be much rarer, allowing more threads.
It should also pick up blocks close to each other more reliably and hopefully decrease the number of rejects and opencl errors.
Do the search over the buffer entirely in a separate thread to allow the GPU to stay as busy as possible.
Detach threads from themselves to prevent unlucky even where dereferencing occurs by freeing the data that stores the thread info.
14 years ago
ckolivas
1dfbe60353
Put sanity limit on work size since some nvidia fail :(
14 years ago
Con Kolivas
6374e0fafe
Import the phatk kernel. Enable it only for hardware with amd media ops for now since it crashes nvidia et. al.
...
Fallback to the poclbm kernel for the rest. Try harder to avoid stale blocks around longpoll detecting new blocks.
14 years ago
Con Kolivas
2dbb39444d
Base was being set wrongly meaning we were repeating searches and the rate was actually lower than displayed :(
...
Tweak Ma with new changes.
Change default vectors to 2 since it's faster than 4 even when 4 is reported as preferred.
14 years ago
Con Kolivas
c566605195
Tab dainbramage.
14 years ago
Con Kolivas
11c8818558
32 bit only builds one elf, not an elf in an elf, so account for it to be able to bfi int patch properly.
14 years ago
Con Kolivas
623b9b9fd8
Patch bitalign separately from bfi_int.
...
Recover from failing to patch for bfi int.
14 years ago
Con Kolivas
06f3950658
Fix typo which prevented BFI INT patch working on multi-GPUs.
14 years ago
Con Kolivas
30e38e2ef8
Typo i - gpu
14 years ago
Con Kolivas
fdb46f2d9b
32bit fixes.
14 years ago
Con Kolivas
656b485d80
Make the worksize and vector width configurable.
14 years ago
Con Kolivas
401586f92a
Only try to patch GPU referenced.
14 years ago
Con Kolivas
ac4ab6afdc
Fix mutli-gpu initialisation when BFI_INT patching.
14 years ago
ckolivas
64f268c8c7
Display correct worksize.
14 years ago
Con Kolivas
808d5b07f9
Make output debug.
14 years ago
ckolivas
feb8cfc8fa
applog fixes.
14 years ago
ckolivas
26546ad5b9
Make the optimisations per-gpu card and update code to work properly with multiple cards.
14 years ago
Con Kolivas
afc83cb25b
Need gnu_source for memmem to work properly.
14 years ago
Con Kolivas
4cd5f47efa
Revert "Multiple compiler warning fixes."
...
This reverts commit a5cbfbde2610e9f60e14b41a4e0595bcb34c772a.
Broke.
14 years ago