From eeda3ca4cf7203ec0e04dad31029bd86f3fd83f2 Mon Sep 17 00:00:00 2001 From: Genoil Date: Thu, 21 Apr 2016 09:30:09 +0200 Subject: [PATCH] amd opencl build options bug fix --- libethash-cl/ethash_cl_miner.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libethash-cl/ethash_cl_miner.cpp b/libethash-cl/ethash_cl_miner.cpp index def4a4af4..48d54a755 100644 --- a/libethash-cl/ethash_cl_miner.cpp +++ b/libethash-cl/ethash_cl_miner.cpp @@ -376,9 +376,11 @@ bool ethash_cl_miner::init( computeCapability = computeCapabilityMajor * 10 + computeCapabilityMinor; 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 m_context = cl::Context(vector(&device, &device + 1)); m_queue = cl::CommandQueue(m_context, device);