Browse Source

core. include check in ocl.c regarding lookup-gap for kernel 'bufius'

doc: change documentation
djm34
Bufius 11 years ago
parent
commit
0b0a3ed834
  1. 1
      AUTHORS.md
  2. 9
      doc/kernel.md
  3. 5
      ocl.c

1
AUTHORS.md

@ -27,6 +27,7 @@ updated by many others. @@ -27,6 +27,7 @@ updated by many others.
* ckolivas: Con Kolivas <kernel @at@ kolivas }dot{ org> 15qSxP1SQcUX3o4nhkfdbgyoWEFMomJ4rZ
* psw: Pavel Semjanov LP6GRFvgoMxKA6AW4TVF668cNezEGZvEtr
* zuikkis: Zuikkis LeXck7EYgxyjw13zNDxZFmmgmWffFvhmSh
* bufius: Bufius VvvmmkYHKGtdr97JLyyZuJ3Th5ayungnjk
## Testing, bug fixes, improvements

9
doc/kernel.md

@ -58,6 +58,15 @@ Only supports `vectors=1` and `lookup-gap=2`. @@ -58,6 +58,15 @@ Only supports `vectors=1` and `lookup-gap=2`.
[Announcement](https://litecointalk.org/index.php?topic=6058.msg90873#msg90873).
### bufius
Bufius' optimised kernel, based on `ckolivas`.
Only supports `vectors=1` and `lookup-gap 2, 4 or 8`.
Takeover from vertminer
## Submitting new kernels
### Requirements

5
ocl.c

@ -456,6 +456,11 @@ _clState *initCl(unsigned int gpu, char *name, size_t nameSize, algorithm_t *alg @@ -456,6 +456,11 @@ _clState *initCl(unsigned int gpu, char *name, size_t nameSize, algorithm_t *alg
applog(LOG_WARNING, "Kernel zuikkis only supports lookup-gap = 2 (currently %d), forcing.", cgpu->lookup_gap);
cgpu->lookup_gap = 2;
}
if ((strcmp(cgpu->kernelname, "bufius") == 0) && ((cgpu->lookup_gap != 2) && (cgpu->lookup_gap != 4) && (cgpu->lookup_gap != 8))) {
applog(LOG_WARNING, "Kernel bufius only supports lookup-gap of 2, 4 or 8 (currently %d), forcing to 2", cgpu->lookup_gap);
cgpu->lookup_gap = 2;
}
if (!cgpu->opt_tc) {
unsigned int sixtyfours;

Loading…
Cancel
Save