Skip to content

Commit

Permalink
core. include check in ocl.c regarding lookup-gap for kernel 'bufius'
Browse files Browse the repository at this point in the history
doc: change documentation
  • Loading branch information
Bufius committed May 19, 2014
1 parent 6d5e7bd commit 0b0a3ed
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions AUTHORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 9 additions & 0 deletions doc/kernel.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions ocl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0b0a3ed

Please sign in to comment.