summaryrefslogtreecommitdiff
path: root/src/kernels/common.opencl
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernels/common.opencl')
-rw-r--r--src/kernels/common.opencl7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/kernels/common.opencl b/src/kernels/common.opencl
index 0d29c7a6..2e1d8f90 100644
--- a/src/kernels/common.opencl
+++ b/src/kernels/common.opencl
@@ -82,8 +82,11 @@ R"(
// =================================================================================================
-// Don't use the non-IEEE754 compliant OpenCL built-in mad() instruction
-#define USE_CL_MAD 0
+// Don't use the non-IEEE754 compliant OpenCL built-in mad() instruction per default. For specific
+// devices, this is enabled (see src/routine.cc).
+#ifndef USE_CL_MAD
+ #define USE_CL_MAD 0
+#endif
// Sets a variable to zero
#if PRECISION == 3232 || PRECISION == 6464