From 3a303ffce457d2cc6c37931d34227e2d6c91b105 Mon Sep 17 00:00:00 2001 From: jsteube Date: Thu, 18 Jan 2018 23:16:11 +0100 Subject: [PATCH] Replace variables from uXX to uXXa if used in __constant space --- OpenCL/inc_common.cl | 2 +- OpenCL/m07800_a0-optimized.cl | 2 +- OpenCL/m07800_a1-optimized.cl | 2 +- OpenCL/m07800_a3-optimized.cl | 2 +- OpenCL/m09100.cl | 2 +- OpenCL/m10400_a0-optimized.cl | 2 +- OpenCL/m10400_a1-optimized.cl | 2 +- OpenCL/m10400_a3-optimized.cl | 2 +- OpenCL/m10410_a0-optimized.cl | 2 +- OpenCL/m10410_a1-optimized.cl | 2 +- OpenCL/m10410_a3-optimized.cl | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/OpenCL/inc_common.cl b/OpenCL/inc_common.cl index 308c55dbc..56e7a7632 100644 --- a/OpenCL/inc_common.cl +++ b/OpenCL/inc_common.cl @@ -3,7 +3,7 @@ * License.....: MIT */ -__constant u32 c_append_helper[64][16] = +__constant u32a c_append_helper[64][16] = { { 0x000000ff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 }, { 0x0000ff00, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 }, diff --git a/OpenCL/m07800_a0-optimized.cl b/OpenCL/m07800_a0-optimized.cl index 7faac4eb3..26484ceb5 100644 --- a/OpenCL/m07800_a0-optimized.cl +++ b/OpenCL/m07800_a0-optimized.cl @@ -16,7 +16,7 @@ #include "inc_simd.cl" #include "inc_hash_sha1.cl" -__constant u32 theMagicArray[64] = +__constant u32a theMagicArray[64] = { 0x91ac5114, 0x9f675443, 0x24e73be0, 0x28747bc2, 0x863313eb, 0x5a4fcb5c, 0x080a7337, 0x0e5d1c2f, 0x338fe6e5, 0xf89baedd, 0x16f24b8d, 0x2ce1d4dc, 0xb0cbdf9d, 0xd4706d17, 0xf94d423f, 0x9b1b1194, diff --git a/OpenCL/m07800_a1-optimized.cl b/OpenCL/m07800_a1-optimized.cl index cfab6d1e5..6049e360f 100644 --- a/OpenCL/m07800_a1-optimized.cl +++ b/OpenCL/m07800_a1-optimized.cl @@ -14,7 +14,7 @@ #include "inc_simd.cl" #include "inc_hash_sha1.cl" -__constant u32 theMagicArray[64] = +__constant u32a theMagicArray[64] = { 0x91ac5114, 0x9f675443, 0x24e73be0, 0x28747bc2, 0x863313eb, 0x5a4fcb5c, 0x080a7337, 0x0e5d1c2f, 0x338fe6e5, 0xf89baedd, 0x16f24b8d, 0x2ce1d4dc, 0xb0cbdf9d, 0xd4706d17, 0xf94d423f, 0x9b1b1194, diff --git a/OpenCL/m07800_a3-optimized.cl b/OpenCL/m07800_a3-optimized.cl index 69098e548..6bd622723 100644 --- a/OpenCL/m07800_a3-optimized.cl +++ b/OpenCL/m07800_a3-optimized.cl @@ -14,7 +14,7 @@ #include "inc_simd.cl" #include "inc_hash_sha1.cl" -__constant u32 theMagicArray[64] = +__constant u32a theMagicArray[64] = { 0x91ac5114, 0x9f675443, 0x24e73be0, 0x28747bc2, 0x863313eb, 0x5a4fcb5c, 0x080a7337, 0x0e5d1c2f, 0x338fe6e5, 0xf89baedd, 0x16f24b8d, 0x2ce1d4dc, 0xb0cbdf9d, 0xd4706d17, 0xf94d423f, 0x9b1b1194, diff --git a/OpenCL/m09100.cl b/OpenCL/m09100.cl index 02ab80977..844e084d1 100644 --- a/OpenCL/m09100.cl +++ b/OpenCL/m09100.cl @@ -17,7 +17,7 @@ #define COMPARE_M "inc_comp_multi.cl" // breaks if used with u8a on AMDGPU-PRO -__constant u8 lotus64_table[64] = +__constant u8a lotus64_table[64] = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', diff --git a/OpenCL/m10400_a0-optimized.cl b/OpenCL/m10400_a0-optimized.cl index 066c2e1ef..edcde2035 100644 --- a/OpenCL/m10400_a0-optimized.cl +++ b/OpenCL/m10400_a0-optimized.cl @@ -16,7 +16,7 @@ #include "inc_simd.cl" #include "inc_hash_md5.cl" -__constant u32 padding[8] = +__constant u32a padding[8] = { 0x5e4ebf28, 0x418a754e, diff --git a/OpenCL/m10400_a1-optimized.cl b/OpenCL/m10400_a1-optimized.cl index 891ce2427..a5ff564c7 100644 --- a/OpenCL/m10400_a1-optimized.cl +++ b/OpenCL/m10400_a1-optimized.cl @@ -14,7 +14,7 @@ #include "inc_simd.cl" #include "inc_hash_md5.cl" -__constant u32 padding[8] = +__constant u32a padding[8] = { 0x5e4ebf28, 0x418a754e, diff --git a/OpenCL/m10400_a3-optimized.cl b/OpenCL/m10400_a3-optimized.cl index ae78a534e..2a1eee4bf 100644 --- a/OpenCL/m10400_a3-optimized.cl +++ b/OpenCL/m10400_a3-optimized.cl @@ -14,7 +14,7 @@ #include "inc_simd.cl" #include "inc_hash_md5.cl" -__constant u32 padding[8] = +__constant u32a padding[8] = { 0x5e4ebf28, 0x418a754e, diff --git a/OpenCL/m10410_a0-optimized.cl b/OpenCL/m10410_a0-optimized.cl index 75fa3b971..df317dbf9 100644 --- a/OpenCL/m10410_a0-optimized.cl +++ b/OpenCL/m10410_a0-optimized.cl @@ -16,7 +16,7 @@ #include "inc_simd.cl" #include "inc_hash_md5.cl" -__constant u32 padding[8] = +__constant u32a padding[8] = { 0x5e4ebf28, 0x418a754e, diff --git a/OpenCL/m10410_a1-optimized.cl b/OpenCL/m10410_a1-optimized.cl index c6a711b5d..0d45cce00 100644 --- a/OpenCL/m10410_a1-optimized.cl +++ b/OpenCL/m10410_a1-optimized.cl @@ -14,7 +14,7 @@ #include "inc_simd.cl" #include "inc_hash_md5.cl" -__constant u32 padding[8] = +__constant u32a padding[8] = { 0x5e4ebf28, 0x418a754e, diff --git a/OpenCL/m10410_a3-optimized.cl b/OpenCL/m10410_a3-optimized.cl index d8e11e088..acaef2830 100644 --- a/OpenCL/m10410_a3-optimized.cl +++ b/OpenCL/m10410_a3-optimized.cl @@ -14,7 +14,7 @@ #include "inc_simd.cl" #include "inc_hash_md5.cl" -__constant u32 padding[8] = +__constant u32a padding[8] = { 0x5e4ebf28, 0x418a754e,