summaryrefslogtreecommitdiffstats
path: root/xmrstak
diff options
context:
space:
mode:
authorfireice-uk <fireice-uk@users.noreply.github.com>2018-03-25 21:16:41 +0100
committerGitHub <noreply@github.com>2018-03-25 21:16:41 +0100
commit5fd213d0a8ff7fbc518658008ed8d57e7f107359 (patch)
treef9b77e556b08b3945240e2b42bb5ba88638b4c93 /xmrstak
parent608c70f4bd88c1cc79d7d8d7d116d8be3fb14f04 (diff)
parent46663db4d23a194bfd7085ec16304cb22eaae8b8 (diff)
downloadxmr-stak-5fd213d0a8ff7fbc518658008ed8d57e7f107359.zip
xmr-stak-5fd213d0a8ff7fbc518658008ed8d57e7f107359.tar.gz
Merge pull request #1205 from psychocrypt/topic-revertInputSizeChange
revert input size change
Diffstat (limited to 'xmrstak')
-rw-r--r--xmrstak/backend/nvidia/nvcc_code/cuda_extra.cu5
1 files changed, 3 insertions, 2 deletions
diff --git a/xmrstak/backend/nvidia/nvcc_code/cuda_extra.cu b/xmrstak/backend/nvidia/nvcc_code/cuda_extra.cu
index 0925fd5..c2a1f87 100644
--- a/xmrstak/backend/nvidia/nvcc_code/cuda_extra.cu
+++ b/xmrstak/backend/nvidia/nvcc_code/cuda_extra.cu
@@ -127,7 +127,7 @@ __global__ void cryptonight_extra_gpu_prepare( int threads, uint32_t * __restric
uint32_t ctx_b[4];
uint32_t ctx_key1[40];
uint32_t ctx_key2[40];
- uint32_t input[28];
+ uint32_t input[21];
memcpy( input, d_input, len );
//*((uint32_t *)(((char *)input) + 39)) = startNonce + thread;
@@ -299,7 +299,8 @@ extern "C" int cryptonight_extra_cpu_init(nvid_ctx* ctx)
CUDA_CHECK(ctx->device_id, cudaMalloc(&ctx->d_ctx_text, 32 * sizeof(uint32_t) * wsize));
CUDA_CHECK(ctx->device_id, cudaMalloc(&ctx->d_ctx_a, 4 * sizeof(uint32_t) * wsize));
CUDA_CHECK(ctx->device_id, cudaMalloc(&ctx->d_ctx_b, ctx_b_size));
- CUDA_CHECK(ctx->device_id, cudaMalloc(&ctx->d_input, 28 * sizeof (uint32_t ) ));
+ // POW block format http://monero.wikia.com/wiki/PoW_Block_Header_Format
+ CUDA_CHECK(ctx->device_id, cudaMalloc(&ctx->d_input, 21 * sizeof (uint32_t ) ));
CUDA_CHECK(ctx->device_id, cudaMalloc(&ctx->d_result_count, sizeof (uint32_t ) ));
CUDA_CHECK(ctx->device_id, cudaMalloc(&ctx->d_result_nonce, 10 * sizeof (uint32_t ) ));
CUDA_CHECK_MSG(
OpenPOWER on IntegriCloud