Skip to content
Snippets Groups Projects
Unverified Commit 3eaf54b2 authored by fireice-uk's avatar fireice-uk Committed by GitHub
Browse files

Merge pull request #1486 from psychocrypt/fix-disableCache

fix that cli option `--noAMDCache`
parents 8a8db098 470c1cd5
No related branches found
No related tags found
No related merge requests found
...@@ -476,14 +476,14 @@ size_t InitOpenCLGpu(cl_context opencl_ctx, GpuContext* ctx, const char* source_ ...@@ -476,14 +476,14 @@ size_t InitOpenCLGpu(cl_context opencl_ctx, GpuContext* ctx, const char* source_
} }
while(status == CL_BUILD_IN_PROGRESS); while(status == CL_BUILD_IN_PROGRESS);
std::vector<size_t> binary_sizes(num_devices);
clGetProgramInfo (ctx->Program[ii], CL_PROGRAM_BINARY_SIZES, sizeof(size_t) * binary_sizes.size(), binary_sizes.data(), NULL);
std::vector<char*> all_programs(num_devices);
std::vector<std::vector<char>> program_storage;
if(xmrstak::params::inst().AMDCache) if(xmrstak::params::inst().AMDCache)
{ {
std::vector<size_t> binary_sizes(num_devices);
clGetProgramInfo (ctx->Program[ii], CL_PROGRAM_BINARY_SIZES, sizeof(size_t) * binary_sizes.size(), binary_sizes.data(), NULL);
std::vector<char*> all_programs(num_devices);
std::vector<std::vector<char>> program_storage;
int p_id = 0; int p_id = 0;
size_t mem_size = 0; size_t mem_size = 0;
// create memory structure to query all OpenCL program binaries // create memory structure to query all OpenCL program binaries
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment