Browse Source

OpenCL: Remove getNumPlatforms() method

cl-refactor
Paweł Bylica 8 years ago
parent
commit
4d519ffcae
No known key found for this signature in database GPG Key ID: 7A0C037434FE77EF
  1. 8
      libethash-cl/ethash_cl_miner.cpp
  2. 1
      libethash-cl/ethash_cl_miner.h

8
libethash-cl/ethash_cl_miner.cpp

@ -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();

1
libethash-cl/ethash_cl_miner.h

@ -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();

Loading…
Cancel
Save