From 611b2dc4efb467caeccc93054c61a919101c04e5 Mon Sep 17 00:00:00 2001 From: arghdos <arghdos@gmail.com> Date: Sat, 10 Dec 2016 11:36:11 -0500 Subject: [PATCH] add opencl ref --- loopy/library/reduction.py | 1 + 1 file changed, 1 insertion(+) diff --git a/loopy/library/reduction.py b/loopy/library/reduction.py index 6ea57cb47..8eaf4ac38 100644 --- a/loopy/library/reduction.py +++ b/loopy/library/reduction.py @@ -136,6 +136,7 @@ def get_le_neutral(dtype): # OpenCL 1.1, section 6.11.2 return var("INFINITY") elif dtype.numpy_dtype.kind == "i": + # OpenCL 1.1, section 6.11.3 if dtype.numpy_dtype.itemsize == 4: #32 bit integer return var("INT_MAX") -- GitLab