Browse Source
OpenCL: Remove getNumPlatforms() 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
9 deletions
-
libethash-cl/ethash_cl_miner.cpp
-
libethash-cl/ethash_cl_miner.h
|
|
@ -165,14 +165,6 @@ std::vector<cl::Device> ethash_cl_miner::getDevices(std::vector<cl::Platform> co |
|
|
|
return devices; |
|
|
|
} |
|
|
|
|
|
|
|
unsigned ethash_cl_miner::getNumPlatforms() |
|
|
|
{ |
|
|
|
vector<cl::Platform> platforms = getPlatforms(); |
|
|
|
if (platforms.empty()) |
|
|
|
return 0; |
|
|
|
return platforms.size(); |
|
|
|
} |
|
|
|
|
|
|
|
unsigned ethash_cl_miner::getNumDevices(unsigned _platformId) |
|
|
|
{ |
|
|
|
vector<cl::Platform> platforms = getPlatforms(); |
|
|
|
|
|
@ -46,7 +46,6 @@ public: |
|
|
|
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 getNumPlatforms(); |
|
|
|
static unsigned getNumDevices(unsigned _platformId = 0); |
|
|
|
static std::string platform_info(unsigned _platformId = 0, unsigned _deviceId = 0); |
|
|
|
static void listDevices(); |
|
|
|