diff options
author | fireice-uk <fireice-uk@users.noreply.github.com> | 2018-02-22 00:02:12 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-22 00:02:12 +0000 |
commit | 7b8506464ce9b099c0984d19978630a74aaf1e42 (patch) | |
tree | 2f2d316f8936770d34d2523fdea3c5ae5f21534c /xmrstak/backend/amd/amd_gpu/gpu.cpp | |
parent | 0ad614836e53c4bab8bca8ea0088cd41f7d6d574 (diff) | |
parent | dc4e3793454a8ac7ae85704e7997d878c378b0aa (diff) | |
download | xmr-stak-7b8506464ce9b099c0984d19978630a74aaf1e42.zip xmr-stak-7b8506464ce9b099c0984d19978630a74aaf1e42.tar.gz |
Merge pull request #1109 from psychocrypt/fix-memChunk
fix broken memchunk feature
Diffstat (limited to 'xmrstak/backend/amd/amd_gpu/gpu.cpp')
-rw-r--r-- | xmrstak/backend/amd/amd_gpu/gpu.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmrstak/backend/amd/amd_gpu/gpu.cpp b/xmrstak/backend/amd/amd_gpu/gpu.cpp index 8c4a40d..95d30f7 100644 --- a/xmrstak/backend/amd/amd_gpu/gpu.cpp +++ b/xmrstak/backend/amd/amd_gpu/gpu.cpp @@ -336,7 +336,7 @@ size_t InitOpenCLGpu(cl_context opencl_ctx, GpuContext* ctx, const char* source_ char options[256]; snprintf(options, sizeof(options), - "-DITERATIONS=%d -DMASK=%d -DWORKSIZE=%llu -DSTRIDED_INDEX=%d -DMEM_CHUNK=%d -DCOMP_MODE=%d", + "-DITERATIONS=%d -DMASK=%d -DWORKSIZE=%llu -DSTRIDED_INDEX=%d -DMEM_CHUNK_EXPONENT=%d -DCOMP_MODE=%d", hasIterations, threadMemMask, int_port(ctx->workSize), ctx->stridedIndex, int(1u<<ctx->memChunk), ctx->compMode ? 1 : 0); ret = clBuildProgram(ctx->Program, 1, &ctx->DeviceID, options, NULL, NULL); if(ret != CL_SUCCESS) |