From ef982457625e3e890ed729f542394dd915bccd62 Mon Sep 17 00:00:00 2001
From: Andreas Kloeckner <inform@tiker.net>
Date: Tue, 17 May 2011 13:41:39 -0500
Subject: [PATCH] Add an as_strided implementation to compyte, for compat with
 old numpy.

---
 pyopencl/array.py | 4 ++--
 pyopencl/compyte  | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/pyopencl/array.py b/pyopencl/array.py
index e10a0262..2cd48b2c 100644
--- a/pyopencl/array.py
+++ b/pyopencl/array.py
@@ -35,6 +35,7 @@ import pyopencl.elementwise as elementwise
 import pyopencl as cl
 from pytools import memoize_method
 from pyopencl.compyte.array import (
+        as_strided as _as_strided,
         f_contiguous_strides as _f_contiguous_strides, 
         c_contiguous_strides as _c_contiguous_strides, 
         ArrayFlags as _ArrayFlags,
@@ -316,8 +317,7 @@ class Array(object):
         if ary is None:
             ary = np.empty(self.shape, self.dtype)
 
-            from numpy.lib.stride_tricks import as_strided
-            ary = as_strided(ary, strides=self.strides)
+            ary = _as_strided(ary, strides=self.strides)
         else:
             if ary.size != self.size:
                 raise TypeError("'ary' has non-matching type")
diff --git a/pyopencl/compyte b/pyopencl/compyte
index e76d1484..17579cd8 160000
--- a/pyopencl/compyte
+++ b/pyopencl/compyte
@@ -1 +1 @@
-Subproject commit e76d14849c24f9b8ecb0f9c068a1dd17301b8d79
+Subproject commit 17579cd8a40f6b3e07a1a4ea8e4acc11102b6e12
-- 
GitLab