summaryrefslogtreecommitdiffstats
path: root/xmrstak/backend/amd/amd_gpu/gpu.hpp
diff options
context:
space:
mode:
authorpsychocrypt <psychocryptHPC@gmail.com>2018-03-25 14:52:17 +0200
committerGitHub <noreply@github.com>2018-03-25 14:52:17 +0200
commit453ee104f656732133d47f0dafa728cb0fb7dea3 (patch)
tree29efb953d9851b352298369104bf777fa3bf34e1 /xmrstak/backend/amd/amd_gpu/gpu.hpp
parent5014bdda628f64ab780d02de371bac4997573d10 (diff)
parent1e7911e653a267ffd71199cdf7afaf1cfed5bad0 (diff)
downloadxmr-stak-453ee104f656732133d47f0dafa728cb0fb7dea3.zip
xmr-stak-453ee104f656732133d47f0dafa728cb0fb7dea3.tar.gz
Merge pull request #1197 from fireice-uk/topic-rc-2-3-0
XMR-Stak 2.3.0 RC
Diffstat (limited to 'xmrstak/backend/amd/amd_gpu/gpu.hpp')
-rw-r--r--xmrstak/backend/amd/amd_gpu/gpu.hpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/xmrstak/backend/amd/amd_gpu/gpu.hpp b/xmrstak/backend/amd/amd_gpu/gpu.hpp
index 8fb7168..a387b15 100644
--- a/xmrstak/backend/amd/amd_gpu/gpu.hpp
+++ b/xmrstak/backend/amd/amd_gpu/gpu.hpp
@@ -1,6 +1,7 @@
#pragma once
#include "xmrstak/misc/console.hpp"
+#include "xmrstak/jconf.hpp"
#if defined(__APPLE__)
#include <OpenCL/cl.h>
@@ -35,7 +36,7 @@ struct GpuContext
cl_mem OutputBuffer;
cl_mem ExtraBuffers[6];
cl_program Program;
- cl_kernel Kernels[7];
+ cl_kernel Kernels[8];
size_t freeMem;
int computeUnits;
std::string name;
@@ -49,7 +50,7 @@ int getAMDPlatformIdx();
std::vector<GpuContext> getAMDDevices(int index);
size_t InitOpenCL(GpuContext* ctx, size_t num_gpus, size_t platform_idx);
-size_t XMRSetJob(GpuContext* ctx, uint8_t* input, size_t input_len, uint64_t target);
-size_t XMRRunJob(GpuContext* ctx, cl_uint* HashOutput);
+size_t XMRSetJob(GpuContext* ctx, uint8_t* input, size_t input_len, uint64_t target, xmrstak_algo miner_algo, uint32_t version);
+size_t XMRRunJob(GpuContext* ctx, cl_uint* HashOutput, xmrstak_algo miner_algo, uint32_t version);
OpenPOWER on IntegriCloud