Skip to content

Commit

Permalink
Merge pull request #279 from fancyIX/feature/#253
Browse files Browse the repository at this point in the history
Issue #253
  • Loading branch information
fancyIX committed May 4, 2022
2 parents 352dec4 + ad570a2 commit b6cf55d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
m4_define([v_maj], [0])
m4_define([v_min], [9])
m4_define([v_mic], [3])
m4_define([v_mic], [4])
m4_define([v_rev], [0])
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
m4_ifdef([v_rev], [m4_define([v_ver], [v_maj.v_min.v_mic-v_rev])], [m4_define([v_ver], [v_maj.v_min.v_mic])])
Expand Down
9 changes: 9 additions & 0 deletions ocl.c
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,15 @@ _clState *initCl(unsigned int gpu, char *name, size_t nameSize, algorithm_t *alg

applog(LOG_INFO, "Selected %d: %s", gpu, pbuff[gpu]);
strncpy(name, pbuff[gpu], nameSize);

if (strstr(name, "gfx10") != NULL) {
if (strstr(cgpu->algorithm.name, "_navi") == NULL) {
char newname[20] = {0};
strncpy(newname, cgpu->algorithm.name, strlen(cgpu->algorithm.name));
strcat(newname, "_navi");
set_algorithm(&cgpu->algorithm, newname);
}
}

status = create_opencl_context(&clState->context, &platform);
if (status != CL_SUCCESS) {
Expand Down
6 changes: 3 additions & 3 deletions winbuild/dist/include/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@
//
#endif
//
#define VERSION "v0.9.3-0"
#define VERSION "v0.9.4-0"
#define PACKAGE_NAME "sgminer"
#define PACKAGE_TARNAME "sgminer"
#define PACKAGE_VERSION "0.9.3-0"
#define PACKAGE_STRING "sgminer 0.9.3-0"
#define PACKAGE_VERSION "0.9.4-0"
#define PACKAGE_STRING "sgminer 0.9.4-0"
#define PACKAGE "sgminer"
//
#define SGMINER_PREFIX ""
Expand Down

0 comments on commit b6cf55d

Please sign in to comment.