diff options
author | fireice-uk <fireice-uk@users.noreply.github.com> | 2018-04-09 16:41:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-09 16:41:07 +0100 |
commit | ed6513aa5f0c652bb9f7864da892e7c1df02230b (patch) | |
tree | 0c430c81d5191f0b70289887ed3e15e8848abc27 /xmrstak/backend/amd/amd_gpu/gpu.hpp | |
parent | 100b0da790870932c8416c271b6630bf36b89ad0 (diff) | |
parent | a57976439b1322eecb5e29198f3d9676d6f06909 (diff) | |
download | xmr-stak-ed6513aa5f0c652bb9f7864da892e7c1df02230b.zip xmr-stak-ed6513aa5f0c652bb9f7864da892e7c1df02230b.tar.gz |
Merge pull request #1372 from psychocrypt/topic-amdForkSimple
amd simplify kernel for different algorithms
Diffstat (limited to 'xmrstak/backend/amd/amd_gpu/gpu.hpp')
-rw-r--r-- | xmrstak/backend/amd/amd_gpu/gpu.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xmrstak/backend/amd/amd_gpu/gpu.hpp b/xmrstak/backend/amd/amd_gpu/gpu.hpp index a387b15..0db6c90 100644 --- a/xmrstak/backend/amd/amd_gpu/gpu.hpp +++ b/xmrstak/backend/amd/amd_gpu/gpu.hpp @@ -35,8 +35,8 @@ struct GpuContext cl_mem InputBuffer; cl_mem OutputBuffer; cl_mem ExtraBuffers[6]; - cl_program Program; - cl_kernel Kernels[8]; + cl_program Program[2]; + cl_kernel Kernels[2][8]; size_t freeMem; int computeUnits; std::string name; @@ -50,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, xmrstak_algo miner_algo, uint32_t version); -size_t XMRRunJob(GpuContext* ctx, cl_uint* HashOutput, xmrstak_algo miner_algo, uint32_t version); +size_t XMRSetJob(GpuContext* ctx, uint8_t* input, size_t input_len, uint64_t target, xmrstak_algo miner_algo); +size_t XMRRunJob(GpuContext* ctx, cl_uint* HashOutput, xmrstak_algo miner_algo); |