aboutsummaryrefslogtreecommitdiff
path: root/examples/cl_convolution.cpp
diff options
context:
space:
mode:
authorAnthony Barbier <anthony.barbier@arm.com>2017-07-17 15:22:17 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-09-17 14:16:42 +0100
commit15d5ac8dd039132926ac8012559ca5e3a405f858 (patch)
tree8969385f54cc65958ed8ab3825c992a91970f486 /examples/cl_convolution.cpp
parent2ca209eaf3e1dee31bc2287be1f4e501697456db (diff)
downloadComputeLibrary-15d5ac8dd039132926ac8012559ca5e3a405f858.tar.gz
COMPMID-415 Fix issue with OpenCL examples
Change-Id: Ie4797e88fd2ad38f30cb69651ed37481b835fae8 Reviewed-on: http://mpd-gerrit.cambridge.arm.com/80781 Reviewed-by: Moritz Pflanzer <moritz.pflanzer@arm.com> Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
Diffstat (limited to 'examples/cl_convolution.cpp')
-rw-r--r--examples/cl_convolution.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/cl_convolution.cpp b/examples/cl_convolution.cpp
index 06f6f144e1..b780193f14 100644
--- a/examples/cl_convolution.cpp
+++ b/examples/cl_convolution.cpp
@@ -21,7 +21,10 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
-#define ARM_COMPUTE_CL /* So that OpenCL exceptions get caught too */
+#ifndef ARM_COMPUTE_CL /* Needed by Utils.cpp to handle OpenCL exceptions properly */
+#error "This example needs to be built with -DARM_COMPUTE_CL"
+#endif /* ARM_COMPUTE_CL */
+
#include "arm_compute/core/Types.h"
#include "arm_compute/runtime/CL/CLFunctions.h"
#include "arm_compute/runtime/CL/CLScheduler.h"