diff options
author | Vidhya Sudhan Loganathan <vidhyasudhan.loganathan@arm.com> | 2018-05-25 13:21:26 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:52:54 +0000 |
commit | f1f490634f3273e4669f16e663071554df291bea (patch) | |
tree | 3e4e39f3aa5a7ef26cd0d01079a971ad949738e4 /arm_compute/core/CL/CLKernelLibrary.h | |
parent | 2345f4349761d6c78200f43e1a78289d215825c4 (diff) | |
download | ComputeLibrary-f1f490634f3273e4669f16e663071554df291bea.tar.gz |
COMPMID-655 : Check FP16 is supported by the GPU
Change-Id: I507b04680a4e88426b682bd0be03bccb560ec78d
Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/132589
Tested-by: Jenkins <bsgcomp@arm.com>
Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'arm_compute/core/CL/CLKernelLibrary.h')
-rw-r--r-- | arm_compute/core/CL/CLKernelLibrary.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arm_compute/core/CL/CLKernelLibrary.h b/arm_compute/core/CL/CLKernelLibrary.h index f0dc0b24cf..97537c05d0 100644 --- a/arm_compute/core/CL/CLKernelLibrary.h +++ b/arm_compute/core/CL/CLKernelLibrary.h @@ -329,6 +329,12 @@ public: */ void add_built_program(const std::string &built_program_name, cl::Program program); + /** Returns true if FP16 is supported by the CL device + * + * @return true if the CL device supports FP16 + */ + bool fp16_supported() const; + private: /** Load program and its dependencies. * |