Enable completely compiling scrypt out.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
diff --git a/driver-opencl.c b/driver-opencl.c
index b77614d..e8a901d 100644
--- a/driver-opencl.c
+++ b/driver-opencl.c
@@ -137,8 +137,10 @@ static enum cl_kernels select_kernel(char *arg)
return KL_POCLBM;
if (!strcmp(arg, "phatk"))
return KL_PHATK;
+#ifdef HAVE_SCRYPT
if (!strcmp(arg, "scrypt"))
return KL_SCRYPT;
+#endif
return KL_NONE;
}
@@ -988,12 +990,15 @@ static cl_int queue_diablo_kernel(_clState *clState, dev_blk_ctx *blk, cl_uint t
return status;
}
+#ifdef HAVE_SCRYPT
static cl_int queue_scrypt_kernel(_clState *clState, dev_blk_ctx *blk, cl_uint threads)
{
cl_int status = 0;
return status;
}
+#endif
+
static void set_threads_hashes(unsigned int vectors, unsigned int *threads,
int64_t *hashes, size_t *globalThreads,
unsigned int minthreads, int intensity)
@@ -1258,9 +1263,11 @@ static bool opencl_thread_prepare(struct thr_info *thr)
case KL_PHATK:
cgpu->kname = "phatk";
break;
+#ifdef HAVE_SCRYPT
case KL_SCRYPT:
cgpu->kname = "scrypt";
break;
+#endif
case KL_POCLBM:
cgpu->kname = "poclbm";
break;
@@ -1302,9 +1309,11 @@ static bool opencl_thread_init(struct thr_info *thr)
case KL_DIAKGCN:
thrdata->queue_kernel_parameters = &queue_diakgcn_kernel;
break;
+#ifdef HAVE_SCRYPT
case KL_SCRYPT:
thrdata->queue_kernel_parameters = &queue_scrypt_kernel;
break;
+#endif
default:
case KL_DIABLO:
thrdata->queue_kernel_parameters = &queue_diablo_kernel;
diff --git a/miner.h b/miner.h
index a9fa29c..7482473 100644
--- a/miner.h
+++ b/miner.h
@@ -262,7 +262,9 @@ enum cl_kernels {
KL_PHATK,
KL_DIAKGCN,
KL_DIABLO,
+#ifdef HAVE_SCRYPT
KL_SCRYPT,
+#endif
};
enum dev_reason {