aboutsummaryrefslogtreecommitdiff
path: root/DriverOptions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'DriverOptions.cpp')
-rw-r--r--DriverOptions.cpp17
1 files changed, 1 insertions, 16 deletions
diff --git a/DriverOptions.cpp b/DriverOptions.cpp
index 6615e519..94fd5942 100644
--- a/DriverOptions.cpp
+++ b/DriverOptions.cpp
@@ -66,7 +66,7 @@ DriverOptions::DriverOptions(int argc, char** argv)
("compute,c",
po::value<std::vector<std::string>>()->
multitoken()->default_value(std::vector<std::string>{"GpuAcc"}, "{GpuAcc}"),
- "Which backend to run layers on. Possible values are: CpuRef, CpuAcc, GpuAcc")
+ "Which backend to run layers on. Examples of possible values are: CpuRef, CpuAcc, GpuAcc")
("verbose-logging,v",
po::bool_switch(&m_VerboseLogging),
@@ -120,25 +120,10 @@ DriverOptions::DriverOptions(int argc, char** argv)
}
const std::vector<std::string> backends = variablesMap["compute"].as<std::vector<std::string>>();
- const std::vector<string> supportedDevices({"CpuRef", "CpuAcc", "GpuAcc"});
m_Backends.reserve(backends.size());
-
for (auto&& backend : backends)
{
- if (std::find(supportedDevices.cbegin(), supportedDevices.cend(), backend) == supportedDevices.cend())
- {
- ALOGW("Requested unknown backend %s", backend.c_str());
- }
- else
- {
m_Backends.emplace_back(backend);
- }
- }
-
- if (m_Backends.empty())
- {
- m_Backends.emplace_back("GpuAcc");
- ALOGW("No known backend specified. Defaulting to: GpuAcc");
}
if (!unsupportedOperationsAsString.empty())