Skip to content
Snippets Groups Projects
Commit 8432c155 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Py3 print fix

parent c4a232e0
No related branches found
No related tags found
No related merge requests found
"""UI for kernel creation.""" """UI for kernel creation."""
from __future__ import division from __future__ import division, absolute_import, print_function
from __future__ import absolute_import
import six
from six.moves import range
from six.moves import zip
__copyright__ = "Copyright (C) 2012 Andreas Kloeckner" __copyright__ = "Copyright (C) 2012 Andreas Kloeckner"
...@@ -36,6 +32,9 @@ from loopy.kernel.data import ( ...@@ -36,6 +32,9 @@ from loopy.kernel.data import (
import islpy as isl import islpy as isl
from islpy import dim_type from islpy import dim_type
import six
from six.moves import range, zip
import re import re
import sys import sys
...@@ -904,9 +903,10 @@ def guess_arg_shape_if_requested(kernel, default_order): ...@@ -904,9 +903,10 @@ def guess_arg_shape_if_requested(kernel, default_order):
armap.access_range, i) + 1, armap.access_range, i) + 1,
constants_only=False))) constants_only=False)))
except: except:
print>>sys.stderr, "While trying to find shape axis %d of "\ print("While trying to find shape axis %d of "
"argument '%s', the following " \ "argument '%s', the following "
"exception occurred:" % (i, arg.name) "exception occurred:" % (i, arg.name),
file=sys.stderr)
raise raise
shape = tuple(shape) shape = tuple(shape)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment