mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-05 11:34:16 +00:00
Change the preferred vector width to 1 for Tahiti only, not all poclbm kernels.
This commit is contained in:
parent
580888f91b
commit
6274fbe727
8
ocl.c
8
ocl.c
@ -365,16 +365,16 @@ _clState *initCl(unsigned int gpu, char *name, size_t nameSize)
|
||||
|
||||
/* 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
|
||||
* unless explicitly set on the command line. */
|
||||
if (preferred_vwidth > 2)
|
||||
* unless explicitly set on the command line. Tahiti prefers 1 */
|
||||
if (strstr(name, "Tahiti"))
|
||||
preferred_vwidth = 1;
|
||||
else if (preferred_vwidth > 2)
|
||||
preferred_vwidth = 2;
|
||||
|
||||
switch (clState->chosen_kernel) {
|
||||
case KL_POCLBM:
|
||||
strcpy(filename, POCLBM_KERNNAME".cl");
|
||||
strcpy(binaryfilename, POCLBM_KERNNAME);
|
||||
/* This kernel prefers to not use vectors */
|
||||
preferred_vwidth = 1;
|
||||
break;
|
||||
case KL_PHATK:
|
||||
strcpy(filename, PHATK_KERNNAME".cl");
|
||||
|
Loading…
x
Reference in New Issue
Block a user