diff --git a/JHA/cuda_jha_keccak512.cu b/JHA/cuda_jha_keccak512.cu index 8a052f58..47c3594d 100644 --- a/JHA/cuda_jha_keccak512.cu +++ b/JHA/cuda_jha_keccak512.cu @@ -106,7 +106,7 @@ __global__ void jackpot_keccak512_gpu_hash(uint32_t threads, uint32_t startNounc { const uint32_t nounce = startNounce + thread; - const int hashPosition = nounce - startNounce; + const uint32_t hashPosition = nounce - startNounce; // Nachricht kopieren uint32_t message[18]; diff --git a/quark/cuda_bmw512.cu b/quark/cuda_bmw512.cu index 7a1cf170..d88e7436 100644 --- a/quark/cuda_bmw512.cu +++ b/quark/cuda_bmw512.cu @@ -203,7 +203,7 @@ void quark_bmw512_gpu_hash_64(uint32_t threads, uint32_t startNounce, uint64_t * { const uint32_t nounce = (g_nonceVector != NULL) ? g_nonceVector[thread] : (startNounce + thread); - const int hashPosition = nounce - startNounce; + const uint32_t hashPosition = nounce - startNounce; uint64_t *const inpHash = &g_hash[8 * hashPosition]; uint2 msg[16]; diff --git a/quark/cuda_jh512.cu b/quark/cuda_jh512.cu index 2f644245..c805aeac 100644 --- a/quark/cuda_jh512.cu +++ b/quark/cuda_jh512.cu @@ -304,7 +304,7 @@ void quark_jh512_gpu_hash_64_final(uint32_t threads, uint32_t startNounce, uint6 { const uint32_t nounce = (g_nonceVector != NULL) ? g_nonceVector[thread] : (startNounce + thread); - const int hashPosition = nounce - startNounce; + const uint32_t hashPosition = nounce - startNounce; uint32_t *const Hash = (uint32_t*)&g_hash[8 * hashPosition]; uint32_t x[8][4] = { diff --git a/quark/cuda_jh512keccak512.cu b/quark/cuda_jh512keccak512.cu index 3d77b9fb..7a7bae37 100644 --- a/quark/cuda_jh512keccak512.cu +++ b/quark/cuda_jh512keccak512.cu @@ -281,7 +281,7 @@ void quark_jh512Keccak512_gpu_hash_64(uint32_t threads, uint32_t startNounce, ui { const uint32_t nounce = (startNounce + thread); - const int hashPosition = nounce - startNounce; + const uint32_t hashPosition = nounce - startNounce; uint32_t *Hash = &g_hash[16 * hashPosition]; uint32_t x[8][4] = { { 0x964bd16f, 0x17aa003e, 0x052e6a63, 0x43d5157a }, diff --git a/quark/cuda_quark_blake512.cu b/quark/cuda_quark_blake512.cu index bc91cd30..c33972b7 100644 --- a/quark/cuda_quark_blake512.cu +++ b/quark/cuda_quark_blake512.cu @@ -35,7 +35,7 @@ void quark_blake512_gpu_hash_64(uint32_t threads, uint32_t startNounce, uint32_t #if USE_SHUFFLE const int warpID = threadIdx.x & 0x0F; // 16 warps const int warpBlockID = (thread + 15)>>4; // aufrunden auf volle Warp-Blöcke - const int maxHashPosition = thread<<3; + const int maxhashPosition = thread<<3; #endif #if USE_SHUFFLE @@ -46,7 +46,7 @@ void quark_blake512_gpu_hash_64(uint32_t threads, uint32_t startNounce, uint32_t { const uint32_t nounce = (g_nonceVector != NULL) ? g_nonceVector[thread] : (startNounce + thread); - const int hashPosition = nounce - startNounce; + const uint32_t hashPosition = nounce - startNounce; uint64_t *inpHash = &g_hash[hashPosition*8]; uint2 block[16]; diff --git a/quark/cuda_quark_groestl512.cu b/quark/cuda_quark_groestl512.cu index e18adf65..f545a432 100644 --- a/quark/cuda_quark_groestl512.cu +++ b/quark/cuda_quark_groestl512.cu @@ -68,7 +68,7 @@ quark_doublegroestl512_gpu_hash_64_quad(uint32_t threads, uint32_t startNounce, const uint32_t nounce = g_nonceVector ? g_nonceVector[thread] : (startNounce + thread); - const int hashPosition = nounce - startNounce; + const uint32_t hashPosition = nounce - startNounce; uint32_t * inpHash = &g_hash[hashPosition<<4]; const uint16_t thr = threadIdx.x & (THF-1); diff --git a/quark/cuda_quark_keccak512.cu b/quark/cuda_quark_keccak512.cu index abf4970e..6a5dc20e 100644 --- a/quark/cuda_quark_keccak512.cu +++ b/quark/cuda_quark_keccak512.cu @@ -33,7 +33,7 @@ void quark_keccak512_gpu_hash_64(uint32_t threads, uint32_t startNounce, uint2 * { uint32_t nounce = (g_nonceVector != NULL) ? g_nonceVector[thread] : (startNounce + thread); - int hashPosition = nounce - startNounce; + uint32_t hashPosition = nounce - startNounce; uint2 *inpHash = &g_hash[8 * hashPosition]; uint2 s[25]; @@ -148,7 +148,7 @@ void quark_keccak512_gpu_hash_64_final(uint32_t threads, uint32_t startNounce, u { const uint32_t nounce = (g_nonceVector != NULL) ? g_nonceVector[thread] : (startNounce + thread); - const int hashPosition = nounce - startNounce; + const uint32_t hashPosition = nounce - startNounce; uint2 *inpHash = &g_hash[8 * hashPosition]; uint2 s[25] = diff --git a/quark/cuda_skein512.cu b/quark/cuda_skein512.cu index 62087d5e..8e48dcf6 100644 --- a/quark/cuda_skein512.cu +++ b/quark/cuda_skein512.cu @@ -388,7 +388,7 @@ void quark_skein512_gpu_hash_64(uint32_t threads, uint32_t startNounce, uint64_t const uint32_t nounce = (g_nonceVector != NULL) ? g_nonceVector[thread] : (startNounce + thread); - const int hashPosition = nounce - startNounce; + const uint32_t hashPosition = nounce - startNounce; uint64_t *Hash = &g_hash[8 * hashPosition]; h[0] = skein_p[0] = vectorize(Hash[0]); @@ -1912,7 +1912,7 @@ void quark_skein512_gpu_hash_64_final(const uint32_t threads, const uint32_t sta const uint32_t nounce = (g_nonceVector != NULL) ? g_nonceVector[thread] : (startNounce + thread); - const int hashPosition = nounce - startNounce; + const uint32_t hashPosition = nounce - startNounce; const uint64_t *const inpHash = &g_hash[8 * hashPosition]; h0 = make_uint2(0x749C51CEull, 0x4903ADFF); diff --git a/x11/cuda_x11_cubehash512.cu b/x11/cuda_x11_cubehash512.cu index 059e2e3a..359d8d0c 100644 --- a/x11/cuda_x11_cubehash512.cu +++ b/x11/cuda_x11_cubehash512.cu @@ -210,7 +210,7 @@ void x11_cubehash512_gpu_hash_64(uint32_t threads, uint32_t startNounce, uint32_ { const uint32_t nounce = startNounce + thread; - const int hashPosition = nounce - startNounce; + const uint32_t hashPosition = nounce - startNounce; uint32_t *const Hash = &g_hash[16 * hashPosition]; uint32_t x[2][2][2][2][2] = diff --git a/x11/cuda_x11_echo.cu b/x11/cuda_x11_echo.cu index 2d739cbb..25ae92d3 100644 --- a/x11/cuda_x11_echo.cu +++ b/x11/cuda_x11_echo.cu @@ -354,7 +354,7 @@ void x11_echo512_gpu_hash_64(uint32_t threads, uint32_t startNounce, uint32_t *c if (thread < threads) { const uint32_t nounce = (startNounce + thread); - const int hashPosition = nounce - startNounce; + const uint32_t hashPosition = nounce - startNounce; uint32_t *const Hash = &g_hash[hashPosition<<4]; cuda_echo_round(sharedMemory, Hash); } @@ -462,7 +462,7 @@ void x11_echo512_gpu_hash_64_final(uint32_t threads, uint32_t startNounce, const const uint32_t nounce = (startNounce + thread); - const int hashPosition = nounce - startNounce; + const uint32_t hashPosition = nounce - startNounce; const uint32_t *const Hash = (uint32_t*)&g_hash[hashPosition *8]; uint32_t h[16]; diff --git a/x11/cuda_x11_luffa512_Cubehash.cu b/x11/cuda_x11_luffa512_Cubehash.cu index 520dc149..b5eeece4 100644 --- a/x11/cuda_x11_luffa512_Cubehash.cu +++ b/x11/cuda_x11_luffa512_Cubehash.cu @@ -763,7 +763,7 @@ void x11_luffaCubehash512_gpu_hash_64(uint32_t threads, uint32_t startNounce, ui { const uint32_t nounce = (startNounce + thread); - const int hashPosition = nounce - startNounce; + const uint32_t hashPosition = nounce - startNounce; uint32_t *const Hash = (uint32_t*)&g_hash[8 * hashPosition]; uint32_t statebuffer[8]; diff --git a/x11/cuda_x11_shavite512.cu b/x11/cuda_x11_shavite512.cu index 4e35dc55..cdae4aa9 100644 --- a/x11/cuda_x11_shavite512.cu +++ b/x11/cuda_x11_shavite512.cu @@ -1280,7 +1280,7 @@ void x11_shavite512_gpu_hash_64(uint32_t threads, uint32_t startNounce, uint64_t { const uint32_t nounce = (startNounce + thread); - const int hashPosition = nounce - startNounce; + const uint32_t hashPosition = nounce - startNounce; uint32_t *const Hash = (uint32_t*)&g_hash[hashPosition*8]; // kopiere init-state diff --git a/x11/cuda_x11_simd512.cu b/x11/cuda_x11_simd512.cu index 7c159ffc..0dba2a2f 100644 --- a/x11/cuda_x11_simd512.cu +++ b/x11/cuda_x11_simd512.cu @@ -545,7 +545,7 @@ x11_simd512_gpu_expand_64(uint32_t threads, uint32_t startNounce, const uint64_t { const uint32_t nounce = (startNounce + thread); - const int hashPosition = nounce - startNounce; + const uint32_t hashPosition = nounce - startNounce; uint32_t *inpHash = (uint32_t*)&g_hash[8 * hashPosition]; @@ -571,7 +571,7 @@ x11_simd512_gpu_compress1_64(uint32_t threads, uint32_t startNounce, uint64_t *g { const uint32_t nounce = (startNounce + thread); - const int hashPosition = nounce - startNounce; + const uint32_t hashPosition = nounce - startNounce; uint32_t *const Hash = (uint32_t*)&g_hash[8 * hashPosition]; Compression1(Hash, hashPosition, g_fft4, g_state); @@ -585,7 +585,7 @@ x11_simd512_gpu_compress2_64(uint32_t threads, uint32_t startNounce, uint64_t *g { const uint32_t nounce = (startNounce + thread); - const int hashPosition = nounce - startNounce; + const uint32_t hashPosition = nounce - startNounce; Compression2(hashPosition, g_fft4, g_state); } @@ -600,7 +600,7 @@ x11_simd512_gpu_compress_64_maxwell(uint32_t threads, uint32_t startNounce, uint { const uint32_t nounce = (startNounce + thread); - const int hashPosition = nounce - startNounce; + const uint32_t hashPosition = nounce - startNounce; uint32_t *const Hash = (uint32_t*)&g_hash[8 * hashPosition]; Compression1(Hash, hashPosition, g_fft4, g_state); @@ -617,7 +617,7 @@ x11_simd512_gpu_final_64(uint32_t threads, uint32_t startNounce, uint64_t *g_has { const uint32_t nounce = (startNounce + thread); - const int hashPosition = nounce - startNounce; + const uint32_t hashPosition = nounce - startNounce; uint32_t *const Hash = (uint32_t*)&g_hash[8 * hashPosition]; Final(Hash, hashPosition, g_fft4, g_state); diff --git a/x13/cuda_x13_fugue512.cu b/x13/cuda_x13_fugue512.cu index 59ae860c..f001f658 100644 --- a/x13/cuda_x13_fugue512.cu +++ b/x13/cuda_x13_fugue512.cu @@ -620,7 +620,7 @@ void x13_fugue512_gpu_hash_64(uint32_t threads, uint32_t startNounce, uint32_t * } const uint32_t nounce = (startNounce + thread); - const int hashPosition = nounce - startNounce; + const uint32_t hashPosition = nounce - startNounce; uint32_t *const Hash = &g_hash[hashPosition*16]; #pragma unroll 16 @@ -862,7 +862,7 @@ void x13_fugue512_gpu_hash_64_final(const uint32_t threads, const uint32_t start mixtabs[(768 + threadIdx.x)] = ROTR32(mixtabs[threadIdx.x], 24); } const uint32_t nounce = (startNounce + thread); - const int hashPosition = nounce - startNounce; + const uint32_t hashPosition = nounce - startNounce; const uint32_t *h = &g_hash[hashPosition * 16]; uint32_t Hash[16]; #pragma unroll 16 diff --git a/x17/cuda_x17_haval512.cu b/x17/cuda_x17_haval512.cu index 067a732f..976a4307 100644 --- a/x17/cuda_x17_haval512.cu +++ b/x17/cuda_x17_haval512.cu @@ -297,7 +297,7 @@ void x17_haval256_gpu_hash_64(uint32_t threads, uint32_t startNounce, uint64_t * if (thread < threads) { const uint32_t nounce = (startNounce + thread); - const int hashPosition = nounce - startNounce; + const uint32_t hashPosition = nounce - startNounce; uint32_t *inpHash = (uint32_t*)&g_hash[8 * hashPosition]; union { uint8_t h1[64]; diff --git a/x17/cuda_x17_sha512.cu b/x17/cuda_x17_sha512.cu index 16226749..161778cd 100644 --- a/x17/cuda_x17_sha512.cu +++ b/x17/cuda_x17_sha512.cu @@ -157,7 +157,7 @@ void x17_sha512_gpu_hash_64(uint32_t threads, uint32_t startNounce, uint64_t *g_ if (thread < threads) { const uint32_t nounce = (startNounce + thread); - const int hashPosition = nounce - startNounce; + const uint32_t hashPosition = nounce - startNounce; uint32_t *inpHash = (uint32_t*)&g_hash[8 * hashPosition]; union { uint8_t h1[64];