From ed83256798a760486cf0003b11894b078f122891 Mon Sep 17 00:00:00 2001 From: Lars Pensjo Date: Sat, 16 May 2015 23:13:45 +0200 Subject: [PATCH] Enable -G without --opencl-device Otherwise, -G doesn't work. --- eth/main.cpp | 3 +++ ethminer/main.cpp | 3 +++ 2 files changed, 6 insertions(+) diff --git a/eth/main.cpp b/eth/main.cpp index 1eed535cd..26305f4da 100644 --- a/eth/main.cpp +++ b/eth/main.cpp @@ -787,11 +787,14 @@ int main(int argc, char** argv) else if (arg == "-C" || arg == "--cpu") minerType = MinerType::CPU; else if (arg == "-G" || arg == "--opencl") + { minerType = MinerType::GPU; + miningThreads = 1; /*<< " -s,--import-secret Import a secret key into the key store and use as the default." << endl << " -S,--import-session-secret Import a secret key into the key store and use as the default for this session only." << endl << " --sign-key
Sign all transactions with the key of the given address." << endl << " --session-sign-key
Sign all transactions with the key of the given address for this session only." << endl*/ + } else if ((arg == "-s" || arg == "--import-secret") && i + 1 < argc) { Secret s(fromHex(argv[++i])); diff --git a/ethminer/main.cpp b/ethminer/main.cpp index 80895c975..c53fca481 100644 --- a/ethminer/main.cpp +++ b/ethminer/main.cpp @@ -398,7 +398,10 @@ int main(int argc, char** argv) else if (arg == "-C" || arg == "--cpu") minerType = MinerType::CPU; else if (arg == "-G" || arg == "--opencl") + { minerType = MinerType::GPU; + miningThreads = 1; + } else if ((arg == "-D" || arg == "--create-dag") && i + 1 < argc) { string m = boost::to_lower_copy(string(argv[++i]));