diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2016-06-14 14:29:53 +0200 |
---|---|---|
committer | Cedric Nugteren <web@cedricnugteren.nl> | 2016-06-14 14:29:53 +0200 |
commit | 6e2017c67dcaafaac4b43b7a1161a44658fb5f4a (patch) | |
tree | 3cdbeced249e326094048f8f7bd4961357fb189f /src | |
parent | 995a528cecde16ff45318b8fc8c038197173bfaf (diff) |
Added support for FP16 on ARM Mali-T628 (officially not supported)
Diffstat (limited to 'src')
-rw-r--r-- | src/utilities.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/utilities.cc b/src/utilities.cc index 7649b05c..851e6d9f 100644 --- a/src/utilities.cc +++ b/src/utilities.cc @@ -375,6 +375,7 @@ template <> bool PrecisionSupported<double2>(const Device &device) { } template <> bool PrecisionSupported<half>(const Device &device) { auto extensions = device.Capabilities(); + if (device.Name() == "Mali-T628") { return true; } // supports fp16 but not cl_khr_fp16 officially return (extensions.find(kKhronosHalfPrecision) == std::string::npos) ? false : true; } |