From 2ed5c11ce80e259084d8a7f9af117b6b1a3a6a17 Mon Sep 17 00:00:00 2001 From: Tim Warburton Date: Wed, 2 Nov 2011 00:15:06 -0500 Subject: [PATCH] Minor fix to storage shape adjustment. --- loopy/preprocess.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loopy/preprocess.py b/loopy/preprocess.py index 4d463ec3d..7a6154901 100644 --- a/loopy/preprocess.py +++ b/loopy/preprocess.py @@ -460,7 +460,7 @@ def adjust_local_temp_var_storage(kernel): # will choose smallest increment 'automatically' if new_mult < min_mult: - new_lmem_use = (other_loctemp_nbytes + new_lmem_use = (sum(other_loctemp_nbytes) + temp_var.dtype.itemsize*product(test_storage_shape)) if new_lmem_use < lmem_size: new_storage_shape = test_storage_shape -- GitLab