From 491bf41356bb9a636c92556db05516064307f675 Mon Sep 17 00:00:00 2001 From: Alexander Karsakov Date: Thu, 28 Aug 2014 17:01:49 +0400 Subject: [PATCH] Disabled native_sqrt for double, since it may be not implemented and gives compilation error. --- modules/core/src/opencl/arithm.cl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/core/src/opencl/arithm.cl b/modules/core/src/opencl/arithm.cl index 3478c1a518..345066622c 100644 --- a/modules/core/src/opencl/arithm.cl +++ b/modules/core/src/opencl/arithm.cl @@ -293,7 +293,11 @@ #define PROCESS_ELEM storedst(pown(srcelem1, srcelem2)) #elif defined OP_SQRT +#if depth <= 5 #define PROCESS_ELEM storedst(native_sqrt(srcelem1)) +#else +#define PROCESS_ELEM storedst(sqrt(srcelem1)) +#endif #elif defined OP_LOG #define PROCESS_ELEM \