COMPMID-3929: Add method to get CL program binaries
authorMichalis Spyrou <michalis.spyrou@arm.com>
Wed, 28 Oct 2020 19:23:09 +0000 (19:23 +0000)
committerMichalis Spyrou <michalis.spyrou@arm.com>
Thu, 29 Oct 2020 15:48:00 +0000 (15:48 +0000)
Signed-off-by: Michalis Spyrou <michalis.spyrou@arm.com>
Change-Id: I437ba17ff713c003a1edf7efa9d07049f1af305e
Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/c/VisualCompute/ComputeLibrary/+/272734
Tested-by: bsgcomp <bsgcomp@arm.com>
Reviewed-by: Manuel Bottini <manuel.bottini@arm.com>
Comments-Addressed: bsgcomp <bsgcomp@arm.com>
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/4283
Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
arm_compute/core/CL/CLCompileContext.h

index f54fd0186a233a953b1499333963c3d9a98bd7e9..6f6dc18b85991e5e6289bc1b1294bedca570cd40 100644 (file)
@@ -118,6 +118,14 @@ public:
     {
         return _name;
     }
+    /** Returns program binary data.
+     *
+     * @return Program's binary data.
+     */
+    const std::vector<unsigned char> &binary() const
+    {
+        return _binary;
+    }
     /** User-defined conversion to the underlying CL program.
      *
      * @return The CL program object.