@@ -29,8 +29,8 @@ extern void skein256_cpu_init(int thr_id, uint32_t threads);
29
29
30
30
extern void lyra2_cpu_init (int thr_id, uint32_t threads, uint64_t *d_matrix);
31
31
extern void lyra2_cpu_init_high_end (int thr_id, uint32_t threads, uint64_t *g_pad);
32
- extern void lyra2_cpu_hash_32 (int thr_id, uint32_t threads, uint32_t startNonce, uint64_t *d_outputHash, bool gtx750ti, bool high_end);
33
- extern void lyra2_cpu_hash_32_fancyIX (int thr_id, uint32_t threads, uint32_t startNounce, uint64_t *d_hash, uint64_t *g_pad, bool gtx750ti, bool high_end);
32
+ extern void lyra2_cpu_hash_32 (int thr_id, uint32_t threads, uint32_t startNonce, uint64_t *d_outputHash, bool gtx750ti, uint32_t high_end);
33
+ extern void lyra2_cpu_hash_32_fancyIX (int thr_id, uint32_t threads, uint32_t startNounce, uint64_t *d_hash, uint64_t *g_pad, bool gtx750ti, uint32_t high_end);
34
34
35
35
extern void groestl256_cpu_init (int thr_id, uint32_t threads);
36
36
extern void groestl256_cpu_free (int thr_id);
@@ -92,7 +92,7 @@ extern "C" int scanhash_allium(int thr_id, struct work* work, uint32_t max_nonce
92
92
ptarget[7 ] = 0x0400 ;
93
93
94
94
static __thread bool gtx750ti;
95
- static __thread bool high_end;
95
+ static __thread uint32_t high_end;
96
96
if (!init[thr_id])
97
97
{
98
98
int dev_id = device_map[thr_id];
@@ -111,11 +111,12 @@ extern "C" int scanhash_allium(int thr_id, struct work* work, uint32_t max_nonce
111
111
else gtx750ti = false ;
112
112
113
113
if (strstr (props.name , " 1080" ) ||
114
- strstr (props.name , " 1070" ) ||
114
+ strstr (props.name , " 1070" )) high_end = 1 ;
115
+ if (strstr (props.name , " 3090" ) ||
115
116
strstr (props.name , " 3080" ) ||
116
117
strstr (props.name , " 3070" ) ||
117
- strstr (props.name , " 3060" )) high_end = true ;
118
- else high_end = false ;
118
+ strstr (props.name , " 3060" )) high_end = 2 ;
119
+ else high_end = 0 ;
119
120
120
121
gpulog (LOG_INFO, thr_id, " Intensity set to %g, %u cuda threads" , throughput2intensity (throughput), throughput);
121
122
@@ -130,7 +131,7 @@ extern "C" int scanhash_allium(int thr_id, struct work* work, uint32_t max_nonce
130
131
size_t matrix_sz = device_sm[dev_id] > 500 ? sizeof (uint64_t ) * 4 * 4 : sizeof (uint64_t ) * 8 * 8 * 3 * 4 ;
131
132
CUDA_SAFE_CALL (cudaMalloc (&d_matrix[thr_id], matrix_sz * throughput));
132
133
lyra2_cpu_init (thr_id, throughput, d_matrix[thr_id]);
133
- if (high_end) {
134
+ if (high_end == 1 ) {
134
135
size_t pad_sz = sizeof (uint64_t ) * 8 * 8 * 3 * 4 ;
135
136
CUDA_SAFE_CALL (cudaMalloc (&g_pad[thr_id], pad_sz * throughput));
136
137
lyra2_cpu_init_high_end (thr_id, throughput, g_pad[thr_id]);
0 commit comments