Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for mining Diamond v2.0 (groestl) #7

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,7 @@ AC_DEFINE_UNQUOTED([GROESTLCOIN_KERNNAME], ["groestlcoin"], [Filename for Groest
AC_DEFINE_UNQUOTED([SIFCOIN_KERNNAME], ["sifcoin"], [Filename for Sifcoin optimised kernel])
AC_DEFINE_UNQUOTED([TWECOIN_KERNNAME], ["twecoin"], [Filename for Twecoin optimised kernel])
AC_DEFINE_UNQUOTED([MARUCOIN_KERNNAME], ["marucoin"], [Filename for MaruCoin optimised kernel])
AC_DEFINE_UNQUOTED([DIAMOND_KERNNAME], ["diamond"], [Filename for Diamond optimised kernel])

AC_SUBST(OPENCL_LIBS)
AC_SUBST(OPENCL_FLAGS)
Expand Down
6 changes: 6 additions & 0 deletions driver-opencl.c
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,8 @@ static enum cl_kernels select_kernel(char *arg)
return KL_TWECOIN;
if (!strcmp(arg, MARUCOIN_KERNNAME))
return KL_MARUCOIN;
if (!strcmp(arg, DIAMOND_KERNNAME))
return KL_DIAMOND;

return KL_NONE;
}
Expand Down Expand Up @@ -1402,6 +1404,9 @@ static bool opencl_thread_prepare(struct thr_info *thr)
case KL_MARUCOIN:
cgpu->kname = MARUCOIN_KERNNAME;
break;
case KL_DIAMOND:
cgpu->kname = DIAMOND_KERNNAME;
break;
default:
break;
}
Expand Down Expand Up @@ -1448,6 +1453,7 @@ static bool opencl_thread_init(struct thr_info *thr)
case KL_SIFCOIN:
case KL_TWECOIN:
case KL_MARUCOIN:
case KL_DIAMOND:
thrdata->queue_kernel_parameters = &queue_sph_kernel;
break;
default:
Expand Down
Loading