summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2014-11-17 10:38:14 +0200
committerTor Lillqvist <tml@collabora.com>2014-11-17 12:18:54 +0200
commite6a441ccc19aacdde335c2282047631e0baf40cd (patch)
tree5ebf930d31b3a294d5dccfa2d5b91057462f2f1d /sc
parentfbe3a3cf6070caba35e0c7b8e6fffff15ed6136f (diff)
Insert some fairly generic fallback whitelist entries for now
Change-Id: I1887a32aeef8097e3e8297d6bddc51179dd65127
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/tool/calcconfig.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/sc/source/core/tool/calcconfig.cxx b/sc/source/core/tool/calcconfig.cxx
index 0ff048b71178..c93d48212835 100644
--- a/sc/source/core/tool/calcconfig.cxx
+++ b/sc/source/core/tool/calcconfig.cxx
@@ -45,9 +45,18 @@ void ScCalcConfig::setOpenCLConfigToDefault()
maOpenCLSubsetOpCodes.insert(ocAverage);
maOpenCLSubsetOpCodes.insert(ocSumIfs);
+ // This entry we have had for some time (when blacklisting was
+ // done elsewhere in the code), so presumably there is a known
+ // good reason for it.
maOpenCLBlackList.insert(OpenCLImplMatcher("Windows", "*", "Intel(R) Corporation", "*", "9.17.10.2884", ""));
+ // This is what I have tested on Linux and it works for our unit tests.
maOpenCLWhiteList.insert(OpenCLImplMatcher("Linux", "*", "Advanced Micro Devices, Inc.", "*", "1445.5 (sse2,avx)", ""));
+
+ // For now, assume that AMD, Intel and NVIDIA drivers are good
+ maOpenCLWhiteList.insert(OpenCLImplMatcher("*", "*", "Advanced Micro Devices, Inc.", "*", "*", ""));
+ maOpenCLWhiteList.insert(OpenCLImplMatcher("*", "*", "Intel(R) Corporation", "*", "*", ""));
+ maOpenCLWhiteList.insert(OpenCLImplMatcher("*", "*", "NVIDIA Corporation", "*", "*", ""));
}
void ScCalcConfig::reset()