From b2406254df58301b7b06545f0f8f130b04a2d8f8 Mon Sep 17 00:00:00 2001
From: James Stevens <jdsteve2@illinois.edu>
Date: Tue, 12 May 2015 17:24:36 -0500
Subject: [PATCH] notes in comments

---
 loopy/statistics.py | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/loopy/statistics.py b/loopy/statistics.py
index d514e852f..6c6a3a8a4 100755
--- a/loopy/statistics.py
+++ b/loopy/statistics.py
@@ -224,6 +224,16 @@ class SubscriptCounter(CombineMapper):
     def map_variable(self, expr):
         return 0
 
+#TODO find stride looking in ArrayBase.dim tag
+'''
+for each instruction, find which iname is associated with local id0 (iname_to_tag)
+then for each array axis in that instruction, run through all axes and see if local id0 iname occurs
+for each axis where this occurs, see if stride=1 (using coefficient collecter)
+
+variable has dimTags (one for each axis), 
+localid 0 is threadidx.x
+'''
+
 
 # to evaluate poly: poly.eval_with_dict(dictionary)
 def get_op_poly(knl):
-- 
GitLab