mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-25 14:04:25 +00:00
Whitelist 79x0 cards to prefer no vectors as they perform better without.
This commit is contained in:
parent
4995b7c241
commit
d7aac25489
12
ocl.c
12
ocl.c
@ -322,9 +322,15 @@ _clState *initCl(unsigned int gpu, char *name, size_t nameSize)
|
|||||||
|
|
||||||
/* For some reason 2 vectors is still better even if the card says
|
/* For some reason 2 vectors is still better even if the card says
|
||||||
* otherwise, and many cards lie about their max so use 256 as max
|
* otherwise, and many cards lie about their max so use 256 as max
|
||||||
* unless explicitly set on the command line */
|
* unless explicitly set on the command line. 79x0 cards perform
|
||||||
if (clState->preferred_vwidth > 1)
|
* better without vectors */
|
||||||
clState->preferred_vwidth = 2;
|
if (clState->preferred_vwidth > 1) {
|
||||||
|
if (strstr(name, "Tahiti"))
|
||||||
|
clState->preferred_vwidth = 1;
|
||||||
|
else
|
||||||
|
clState->preferred_vwidth = 2;
|
||||||
|
}
|
||||||
|
|
||||||
if (opt_vectors)
|
if (opt_vectors)
|
||||||
clState->preferred_vwidth = opt_vectors;
|
clState->preferred_vwidth = opt_vectors;
|
||||||
if (opt_worksize && opt_worksize <= clState->max_work_size)
|
if (opt_worksize && opt_worksize <= clState->max_work_size)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user