Improved --print-platforms option.
This commit is contained in:
parent
d8d173db4d
commit
476e5dcb18
5 changed files with 83 additions and 38 deletions
|
@ -49,17 +49,6 @@
|
|||
namespace xmrig {
|
||||
|
||||
|
||||
#ifdef XMRIG_FEATURE_OPENCL
|
||||
static void printPlatforms()
|
||||
{
|
||||
const auto platforms = OclPlatform::get();
|
||||
for (const auto &platform : platforms) {
|
||||
printf("#%zu: %s\n", platform.index(), platform.vendor().data());
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
static int showVersion()
|
||||
{
|
||||
printf(APP_NAME " " APP_VERSION "\n built on " __DATE__
|
||||
|
@ -186,7 +175,7 @@ int xmrig::Entry::exec(const Process &process, Id id)
|
|||
# ifdef XMRIG_FEATURE_OPENCL
|
||||
case Platforms:
|
||||
if (OclLib::init()) {
|
||||
printPlatforms();
|
||||
OclPlatform::print();
|
||||
}
|
||||
return 0;
|
||||
# endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue