@@ -250,7 +250,7 @@ struct SearchResults {
250250
251251__attribute__((reqd_work_group_size (WORKSIZE , 1 , 1 )))
252252__kernel void search (
253- __global volatile struct SearchResults * restrict g_output ,
253+ __global struct SearchResults * restrict g_output ,
254254 __constant uint2 const * g_header ,
255255 __global ulong8 const * _g_dag ,
256256 uint dag_size ,
@@ -277,7 +277,7 @@ __kernel void search(
277277 __local compute_hash_share * const share = sharebuf + hash_id ;
278278
279279 // sha3_512(header .. nonce)
280- volatile uint2 state [25 ];
280+ uint2 state [25 ];
281281 state [0 ] = g_header [0 ];
282282 state [1 ] = g_header [1 ];
283283 state [2 ] = g_header [2 ];
@@ -306,7 +306,7 @@ __kernel void search(
306306
307307 uint2 mixhash [4 ];
308308
309- for (volatile int pass = 0 ; pass < 2 ; ++ pass ) {
309+ for (int pass = 0 ; pass < 2 ; ++ pass ) {
310310 KECCAK_PROCESS (state , select (5 , 12 , pass != 0 ), select (8 , 1 , pass != 0 ), isolate );
311311 if (pass > 0 )
312312 break ;
@@ -315,7 +315,7 @@ __kernel void search(
315315 uint8 mix ;
316316
317317#pragma unroll 1
318- for (volatile uint tid = 0 ; tid < 4 ; tid ++ ) {
318+ for (uint tid = 0 ; tid < 4 ; tid ++ ) {
319319 if (tid == thread_id ) {
320320 share -> uint2s [0 ] = state [0 ];
321321 share -> uint2s [1 ] = state [1 ];
@@ -338,10 +338,10 @@ __kernel void search(
338338 for (uint a = 0 ; a < (ACCESSES & isolate ); a += 8 ) {
339339#else
340340#pragma unroll 1
341- for (volatile uint a = 0 ; a < ACCESSES ; a += 8 ) {
341+ for (uint a = 0 ; a < ACCESSES ; a += 8 ) {
342342#endif
343343 const uint lane_idx = 4 * hash_id + a / 8 % 4 ;
344- for (volatile uint x = 0 ; x < 8 ; ++ x )
344+ for (uint x = 0 ; x < 8 ; ++ x )
345345 MIX (x );
346346 }
347347
0 commit comments