mirror of
https://github.com/GOSTSec/sgminer
synced 2025-03-13 06:01:03 +00:00
core: use kernel name defines now that version date is not in the filenames.
Ideally, even this should not be needed, and specifying a kernel name string should search for the appropriate file in kernel-path.
This commit is contained in:
parent
35a23942b1
commit
5f795be64a
@ -196,13 +196,13 @@ char *set_thread_concurrency(char *arg)
|
||||
|
||||
static enum cl_kernels select_kernel(char *arg)
|
||||
{
|
||||
if (!strcmp(arg, "alexkarnew"))
|
||||
if (!strcmp(arg, ALEXKARNEW_KERNNAME))
|
||||
return KL_ALEXKARNEW;
|
||||
if (!strcmp(arg, "alexkarold"))
|
||||
if (!strcmp(arg, ALEXKAROLD_KERNNAME))
|
||||
return KL_ALEXKAROLD;
|
||||
if (!strcmp(arg, "ckolivas"))
|
||||
if (!strcmp(arg, CKOLIVAS_KERNNAME))
|
||||
return KL_CKOLIVAS;
|
||||
if (!strcmp(arg, "zuikkis"))
|
||||
if (!strcmp(arg, ZUIKKIS_KERNNAME))
|
||||
return KL_ZUIKKIS;
|
||||
|
||||
return KL_NONE;
|
||||
@ -1217,16 +1217,16 @@ static bool opencl_thread_prepare(struct thr_info *thr)
|
||||
{
|
||||
switch (clStates[i]->chosen_kernel) {
|
||||
case KL_ALEXKARNEW:
|
||||
cgpu->kname = "alexkarnew";
|
||||
cgpu->kname = ALEXKARNEW_KERNNAME;
|
||||
break;
|
||||
case KL_ALEXKAROLD:
|
||||
cgpu->kname = "alexkarold";
|
||||
cgpu->kname = ALEXKAROLD_KERNNAME;
|
||||
break;
|
||||
case KL_CKOLIVAS:
|
||||
cgpu->kname = "ckolivas";
|
||||
cgpu->kname = CKOLIVAS_KERNNAME;
|
||||
break;
|
||||
case KL_ZUIKKIS:
|
||||
cgpu->kname = "zuikkis";
|
||||
cgpu->kname = ZUIKKIS_KERNNAME;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
@ -4122,16 +4122,16 @@ void write_config(FILE *fcfg)
|
||||
case KL_NONE: // Shouldn't happen
|
||||
break;
|
||||
case KL_ALEXKARNEW:
|
||||
fprintf(fcfg, "alexkarnew");
|
||||
fprintf(fcfg, ALEXKARNEW_KERNNAME);
|
||||
break;
|
||||
case KL_ALEXKAROLD:
|
||||
fprintf(fcfg, "alexkarold");
|
||||
fprintf(fcfg, ALEXKAROLD_KERNNAME);
|
||||
break;
|
||||
case KL_CKOLIVAS:
|
||||
fprintf(fcfg, "ckolivas");
|
||||
fprintf(fcfg, CKOLIVAS_KERNNAME);
|
||||
break;
|
||||
case KL_ZUIKKIS:
|
||||
fprintf(fcfg, "zuikkis");
|
||||
fprintf(fcfg, ZUIKKIS_KERNNAME);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user