summaryrefslogtreecommitdiff
path: root/src/database
diff options
context:
space:
mode:
authorCedric Nugteren <web@cedricnugteren.nl>2018-05-30 22:59:04 +0200
committerCedric Nugteren <web@cedricnugteren.nl>2018-05-30 22:59:04 +0200
commitff4d5558a6d945592cc51760628a77237cd30f67 (patch)
treec9d7a0df1b35409a1c06196afb0ae3a2b029f9eb /src/database
parenta8bb0c9f3ccf434d63ad94e4445ee5749b2b38a4 (diff)
Widened Apple OpenCL check, added way to debug too-large-workgroups issue
Diffstat (limited to 'src/database')
-rw-r--r--src/database/database.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/database/database.cpp b/src/database/database.cpp
index 60851fe7..fca3102d 100644
--- a/src/database/database.cpp
+++ b/src/database/database.cpp
@@ -99,7 +99,8 @@ Database::Database(const Device &device, const std::string &kernel_name,
if (device.Type() == "CPU") {
const auto extensions = device.Capabilities();
const auto is_apple = (extensions.find("cl_APPLE_SetMemObjectDestructor") == std::string::npos) ? false : true;
- if (is_apple) {
+ const auto is_likely_apple = device.MaxWorkGroupSize() <= 32;
+ if (is_apple || is_likely_apple) {
databases.push_front(apple_cpu_fallback);
}
}