From 02e5316310982c4332b50fd71cc6d05273b80298 Mon Sep 17 00:00:00 2001 From: Peter Colberg Date: Wed, 20 Apr 2022 20:22:34 -0400 Subject: [PATCH] Enable macro MEM_DEBUG_MSG in debug mode This prints diagnostic information in acl_mem.cpp and acl_kernel.cpp. Signed-off-by: Peter Colberg --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5cf7e0e8..ef6e3eea 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -303,6 +303,7 @@ target_compile_definitions(acl_objs PUBLIC CL_USE_DEPRECATED_OPENCL_1_1_APIS=1 CL_USE_DEPRECATED_OPENCL_1_2_APIS=1 CL_TARGET_OPENCL_VERSION=300 + $<$:MEM_DEBUG_MSG> ) target_include_directories(acl_objs PUBLIC include) target_include_directories(acl_objs PRIVATE