Skip to content

Commit 18990c4

Browse files
committed
Upgrade to 2.7.1-hide-2.2.1
1 parent 7674293 commit 18990c4

File tree

5 files changed

+21
-7
lines changed

5 files changed

+21
-7
lines changed

doc/compile_Windows.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,16 @@
3030
- CUDA/Runtime
3131
- Driver components
3232

33-
### AMD DRIVER/APP SDK 3.0 (only needed for AMD GPUs)
33+
### AMD DRIVER/OCL-SDK (only needed for AMD GPUs)
3434

3535
- Download & install the AMD driver: https://www.amd.com/en/support
3636

3737
**ATTENTION** Many windows driver 18.5+ creating invalid shares.
3838
If you have an issue with `invalid shares` please downgrade your driver.
3939

40-
- Download and install the latest version from http://amd-dev.wpengine.netdna-cdn.com/app-sdk/installers/APPSDKInstaller/3.0.130.135-GA/full/AMD-APP-SDKInstaller-v3.0.130.135-GA-windows-F-x64.exe
41-
(do not wonder why it is a link to a netdna-cdn.com but AMD has removed the SDK downloads, see https://community.amd.com/thread/222855)
40+
- Download and install the latest version of the OCL-SDK from https://github.com/GPUOpen-LibrariesAndSDKs/OCL-SDK/releases
41+
42+
Do not follow old information that you need the AMD APP SDK. AMD has removed the APP SDK and is now shipping the OCL-SDK_light.
4243

4344
### Dependencies OpenSSL/Hwloc and Microhttpd
4445
- For CUDA 8*:
@@ -115,4 +116,4 @@ If you have an issue with `invalid shares` please downgrade your driver.
115116
116117
copy C:\xmr-stak-dep\openssl\bin\* .
117118
```
118-
- Miner is by default compiled for NVIDIA GPUs (if CUDA is installed), AMD GPUs (if the AMD APP SDK is installed) and CPUs.
119+
- Miner is by default compiled for NVIDIA GPUs (if CUDA is installed), AMD GPUs (if the AMD OCL-SDK_light is installed) and CPUs.

xmrstak/backend/amd/amd_gpu/opencl/cryptonight.cl

+1-1
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ __kernel void JOIN(cn1,ALGO) (__global uint4 *Scratchpad, __global ulong *states
662662
((uint4 *)c)[0] = SCRATCHPAD_CHUNK(0);
663663
// cryptonight_bittube2
664664
#if(ALGO == 10)
665-
((uint4 *)c)[0] = AES_Round2(AES0, AES1, ~((uint4 *)c)[0], ((uint4 *)a)[0]);
665+
((uint4 *)c)[0] = AES_Round2_bittube2(AES0, AES1, ~((uint4 *)c)[0], ((uint4 *)a)[0]);
666666
#else
667667
((uint4 *)c)[0] = AES_Round2(AES0, AES1, ((uint4 *)c)[0], ((uint4 *)a)[0]);
668668
#endif

xmrstak/backend/amd/amd_gpu/opencl/wolf-aes.cl

+13
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,19 @@ uint4 AES_Round2(const __local uint *AES0, const __local uint *AES1, const uint4
119119
return key;
120120
}
121121

122+
uint4 AES_Round2_bittube2(const __local uint *AES0, const __local uint *AES1, uint4 X, uint4 key)
123+
{
124+
key.s0 ^= AES0[BYTE(X.s0, 0)] ^ rotate(AES0[BYTE(X.s2, 2)] ^ AES1[BYTE(X.s3, 3)], 16u) ^ AES1[BYTE(X.s1, 1)];
125+
X.s0 ^= key.s0;
126+
key.s1 ^= AES0[BYTE(X.s1, 0)] ^ rotate(AES0[BYTE(X.s3, 2)] ^ AES1[BYTE(X.s0, 3)], 16u) ^ AES1[BYTE(X.s2, 1)];
127+
X.s1 ^= key.s1;
128+
key.s2 ^= AES0[BYTE(X.s2, 0)] ^ rotate(AES0[BYTE(X.s0, 2)] ^ AES1[BYTE(X.s1, 3)], 16u) ^ AES1[BYTE(X.s3, 1)];
129+
X.s2 ^= key.s2;
130+
key.s3 ^= AES0[BYTE(X.s3, 0)] ^ rotate(AES0[BYTE(X.s1, 2)] ^ AES1[BYTE(X.s2, 3)], 16u) ^ AES1[BYTE(X.s0, 1)];
131+
132+
return key;
133+
}
134+
122135
#endif
123136

124137
)==="

xmrstak/backend/amd/config.tpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ GPUCONFIG
4848
* WARNING: experimental option
4949
*
5050
* 0 = disable auto tuning
51-
* 10 or higher = recommended value if you not already know the best intensity
51+
* 10 or higher = recommended value if you don't already know the best intensity
5252
*/
5353
"auto_tune" : 0,
5454

xmrstak/version.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#endif
1919

2020
#define XMR_STAK_NAME "xmr-stak"
21-
#define XMR_STAK_VERSION "2.7.0-hide-2.2.0"
21+
#define XMR_STAK_VERSION "2.7.1-hide-2.2.1"
2222

2323
#if defined(_WIN32)
2424
#define OS_TYPE "win"

0 commit comments

Comments
 (0)