Browse Source

Merge pull request #2189 from LefterisJP/fix_macosx_opencl_segfault

OpenCL in MacosX does not like static variables
cl-refactor
Gav Wood 9 years ago
parent
commit
d5fd671536
  1. 3
      libethash-cl/ethash_cl_miner.cpp

3
libethash-cl/ethash_cl_miner.cpp

@ -429,7 +429,8 @@ void ethash_cl_miner::search(uint8_t const* header, uint64_t target, search_hook
};
queue<pending_batch> pending;
static uint32_t const c_zero = 0;
// this can't be a static because in MacOSX OpenCL implementation a segfault occurs when a static is passed to OpenCL functions
uint32_t const c_zero = 0;
// update header constant buffer
m_queue.enqueueWriteBuffer(m_header, false, 0, 32, header);

Loading…
Cancel
Save