summaryrefslogtreecommitdiffstats
path: root/xmrstak/backend/amd/amd_gpu/gpu.cpp
diff options
context:
space:
mode:
authorfireice-uk <fireice-uk@users.noreply.github.com>2017-12-04 15:47:31 +0000
committerGitHub <noreply@github.com>2017-12-04 15:47:31 +0000
commita78b62d19756865879c54eac00c1c3f4d983d3a1 (patch)
treedc5cd5b9f4bd1cb98e51e163b85e78cfad4edc67 /xmrstak/backend/amd/amd_gpu/gpu.cpp
parent9c6bb11026de14c1a8d9eaecf5e70517d7a903e5 (diff)
parentcfe64725f063b63eafbeeef7e57cad7448cb3d15 (diff)
downloadxmr-stak-a78b62d19756865879c54eac00c1c3f4d983d3a1.zip
xmr-stak-a78b62d19756865879c54eac00c1c3f4d983d3a1.tar.gz
Merge pull request #315 from psychocrypt/topic-amdScratchpadIndexing
add AMD scratchpad indexing option
Diffstat (limited to 'xmrstak/backend/amd/amd_gpu/gpu.cpp')
-rw-r--r--xmrstak/backend/amd/amd_gpu/gpu.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmrstak/backend/amd/amd_gpu/gpu.cpp b/xmrstak/backend/amd/amd_gpu/gpu.cpp
index 879a2e4..42f6388 100644
--- a/xmrstak/backend/amd/amd_gpu/gpu.cpp
+++ b/xmrstak/backend/amd/amd_gpu/gpu.cpp
@@ -332,7 +332,8 @@ 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", hasIterations, threadMemMask, int_port(ctx->workSize));
+ "-DITERATIONS=%d -DMASK=%d -DWORKSIZE=%llu -DSTRIDED_INDEX=%d",
+ hasIterations, threadMemMask, int_port(ctx->workSize), ctx->stridedIndex ? 1 : 0);
ret = clBuildProgram(ctx->Program, 1, &ctx->DeviceID, options, NULL, NULL);
if(ret != CL_SUCCESS)
{
OpenPOWER on IntegriCloud