added new macros useful for tracking whether OpenCL impl run or not
refactored core using new macro
Merge pull request #2191 from ilya-lavrenov:tapi_macro