Browse Source
OpenCL: Remove unused device search method
cl-refactor
Paweł Bylica
8 years ago
No known key found for this signature in database
GPG Key ID: 7A0C037434FE77EF
2 changed files with
0 additions and
13 deletions
-
libethash-cl/ethash_cl_miner.cpp
-
libethash-cl/ethash_cl_miner.h
|
|
@ -222,18 +222,6 @@ unsigned ethash_cl_miner::s_extraRequiredGPUMem; |
|
|
|
unsigned ethash_cl_miner::s_workgroupSize = ethash_cl_miner::c_defaultLocalWorkSize; |
|
|
|
unsigned ethash_cl_miner::s_initialGlobalWorkSize = ethash_cl_miner::c_defaultGlobalWorkSizeMultiplier * ethash_cl_miner::c_defaultLocalWorkSize; |
|
|
|
|
|
|
|
bool ethash_cl_miner::searchForAllDevices(function<bool(cl::Device const&)> _callback) |
|
|
|
{ |
|
|
|
vector<cl::Platform> platforms = getPlatforms(); |
|
|
|
if (platforms.empty()) |
|
|
|
return false; |
|
|
|
for (unsigned i = 0; i < platforms.size(); ++i) |
|
|
|
if (searchForAllDevices(i, _callback)) |
|
|
|
return true; |
|
|
|
|
|
|
|
return false; |
|
|
|
} |
|
|
|
|
|
|
|
bool ethash_cl_miner::searchForAllDevices(unsigned _platformId, function<bool(cl::Device const&)> _callback) |
|
|
|
{ |
|
|
|
vector<cl::Platform> platforms = getPlatforms(); |
|
|
|
|
|
@ -43,7 +43,6 @@ public: |
|
|
|
~ethash_cl_miner(); |
|
|
|
|
|
|
|
static bool searchForAllDevices(unsigned _platformId, std::function<bool(cl::Device const&)> _callback); |
|
|
|
static bool searchForAllDevices(std::function<bool(cl::Device const&)> _callback); |
|
|
|
static void doForAllDevices(unsigned _platformId, std::function<void(cl::Device const&)> _callback); |
|
|
|
static void doForAllDevices(std::function<void(cl::Device const&)> _callback); |
|
|
|
static unsigned getNumDevices(unsigned _platformId = 0); |
|
|
|