Browse Source

amd opencl build options bug fix

cl-refactor
Genoil 9 years ago
parent
commit
eeda3ca4cf
  1. 6
      libethash-cl/ethash_cl_miner.cpp

6
libethash-cl/ethash_cl_miner.cpp

@ -376,9 +376,11 @@ bool ethash_cl_miner::init(
computeCapability = computeCapabilityMajor * 10 + computeCapabilityMinor; computeCapability = computeCapabilityMajor * 10 + computeCapabilityMinor;
int maxregs = computeCapability >= 35 ? 72 : 63; int maxregs = computeCapability >= 35 ? 72 : 63;
sprintf(options, "-cl-nv-verbose -cl-nv-maxrregcount=%d", maxregs);// , computeCapability); sprintf(options, "-cl-nv-maxrregcount=%d", maxregs);// , computeCapability);
}
else {
sprintf(options, "");
} }
// create context // create context
m_context = cl::Context(vector<cl::Device>(&device, &device + 1)); m_context = cl::Context(vector<cl::Device>(&device, &device + 1));
m_queue = cl::CommandQueue(m_context, device); m_queue = cl::CommandQueue(m_context, device);

Loading…
Cancel
Save