Enable unrolling of SHA512 with HMAC on NV
authorjsteube <jens.steube@gmail.com>
Sun, 8 May 2016 14:07:40 +0000 (16:07 +0200)
committerjsteube <jens.steube@gmail.com>
Sun, 8 May 2016 14:07:40 +0000 (16:07 +0200)
17 files changed:
OpenCL/m01750_a0.cl
OpenCL/m01750_a1.cl
OpenCL/m01750_a3.cl
OpenCL/m01760_a0.cl
OpenCL/m01760_a1.cl
OpenCL/m01760_a3.cl
OpenCL/m06221.cl
OpenCL/m06222.cl
OpenCL/m06223.cl
OpenCL/m06500.cl
OpenCL/m07100.cl
OpenCL/m07900.cl
OpenCL/m08200.cl
OpenCL/m09600.cl
OpenCL/m11300.cl
OpenCL/m12200.cl
OpenCL/m12300.cl

index 0ad4790..5095385 100644 (file)
@@ -116,7 +116,12 @@ void sha512_transform (const u64x w0[4], const u64x w1[4], const u64x w2[4], con
 
   ROUND_STEP (0);
 
-  //#pragma unroll
+  #ifdef IS_AMD
+  // #pragma unroll
+  // breaks compiler
+  #else
+  #pragma unroll
+  #endif
   for (int i = 16; i < 80; i += 16)
   {
     ROUND_EXPAND (); ROUND_STEP (i);
index f2697fc..d920d14 100644 (file)
@@ -114,7 +114,12 @@ void sha512_transform (const u64x w0[4], const u64x w1[4], const u64x w2[4], con
 
   ROUND_STEP (0);
 
-  //#pragma unroll
+  #ifdef IS_AMD
+  // #pragma unroll
+  // breaks compiler
+  #else
+  #pragma unroll
+  #endif
   for (int i = 16; i < 80; i += 16)
   {
     ROUND_EXPAND (); ROUND_STEP (i);
index e213850..2f08963 100644 (file)
@@ -114,7 +114,12 @@ void sha512_transform (const u64x w0[4], const u64x w1[4], const u64x w2[4], con
 
   ROUND_STEP (0);
 
-  //#pragma unroll
+  #ifdef IS_AMD
+  // #pragma unroll
+  // breaks compiler
+  #else
+  #pragma unroll
+  #endif
   for (int i = 16; i < 80; i += 16)
   {
     ROUND_EXPAND (); ROUND_STEP (i);
index f487180..8e2338f 100644 (file)
@@ -116,7 +116,12 @@ void sha512_transform (const u64x w0[4], const u64x w1[4], const u64x w2[4], con
 
   ROUND_STEP (0);
 
-  //#pragma unroll
+  #ifdef IS_AMD
+  // #pragma unroll
+  // breaks compiler
+  #else
+  #pragma unroll
+  #endif
   for (int i = 16; i < 80; i += 16)
   {
     ROUND_EXPAND (); ROUND_STEP (i);
index d329446..a0ba4be 100644 (file)
@@ -114,7 +114,12 @@ void sha512_transform (const u64x w0[4], const u64x w1[4], const u64x w2[4], con
 
   ROUND_STEP (0);
 
-  //#pragma unroll
+  #ifdef IS_AMD
+  // #pragma unroll
+  // breaks compiler
+  #else
+  #pragma unroll
+  #endif
   for (int i = 16; i < 80; i += 16)
   {
     ROUND_EXPAND (); ROUND_STEP (i);
index b45cfab..cb8ff6b 100644 (file)
@@ -114,7 +114,12 @@ void sha512_transform (const u64x w0[4], const u64x w1[4], const u64x w2[4], con
 
   ROUND_STEP (0);
 
-  //#pragma unroll
+  #ifdef IS_AMD
+  // #pragma unroll
+  // breaks compiler
+  #else
+  #pragma unroll
+  #endif
   for (int i = 16; i < 80; i += 16)
   {
     ROUND_EXPAND (); ROUND_STEP (i);
index 2949080..60bdf54 100644 (file)
@@ -115,7 +115,12 @@ void sha512_transform (const u64 w[16], u64 dgst[8])
 
   ROUND_STEP (0);
 
-  //#pragma unroll
+  #ifdef IS_AMD
+  // #pragma unroll
+  // breaks compiler
+  #else
+  #pragma unroll
+  #endif
   for (int i = 16; i < 80; i += 16)
   {
     ROUND_EXPAND (); ROUND_STEP (i);
index 2620c72..102a890 100644 (file)
@@ -115,7 +115,12 @@ void sha512_transform (const u64 w[16], u64 dgst[8])
 
   ROUND_STEP (0);
 
-  //#pragma unroll
+  #ifdef IS_AMD
+  // #pragma unroll
+  // breaks compiler
+  #else
+  #pragma unroll
+  #endif
   for (int i = 16; i < 80; i += 16)
   {
     ROUND_EXPAND (); ROUND_STEP (i);
index a0eb7c2..86afa82 100644 (file)
@@ -115,7 +115,12 @@ void sha512_transform (const u64 w[16], u64 dgst[8])
 
   ROUND_STEP (0);
 
-  //#pragma unroll
+  #ifdef IS_AMD
+  // #pragma unroll
+  // breaks compiler
+  #else
+  #pragma unroll
+  #endif
   for (int i = 16; i < 80; i += 16)
   {
     ROUND_EXPAND (); ROUND_STEP (i);
index 44e4d7f..5fa3977 100644 (file)
@@ -114,7 +114,12 @@ void sha512_transform (const u64 w0[4], const u64 w1[4], const u64 w2[4], const
 
   ROUND_STEP (0);
 
-  //#pragma unroll
+  #ifdef IS_AMD
+  // #pragma unroll
+  // breaks compiler
+  #else
+  #pragma unroll
+  #endif
   for (int i = 16; i < 80; i += 16)
   {
     ROUND_EXPAND (); ROUND_STEP (i);
index a9f0900..15252e7 100644 (file)
@@ -114,7 +114,12 @@ void sha512_transform (const u64 w[16], u64 dgst[8])
 
   ROUND_STEP (0);
 
-  //#pragma unroll
+  #ifdef IS_AMD
+  // #pragma unroll
+  // breaks compiler
+  #else
+  #pragma unroll
+  #endif
   for (int i = 16; i < 80; i += 16)
   {
     ROUND_EXPAND (); ROUND_STEP (i);
index e2af127..40b13a7 100644 (file)
@@ -114,7 +114,7 @@ void sha512_transform (const u64 w[16], u64 dgst[8])
 
   ROUND_STEP (0);
 
-  //#pragma unroll
+  #pragma unroll
   for (int i = 16; i < 80; i += 16)
   {
     ROUND_EXPAND (); ROUND_STEP (i);
index 73e076d..da4405e 100644 (file)
@@ -321,7 +321,12 @@ void sha512_transform (const u64 w[16], u64 dgst[8])
 
   ROUND512_STEP (0);
 
-  //#pragma unroll
+  #ifdef IS_AMD
+  // #pragma unroll
+  // breaks compiler
+  #else
+  #pragma unroll
+  #endif
   for (int i = 16; i < 80; i += 16)
   {
     ROUND512_EXPAND (); ROUND512_STEP (i);
index 03cb525..f6d4ba6 100644 (file)
@@ -1073,7 +1073,12 @@ void sha512_transform (const u64 w0[4], const u64 w1[4], const u64 w2[4], const
 
   ROUND_STEP (0);
 
-  //#pragma unroll
+  #ifdef IS_AMD
+  // #pragma unroll
+  // breaks compiler
+  #else
+  #pragma unroll
+  #endif
   for (int i = 16; i < 80; i += 16)
   {
     ROUND_EXPAND (); ROUND_STEP (i);
index db71c2f..0547e57 100644 (file)
@@ -986,7 +986,7 @@ void sha512_transform (const u64 w[16], u64 dgst[8])
 
   ROUND_STEP (0);
 
-  //#pragma unroll
+  #pragma unroll
   for (int i = 16; i < 80; i += 16)
   {
     ROUND_EXPAND (); ROUND_STEP (i);
index cbb96eb..001a5a2 100644 (file)
@@ -114,7 +114,12 @@ void sha512_transform (const u64 w[16], u64 dgst[8])
 
   ROUND_STEP (0);
 
-  //#pragma unroll
+  #ifdef IS_AMD
+  // #pragma unroll
+  // breaks compiler
+  #else
+  #pragma unroll
+  #endif
   for (int i = 16; i < 80; i += 16)
   {
     ROUND_EXPAND (); ROUND_STEP (i);
index 5ab6a05..33b410a 100644 (file)
@@ -114,7 +114,12 @@ void sha512_transform (const u64 w[16], u64 dgst[8])
 
   ROUND_STEP (0);
 
-  //#pragma unroll
+  #ifdef IS_AMD
+  // #pragma unroll
+  // breaks compiler
+  #else
+  #pragma unroll
+  #endif
   for (int i = 16; i < 80; i += 16)
   {
     ROUND_EXPAND (); ROUND_STEP (i);