python testrunner/pypyjit_tests.py
in dir /build_dir/pypy-c-jit-linux-x86-64/build (timeout 4000 secs)
watching logfiles {'pytestLog': 'pypyjit_new.log'}
argv: ['python', 'testrunner/pypyjit_tests.py']
environment:
AUDITWHEEL_ARCH=x86_64
AUDITWHEEL_PLAT=manylinux2014_x86_64
AUDITWHEEL_POLICY=manylinux2014
DEVTOOLSET_ROOTPATH=/opt/rh/devtoolset-10/root
HOME=/home/buildslave
HOSTNAME=255659ffae49
LANG=en_US.UTF-8
LANGUAGE=en_US.UTF-8
LC_ALL=en_US.UTF-8
LD_LIBRARY_PATH=/usr/local/lib:/opt/rh/devtoolset-10/root/usr/lib64:/opt/rh/devtoolset-10/root/usr/lib:/opt/rh/devtoolset-10/root/usr/lib64/dyninst:/opt/rh/devtoolset-10/root/usr/lib/dyninst:/usr/local/lib64
LOGNAME=buildslave
PATH=/python27_virt/bin:/opt/rh/devtoolset-10/root/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig:/usr/local/lib/pkgconfig
PWD=/build_dir/pypy-c-jit-linux-x86-64/build
PYPY_LOCALBASE=/usr/local
PYPY_MAKE_PORTABLE=1
PYPY_USESSION_DIR=/tmp/pytest
SHELL=/bin/bash
SHLVL=2
SSL_CERT_FILE=/opt/_internal/certs.pem
TERM=xterm
TMPDIR=/tmp/pytest
USER=buildslave
USE_CURL=1
_=/python27_virt/bin/buildslave
using PTY: False
============================= test session starts ==============================
platform linux2 -- Python 2.7.18[pypy-8.0.0-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1
pytest-2.9.2 from /build_dir/pypy-c-jit-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/pypy-c-jit-linux-x86-64/build, inifile: pytest.ini
collected 1207 items
pypy/module/pypyjit/test_pypy_c/test_00_model.py .........................
pypy/module/pypyjit/test_pypy_c/test_alloc.py ...................................................
pypy/module/pypyjit/test_pypy_c/test_array.py .......
pypy/module/pypyjit/test_pypy_c/test_boolrewrite.py ......................................................................................................................................................................................................................................................................................................................................
pypy/module/pypyjit/test_pypy_c/test_buffers.py ..
pypy/module/pypyjit/test_pypy_c/test_bug.py .
pypy/module/pypyjit/test_pypy_c/test_call.py ..........................
pypy/module/pypyjit/test_pypy_c/test_containers.py ......................
pypy/module/pypyjit/test_pypy_c/test_cprofile.py .
pypy/module/pypyjit/test_pypy_c/test_exception.py .....
pypy/module/pypyjit/test_pypy_c/test_ffi.py s..s......
pypy/module/pypyjit/test_pypy_c/test_generators.py ...
pypy/module/pypyjit/test_pypy_c/test_getframe.py ..
pypy/module/pypyjit/test_pypy_c/test_globals.py .
pypy/module/pypyjit/test_pypy_c/test_import.py ..
pypy/module/pypyjit/test_pypy_c/test_instance.py ................
pypy/module/pypyjit/test_pypy_c/test_intbound.py ..................................................................................................................................................................................................................................................................................
pypy/module/pypyjit/test_pypy_c/test_jitlogparser.py .
pypy/module/pypyjit/test_pypy_c/test_math.py ..s..
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
pypy/module/pypyjit/test_pypy_c/test_min_max.py ...
pypy/module/pypyjit/test_pypy_c/test_misc.py .......................
pypy/module/pypyjit/test_pypy_c/test_shift.py ...........................................................................................................................................................................................................................
pypy/module/pypyjit/test_pypy_c/test_string.py ................
pypy/module/pypyjit/test_pypy_c/test_struct.py ......
pypy/module/pypyjit/test_pypy_c/test_thread.py ...
pypy/module/pypyjit/test_pypy_c/test_weakref.py .
=================================== FAILURES ===================================
____ TestMicroNumPy.test_vector_call2[+-float32-float32-13708-3427-1.0-3.0] ____
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000bde8b10>
op = '+', adtype = 'float32', bdtype = 'float32', result = 13708, count = 3427
a = 1.0, b = 3.0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000bde8b10>
func_or_src = <function main at 0x000000000b195880>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000bde86e8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x000000000b195f88>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
____ TestMicroNumPy.test_vector_call2[+-float32-float64-13708-3427-1.0-3.0] ____
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000e0e92b8>
op = '+', adtype = 'float32', bdtype = 'float64', result = 13708, count = 3427
a = 1.0, b = 3.0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000e0e92b8>
func_or_src = <function main at 0x000000000c7bfa60>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000e0e9130>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x000000000c7dc098>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
____ TestMicroNumPy.test_vector_call2[+-float64-float32-13708-3427-1.0-3.0] ____
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000cd5f718>
op = '+', adtype = 'float64', bdtype = 'float32', result = 13708, count = 3427
a = 1.0, b = 3.0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000cd5f718>
func_or_src = <function main at 0x000000000c7dd5b0>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000cd5f590>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x000000000bb32200>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
____ TestMicroNumPy.test_vector_call2[+-float64-float64-13708-3427-1.0-3.0] ____
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000a966950>
op = '+', adtype = 'float64', bdtype = 'float64', result = 13708, count = 3427
a = 1.0, b = 3.0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000a966950>
func_or_src = <function main at 0x000000000bb33b50>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000a9667c8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x000000000cba6098>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
_____ TestMicroNumPy.test_vector_call2[+-float32-int32-70587-7843-4.0-5.0] _____
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000a9ae2c0>
op = '+', adtype = 'float32', bdtype = 'int32', result = 70587, count = 7843
a = 4.0, b = 5.0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000a9ae2c0>
func_or_src = <function main at 0x000000000cba7718>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000a9ae138>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x000000000cba7c40>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
_____ TestMicroNumPy.test_vector_call2[+-float32-int64-70587-7843-4.0-5.0] _____
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000abe1130>
op = '+', adtype = 'float32', bdtype = 'int64', result = 70587, count = 7843
a = 4.0, b = 5.0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000abe1130>
func_or_src = <function main at 0x000000000cbd2cc8>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000abe0fa8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x000000000cbd3d30>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
_____ TestMicroNumPy.test_vector_call2[+-float32-int8-70587-7843-4.0-5.0] ______
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000a68da60>
op = '+', adtype = 'float32', bdtype = 'int8', result = 70587, count = 7843
a = 4.0, b = 5.0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000a68da60>
func_or_src = <function main at 0x000000000c6ad628>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000a6dc3d8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x000000000c6ad6a0>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
_____ TestMicroNumPy.test_vector_call2[+-float32-int16-70587-7843-4.0-5.0] _____
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000ad89248>
op = '+', adtype = 'float32', bdtype = 'int16', result = 70587, count = 7843
a = 4.0, b = 5.0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000ad89248>
func_or_src = <function main at 0x000000000c6df880>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000ad890c0>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x000000000c6dfda8>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
_____ TestMicroNumPy.test_vector_call2[+-float64-int32-70587-7843-4.0-5.0] _____
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000e06d750>
op = '+', adtype = 'float64', bdtype = 'int32', result = 70587, count = 7843
a = 4.0, b = 5.0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000e06d750>
func_or_src = <function main at 0x000000000c697f88>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000e06d5c8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x000000000bdc8548>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
_____ TestMicroNumPy.test_vector_call2[+-float64-int64-70587-7843-4.0-5.0] _____
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000c8f9cc8>
op = '+', adtype = 'float64', bdtype = 'int64', result = 70587, count = 7843
a = 4.0, b = 5.0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000c8f9cc8>
func_or_src = <function main at 0x000000000bdc94c0>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000c8f9b40>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x000000000bdc9a60>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
_____ TestMicroNumPy.test_vector_call2[+-float64-int8-70587-7843-4.0-5.0] ______
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000ac09d00>
op = '+', adtype = 'float64', bdtype = 'int8', result = 70587, count = 7843
a = 4.0, b = 5.0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000ac09d00>
func_or_src = <function main at 0x000000000e7d6278>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000ac09e88>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x000000000e7d62f0>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
_____ TestMicroNumPy.test_vector_call2[+-float64-int16-70587-7843-4.0-5.0] _____
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x00000000047e3a28>
op = '+', adtype = 'float64', bdtype = 'int16', result = 70587, count = 7843
a = 4.0, b = 5.0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x00000000047e3a28>
func_or_src = <function main at 0x000000000b7cc200>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x00000000022b5fa0>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x000000000b7cc980>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
____ TestMicroNumPy.test_vector_call2[+-int32-float32-20568-2571-9.0--1.0] _____
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000d372758>
op = '+', adtype = 'int32', bdtype = 'float32', result = 20568, count = 2571
a = 9.0, b = -1.0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000d372758>
func_or_src = <function main at 0x0000000009d4a818>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000d3725d0>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x0000000009d4acc8>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
____ TestMicroNumPy.test_vector_call2[+-int32-float64-20568-2571-9.0--1.0] _____
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000006ee8e90>
op = '+', adtype = 'int32', bdtype = 'float64', result = 20568, count = 2571
a = 9.0, b = -1.0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000006ee8e90>
func_or_src = <function main at 0x0000000009d602f0>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x0000000006ee8d08>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x0000000009d615b0>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
____ TestMicroNumPy.test_vector_call2[+-int64-float32-20568-2571-9.0--1.0] _____
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000969bec0>
op = '+', adtype = 'int64', bdtype = 'float32', result = 20568, count = 2571
a = 9.0, b = -1.0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000969bec0>
func_or_src = <function main at 0x0000000009f852e0>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000969bd38>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x0000000009f85790>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
____ TestMicroNumPy.test_vector_call2[+-int64-float64-20568-2571-9.0--1.0] _____
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000815b638>
op = '+', adtype = 'int64', bdtype = 'float64', result = 20568, count = 2571
a = 9.0, b = -1.0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000815b638>
func_or_src = <function main at 0x0000000009f985c0>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000815b4b0>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x0000000009f98a70>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
_____ TestMicroNumPy.test_vector_call2[+-int8-float32-20568-2571-9.0--1.0] _____
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000970c790>
op = '+', adtype = 'int8', bdtype = 'float32', result = 20568, count = 2571
a = 9.0, b = -1.0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000970c790>
func_or_src = <function main at 0x0000000009f99970>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000970c608>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x000000000abda110>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
_____ TestMicroNumPy.test_vector_call2[+-int8-float64-20568-2571-9.0--1.0] _____
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000007db70f8>
op = '+', adtype = 'int8', bdtype = 'float64', result = 20568, count = 2571
a = 9.0, b = -1.0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000007db70f8>
func_or_src = <function main at 0x000000000abdbe98>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x0000000007cbc7c8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x000000000abdbf10>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
____ TestMicroNumPy.test_vector_call2[+-int16-float32-20568-2571-9.0--1.0] _____
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000006469d70>
op = '+', adtype = 'int16', bdtype = 'float32', result = 20568, count = 2571
a = 9.0, b = -1.0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000006469d70>
func_or_src = <function main at 0x000000000a5a9448>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x0000000006469be8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x000000000a5a9880>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
____ TestMicroNumPy.test_vector_call2[+-int16-float64-20568-2571-9.0--1.0] _____
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000009427d00>
op = '+', adtype = 'int16', bdtype = 'float64', result = 20568, count = 2571
a = 9.0, b = -1.0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000009427d00>
func_or_src = <function main at 0x000000000a5e0a70>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x0000000009427b78>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x000000000a5e16a0>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
___ TestMicroNumPy.test_vector_call2[+-float32-int32--47754-2653-4.0--22.0] ____
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x00000000062f2fa8>
op = '+', adtype = 'float32', bdtype = 'int32', result = -47754, count = 2653
a = 4.0, b = -22.0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x00000000062f2fa8>
func_or_src = <function main at 0x000000000e9cd178>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x00000000062f2d08>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x000000000e9cd6a0>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
___ TestMicroNumPy.test_vector_call2[+-float32-int64--47754-2653-4.0--22.0] ____
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000005240c98>
op = '+', adtype = 'float32', bdtype = 'int64', result = -47754, count = 2653
a = 4.0, b = -22.0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000005240c98>
func_or_src = <function main at 0x000000000e7d7bc8>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x0000000005240ad8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x000000000d988c50>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
____ TestMicroNumPy.test_vector_call2[+-float32-int8--47754-2653-4.0--22.0] ____
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000005c95590>
op = '+', adtype = 'float32', bdtype = 'int8', result = -47754, count = 2653
a = 4.0, b = -22.0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000005c95590>
func_or_src = <function main at 0x000000000d989e98>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x0000000005c952b8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x000000000d2bc3e0>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
___ TestMicroNumPy.test_vector_call2[+-float32-int16--47754-2653-4.0--22.0] ____
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000717b830>
op = '+', adtype = 'float32', bdtype = 'int16', result = -47754, count = 2653
a = 4.0, b = -22.0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000717b830>
func_or_src = <function main at 0x000000000d2bd808>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000717b6a8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x000000000d2bdd30>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
___ TestMicroNumPy.test_vector_call2[+-float64-int32--47754-2653-4.0--22.0] ____
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000773c598>
op = '+', adtype = 'float64', bdtype = 'int32', result = -47754, count = 2653
a = 4.0, b = -22.0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000773c598>
func_or_src = <function main at 0x000000000b7c14c0>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000773c410>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x000000000b7c1970>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
___ TestMicroNumPy.test_vector_call2[+-float64-int64--47754-2653-4.0--22.0] ____
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x00000000089b1590>
op = '+', adtype = 'float64', bdtype = 'int64', result = -47754, count = 2653
a = 4.0, b = -22.0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x00000000089b1590>
func_or_src = <function main at 0x0000000007cfd808>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x00000000089b1718>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x0000000007cfd880>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
____ TestMicroNumPy.test_vector_call2[+-float64-int8--47754-2653-4.0--22.0] ____
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000be40640>
op = '+', adtype = 'float64', bdtype = 'int8', result = -47754, count = 2653
a = 4.0, b = -22.0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000be40640>
func_or_src = <function main at 0x00000000096db010>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000be404b8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00000000096db538>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
___ TestMicroNumPy.test_vector_call2[+-float64-int16--47754-2653-4.0--22.0] ____
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000e981520>
op = '+', adtype = 'float64', bdtype = 'int16', result = -47754, count = 2653
a = 4.0, b = -22.0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000e981520>
func_or_src = <function main at 0x000000000d9ce188>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000e981398>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x000000000d9ce6b0>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
____ TestMicroNumPy.test_vector_call2[+-int32-int32--1499-1499-24.0--25.0] _____
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x00000000064de6e8>
op = '+', adtype = 'int32', bdtype = 'int32', result = -1499, count = 1499
a = 24.0, b = -25.0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x00000000064de6e8>
func_or_src = <function main at 0x000000000d9cff10>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x00000000064dfc58>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x000000000d9cff88>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
____ TestMicroNumPy.test_vector_call2[+-int32-int64--1499-1499-24.0--25.0] _____
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000b1b3248>
op = '+', adtype = 'int32', bdtype = 'int64', result = -1499, count = 1499
a = 24.0, b = -25.0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000b1b3248>
func_or_src = <function main at 0x000000000d3d7880>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000b1b30c0>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x0000000007eb2548>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
_____ TestMicroNumPy.test_vector_call2[+-int32-int8--1499-1499-24.0--25.0] _____
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000c6d97c0>
op = '+', adtype = 'int32', bdtype = 'int8', result = -1499, count = 1499
a = 24.0, b = -25.0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000c6d97c0>
func_or_src = <function main at 0x0000000007eb38f8>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000c6d9948>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x0000000007eb3a60>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
____ TestMicroNumPy.test_vector_call2[+-int32-int16--1499-1499-24.0--25.0] _____
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000cb0e528>
op = '+', adtype = 'int32', bdtype = 'int16', result = -1499, count = 1499
a = 24.0, b = -25.0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000cb0e528>
func_or_src = <function main at 0x0000000006c50e30>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000cb0e3a0>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x0000000006c51628>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
____ TestMicroNumPy.test_vector_call2[+-int64-int32--1499-1499-24.0--25.0] _____
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000adc39b8>
op = '+', adtype = 'int64', bdtype = 'int32', result = -1499, count = 1499
a = 24.0, b = -25.0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000adc39b8>
func_or_src = <function main at 0x0000000006547358>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000adc3830>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x0000000006547808>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
____ TestMicroNumPy.test_vector_call2[+-int64-int64--1499-1499-24.0--25.0] _____
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000cb22410>
op = '+', adtype = 'int64', bdtype = 'int64', result = -1499, count = 1499
a = 24.0, b = -25.0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000cb22410>
func_or_src = <function main at 0x0000000006ae4890>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000cb22d78>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x0000000006ae4908>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
_____ TestMicroNumPy.test_vector_call2[+-int64-int8--1499-1499-24.0--25.0] _____
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000c488838>
op = '+', adtype = 'int64', bdtype = 'int8', result = -1499, count = 1499
a = 24.0, b = -25.0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000c488838>
func_or_src = <function main at 0x0000000006ae5a60>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000c4886b0>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x0000000006ae5e98>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
____ TestMicroNumPy.test_vector_call2[+-int64-int16--1499-1499-24.0--25.0] _____
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000c8ab8d8>
op = '+', adtype = 'int64', bdtype = 'int16', result = -1499, count = 1499
a = 24.0, b = -25.0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000c8ab8d8>
func_or_src = <function main at 0x000000000710b088>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000c8ab750>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x000000000710b538>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
_____ TestMicroNumPy.test_vector_call2[+-int8-int32--1499-1499-24.0--25.0] _____
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000bf41440>
op = '+', adtype = 'int8', bdtype = 'int32', result = -1499, count = 1499
a = 24.0, b = -25.0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000bf41440>
func_or_src = <function main at 0x0000000009efa6b0>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000bf412b8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x0000000009efb1f0>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
_____ TestMicroNumPy.test_vector_call2[+-int8-int64--1499-1499-24.0--25.0] _____
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000c6f7638>
op = '+', adtype = 'int8', bdtype = 'int64', result = -1499, count = 1499
a = 24.0, b = -25.0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000c6f7638>
func_or_src = <function main at 0x000000000524e548>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000c70e020>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x000000000524e5c0>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
_____ TestMicroNumPy.test_vector_call2[+-int8-int8--1499-1499-24.0--25.0] ______
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000d198758>
op = '+', adtype = 'int8', bdtype = 'int8', result = -1499, count = 1499
a = 24.0, b = -25.0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000d198758>
func_or_src = <function main at 0x00000000086753d0>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000d1985d0>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x0000000008526098>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
_____ TestMicroNumPy.test_vector_call2[+-int8-int16--1499-1499-24.0--25.0] _____
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000aaa29c0>
op = '+', adtype = 'int8', bdtype = 'int16', result = -1499, count = 1499
a = 24.0, b = -25.0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000aaa29c0>
func_or_src = <function main at 0x0000000005c9e728>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000aaa3670>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x0000000005c9e7a0>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
____ TestMicroNumPy.test_vector_call2[+-int16-int32--1499-1499-24.0--25.0] _____
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000b75ce90>
op = '+', adtype = 'int16', bdtype = 'int32', result = -1499, count = 1499
a = 24.0, b = -25.0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000b75ce90>
func_or_src = <function main at 0x0000000006a58188>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000b75cd08>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x0000000006a58c50>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
____ TestMicroNumPy.test_vector_call2[+-int16-int64--1499-1499-24.0--25.0] _____
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000ab008e0>
op = '+', adtype = 'int16', bdtype = 'int64', result = -1499, count = 1499
a = 24.0, b = -25.0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000ab008e0>
func_or_src = <function main at 0x0000000006a3c890>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000ab00758>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x0000000006a3cea8>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
_____ TestMicroNumPy.test_vector_call2[+-int16-int8--1499-1499-24.0--25.0] _____
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000b02e480>
op = '+', adtype = 'int16', bdtype = 'int8', result = -1499, count = 1499
a = 24.0, b = -25.0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000b02e480>
func_or_src = <function main at 0x0000000006a3df88>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000b02e2f8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x0000000008b20188>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
____ TestMicroNumPy.test_vector_call2[+-int16-int16--1499-1499-24.0--25.0] _____
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000781c4f0>
op = '+', adtype = 'int16', bdtype = 'int16', result = -1499, count = 1499
a = 24.0, b = -25.0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000781c4f0>
func_or_src = <function main at 0x0000000009204098>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000781c368>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x000000000be923e0>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
___ TestMicroNumPy.test_vector_call2[--float32-float32--11046-5523-1.0-3.0] ____
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000c7f6090>
op = '-', adtype = 'float32', bdtype = 'float32', result = -11046, count = 5523
a = 1.0, b = 3.0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000c7f6090>
func_or_src = <function main at 0x000000000be936a0>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000ada9ec0>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x000000000be93b50>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
___ TestMicroNumPy.test_vector_call2[--float32-float64--11046-5523-1.0-3.0] ____
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000006d4c288>
op = '-', adtype = 'float32', bdtype = 'float64', result = -11046, count = 5523
a = 1.0, b = 3.0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000006d4c288>
func_or_src = <function main at 0x000000000e7c5c40>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x0000000006d4cfe0>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x000000000e7c5cb8>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
___ TestMicroNumPy.test_vector_call2[--float64-float32--11046-5523-1.0-3.0] ____
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x00000000067b0c28>
op = '-', adtype = 'float64', bdtype = 'float32', result = -11046, count = 5523
a = 1.0, b = 3.0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x00000000067b0c28>
func_or_src = <function main at 0x000000000c696548>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x00000000067b0aa0>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x000000000c6971f0>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
___ TestMicroNumPy.test_vector_call2[--float64-float64--11046-5523-1.0-3.0] ____
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000969b590>
op = '-', adtype = 'float64', bdtype = 'float64', result = -11046, count = 5523
a = 1.0, b = 3.0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000969b590>
func_or_src = <function main at 0x000000000c6df538>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000969b408>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x000000000c6dfbc8>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
____ TestMicroNumPy.test_vector_call2[*-float32-float32-8997-2999-1.0-3.0] _____
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x00000000081e19b8>
op = '*', adtype = 'float32', bdtype = 'float32', result = 8997, count = 2999
a = 1.0, b = 3.0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x00000000081e19b8>
func_or_src = <function main at 0x000000000c6ad718>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x00000000081e17c0>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x000000000cbd25c0>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
____ TestMicroNumPy.test_vector_call2[*-float32-float64-8997-2999-1.0-3.0] _____
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000006d02de8>
op = '*', adtype = 'float32', bdtype = 'float64', result = 8997, count = 2999
a = 1.0, b = 3.0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000006d02de8>
func_or_src = <function main at 0x000000000cba6cc8>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x0000000006d03868>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x000000000cba6d40>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
____ TestMicroNumPy.test_vector_call2[*-float64-float32-8997-2999-1.0-3.0] _____
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x00000000068e94e8>
op = '*', adtype = 'float64', bdtype = 'float32', result = 8997, count = 2999
a = 1.0, b = 3.0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x00000000068e94e8>
func_or_src = <function main at 0x000000000bb33ad8>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x00000000068e9360>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x000000000c7dc020>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
____ TestMicroNumPy.test_vector_call2[*-float64-float64-8997-2999-1.0-3.0] _____
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000008afb590>
op = '*', adtype = 'float64', bdtype = 'float64', result = 8997, count = 2999
a = 1.0, b = 3.0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000008afb590>
func_or_src = <function main at 0x000000000c7bea70>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x0000000008afb2b8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x000000000c7bf808>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
____ TestMicroNumPy.test_vector_call2[/-float32-float32-22896-7632-3.0-1.0] ____
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000004830758>
op = '/', adtype = 'float32', bdtype = 'float32', result = 22896, count = 7632
a = 3.0, b = 1.0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000004830758>
func_or_src = <function main at 0x000000000b1953d0>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x0000000004830e90>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x000000000b195448>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
____ TestMicroNumPy.test_vector_call2[/-float32-float64-22896-7632-3.0-1.0] ____
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000004ef6448>
op = '/', adtype = 'float32', bdtype = 'float64', result = 22896, count = 7632
a = 3.0, b = 1.0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000004ef6448>
func_or_src = <function main at 0x000000000b187100>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x0000000004ef6288>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x000000000b187e20>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
____ TestMicroNumPy.test_vector_call2[/-float64-float32-22896-7632-3.0-1.0] ____
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000005a9b7c0>
op = '/', adtype = 'float64', bdtype = 'float32', result = 22896, count = 7632
a = 3.0, b = 1.0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000005a9b7c0>
func_or_src = <function main at 0x000000000a9c63e0>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x0000000005a9b638>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x000000000a9c7010>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
____ TestMicroNumPy.test_vector_call2[/-float64-float64-22896-7632-3.0-1.0] ____
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000005f8b1d8>
op = '/', adtype = 'float64', bdtype = 'float64', result = 22896, count = 7632
a = 3.0, b = 1.0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000005f8b1d8>
func_or_src = <function main at 0x000000000a9b13d0>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x0000000005f8a8a8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x000000000a9b1ad8>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
___ TestMicroNumPy.test_vector_call2[/-float32-float32-11448.0-7632-3.0-2.0] ___
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x00000000071ac6b0>
op = '/', adtype = 'float32', bdtype = 'float32', result = 11448.0, count = 7632
a = 3.0, b = 2.0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x00000000071ac6b0>
func_or_src = <function main at 0x000000000e139f10>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x00000000071ac838>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x000000000e139f88>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
___ TestMicroNumPy.test_vector_call2[/-float32-float64-11448.0-7632-3.0-2.0] ___
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000740eaa0>
op = '/', adtype = 'float32', bdtype = 'float64', result = 11448.0, count = 7632
a = 3.0, b = 2.0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000740eaa0>
func_or_src = <function main at 0x000000000be57358>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000740e918>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x000000000be57880>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
___ TestMicroNumPy.test_vector_call2[/-float64-float32-11448.0-7632-3.0-2.0] ___
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x00000000080554b0>
op = '/', adtype = 'float64', bdtype = 'float32', result = 11448.0, count = 7632
a = 3.0, b = 2.0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x00000000080554b0>
func_or_src = <function main at 0x000000000bde4f20>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x0000000008055328>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x000000000bde5b50>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
___ TestMicroNumPy.test_vector_call2[/-float64-float64-11448.0-7632-3.0-2.0] ___
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000008a5e1a8>
op = '/', adtype = 'float64', bdtype = 'float64', result = 11448.0, count = 7632
a = 3.0, b = 2.0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000008a5e1a8>
func_or_src = <function main at 0x0000000007d338f8>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x0000000008a5e020>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x0000000007d33da8>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
__________ TestMicroNumPy.test_vector_call2[&-int32-int32-0-1500-1-0] __________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000c37e7c8>
op = '&', adtype = 'int32', bdtype = 'int32', result = 0, count = 1500, a = 1
b = 0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000c37e7c8>
func_or_src = <function main at 0x00000000064ad178>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000c37e640>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00000000064ad5b0>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
__________ TestMicroNumPy.test_vector_call2[&-int32-int64-0-1500-1-0] __________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000006d72e90>
op = '&', adtype = 'int32', bdtype = 'int64', result = 0, count = 1500, a = 1
b = 0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000006d72e90>
func_or_src = <function main at 0x0000000006df0368>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x0000000006d72cd0>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x0000000006df0818>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
__________ TestMicroNumPy.test_vector_call2[&-int32-int8-0-1500-1-0] ___________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000c7b3e88>
op = '&', adtype = 'int32', bdtype = 'int8', result = 0, count = 1500, a = 1
b = 0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000c7b3e88>
func_or_src = <function main at 0x0000000006dd6f20>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000c7c2058>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x0000000006dd6f98>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
__________ TestMicroNumPy.test_vector_call2[&-int32-int16-0-1500-1-0] __________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000e9c4598>
op = '&', adtype = 'int32', bdtype = 'int16', result = 0, count = 1500, a = 1
b = 0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000e9c4598>
func_or_src = <function main at 0x0000000008f25088>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000e9c4410>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x0000000008f255b0>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
__________ TestMicroNumPy.test_vector_call2[&-int64-int32-0-1500-1-0] __________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000a1de598>
op = '&', adtype = 'int64', bdtype = 'int32', result = 0, count = 1500, a = 1
b = 0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000a1de598>
func_or_src = <function main at 0x0000000007522020>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000a1de410>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x0000000007522bd8>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
__________ TestMicroNumPy.test_vector_call2[&-int64-int64-0-1500-1-0] __________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000c5ad8a0>
op = '&', adtype = 'int64', bdtype = 'int64', result = 0, count = 1500, a = 1
b = 0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000c5ad8a0>
func_or_src = <function main at 0x0000000007523da8>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000c5ad718>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x000000000cd4e200>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
__________ TestMicroNumPy.test_vector_call2[&-int64-int8-0-1500-1-0] ___________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000b2c49c0>
op = '&', adtype = 'int64', bdtype = 'int8', result = 0, count = 1500, a = 1
b = 0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000b2c49c0>
func_or_src = <function main at 0x000000000cd3ebd8>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000b2c5328>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x000000000cd3ec50>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
__________ TestMicroNumPy.test_vector_call2[&-int64-int16-0-1500-1-0] __________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000add38a0>
op = '&', adtype = 'int64', bdtype = 'int16', result = 0, count = 1500, a = 1
b = 0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000add38a0>
func_or_src = <function main at 0x0000000009e88ae8>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000d2c8950>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x0000000009e88b60>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
__________ TestMicroNumPy.test_vector_call2[&-int8-int32-0-1500-1-0] ___________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000b0058d8>
op = '&', adtype = 'int8', bdtype = 'int32', result = 0, count = 1500, a = 1
b = 0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000b0058d8>
func_or_src = <function main at 0x0000000007802728>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000c0ee058>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x0000000007802818>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
__________ TestMicroNumPy.test_vector_call2[&-int8-int64-0-1500-1-0] ___________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000af57e18>
op = '&', adtype = 'int8', bdtype = 'int64', result = 0, count = 1500, a = 1
b = 0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000af57e18>
func_or_src = <function main at 0x0000000006d1c980>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000af57fa0>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x0000000006d1c9f8>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
___________ TestMicroNumPy.test_vector_call2[&-int8-int8-0-1500-1-0] ___________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000c4a94b0>
op = '&', adtype = 'int8', bdtype = 'int8', result = 0, count = 1500, a = 1
b = 0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000c4a94b0>
func_or_src = <function main at 0x0000000007230a70>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000c4a9638>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x0000000007230ae8>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
__________ TestMicroNumPy.test_vector_call2[&-int8-int16-0-1500-1-0] ___________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000a1abbe8>
op = '&', adtype = 'int8', bdtype = 'int16', result = 0, count = 1500, a = 1
b = 0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000a1abbe8>
func_or_src = <function main at 0x00000000065506b0>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000a1aba60>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x0000000006550bd8>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
__________ TestMicroNumPy.test_vector_call2[&-int16-int32-0-1500-1-0] __________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000c2fe598>
op = '&', adtype = 'int16', bdtype = 'int32', result = 0, count = 1500, a = 1
b = 0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000c2fe598>
func_or_src = <function main at 0x0000000006af8548>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000c2fe410>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x0000000006af89f8>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
__________ TestMicroNumPy.test_vector_call2[&-int16-int64-0-1500-1-0] __________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000c728288>
op = '&', adtype = 'int16', bdtype = 'int64', result = 0, count = 1500, a = 1
b = 0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000c728288>
func_or_src = <function main at 0x0000000006af9c40>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000c728100>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x0000000006b02368>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
__________ TestMicroNumPy.test_vector_call2[&-int16-int8-0-1500-1-0] ___________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000bc40800>
op = '&', adtype = 'int16', bdtype = 'int8', result = 0, count = 1500, a = 1
b = 0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000bc40800>
func_or_src = <function main at 0x0000000006b03ad8>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000bc40678>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x0000000006b03f88>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
__________ TestMicroNumPy.test_vector_call2[&-int16-int16-0-1500-1-0] __________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000d31e090>
op = '&', adtype = 'int16', bdtype = 'int16', result = 0, count = 1500, a = 1
b = 0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000d31e090>
func_or_src = <function main at 0x0000000006fc2db8>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000d2f5ec0>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x0000000006fc39e8>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
________ TestMicroNumPy.test_vector_call2[&-int32-int32-1500-1500-1-1] _________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000ad07088>
op = '&', adtype = 'int32', bdtype = 'int32', result = 1500, count = 1500, a = 1
b = 1
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000ad07088>
func_or_src = <function main at 0x0000000007008f20>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000ad06f00>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x0000000007009538>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
________ TestMicroNumPy.test_vector_call2[&-int32-int64-1500-1500-1-1] _________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000e8069c0>
op = '&', adtype = 'int32', bdtype = 'int64', result = 1500, count = 1500, a = 1
b = 1
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000e8069c0>
func_or_src = <function main at 0x0000000006376818>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000e807478>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x0000000006376890>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
_________ TestMicroNumPy.test_vector_call2[&-int32-int8-1500-1500-1-1] _________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000c280bf0>
op = '&', adtype = 'int32', bdtype = 'int8', result = 1500, count = 1500, a = 1
b = 1
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000c280bf0>
func_or_src = <function main at 0x00000000063a2890>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000c280d78>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00000000063a2908>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
________ TestMicroNumPy.test_vector_call2[&-int32-int16-1500-1500-1-1] _________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000d0b6870>
op = '&', adtype = 'int32', bdtype = 'int16', result = 1500, count = 1500, a = 1
b = 1
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000d0b6870>
func_or_src = <function main at 0x000000000d0ce110>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000d0b66e8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x000000000d0ce638>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
________ TestMicroNumPy.test_vector_call2[&-int64-int32-1500-1500-1-1] _________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000007816988>
op = '&', adtype = 'int64', bdtype = 'int32', result = 1500, count = 1500, a = 1
b = 1
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000007816988>
func_or_src = <function main at 0x0000000007882890>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x0000000007816800>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x0000000007882db8>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
________ TestMicroNumPy.test_vector_call2[&-int64-int64-1500-1500-1-1] _________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000c7f62c0>
op = '&', adtype = 'int64', bdtype = 'int64', result = 1500, count = 1500, a = 1
b = 1
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000c7f62c0>
func_or_src = <function main at 0x0000000007883e98>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000c7f6100>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x0000000006a3c3e0>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
_________ TestMicroNumPy.test_vector_call2[&-int64-int8-1500-1500-1-1] _________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000953e560>
op = '&', adtype = 'int64', bdtype = 'int8', result = 1500, count = 1500, a = 1
b = 1
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000953e560>
func_or_src = <function main at 0x0000000006a3de20>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000953e288>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x0000000006a584d0>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
________ TestMicroNumPy.test_vector_call2[&-int64-int16-1500-1500-1-1] _________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x00000000076d9018>
op = '&', adtype = 'int64', bdtype = 'int16', result = 1500, count = 1500, a = 1
b = 1
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x00000000076d9018>
func_or_src = <function main at 0x0000000005c9e638>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x00000000076d8e90>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x0000000005c9f268>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
_________ TestMicroNumPy.test_vector_call2[&-int8-int32-1500-1500-1-1] _________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000883fa28>
op = '&', adtype = 'int8', bdtype = 'int32', result = 1500, count = 1500, a = 1
b = 1
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000883fa28>
func_or_src = <function main at 0x0000000008526bd8>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000883f8a0>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00000000085278f8>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
_________ TestMicroNumPy.test_vector_call2[&-int8-int64-1500-1500-1-1] _________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x00000000083f9bb0>
op = '&', adtype = 'int8', bdtype = 'int64', result = 1500, count = 1500, a = 1
b = 1
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x00000000083f9bb0>
func_or_src = <function main at 0x0000000008675538>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x00000000083f9a28>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00000000046a0110>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
_________ TestMicroNumPy.test_vector_call2[&-int8-int8-1500-1500-1-1] __________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000007a835c8>
op = '&', adtype = 'int8', bdtype = 'int8', result = 1500, count = 1500, a = 1
b = 1
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000007a835c8>
func_or_src = <function main at 0x0000000009efaf98>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x0000000007a83440>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x0000000009efbb50>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
_________ TestMicroNumPy.test_vector_call2[&-int8-int16-1500-1500-1-1] _________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000009c72480>
op = '&', adtype = 'int8', bdtype = 'int16', result = 1500, count = 1500, a = 1
b = 1
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000009c72480>
func_or_src = <function main at 0x000000000710be20>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x0000000009c722f8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x0000000006ae51f0>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
________ TestMicroNumPy.test_vector_call2[&-int16-int32-1500-1500-1-1] _________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000004d962f8>
op = '&', adtype = 'int16', bdtype = 'int32', result = 1500, count = 1500, a = 1
b = 1
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000004d962f8>
func_or_src = <function main at 0x0000000006ac75b0>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x0000000004d96170>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x0000000006ac7a60>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
________ TestMicroNumPy.test_vector_call2[&-int16-int64-1500-1500-1-1] _________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000005bb0e58>
op = '&', adtype = 'int16', bdtype = 'int64', result = 1500, count = 1500, a = 1
b = 1
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000005bb0e58>
func_or_src = <function main at 0x0000000006547ad8>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x0000000005bb0fe0>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x0000000006547b50>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
_________ TestMicroNumPy.test_vector_call2[&-int16-int8-1500-1500-1-1] _________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000005ec4e90>
op = '&', adtype = 'int16', bdtype = 'int8', result = 1500, count = 1500, a = 1
b = 1
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000005ec4e90>
func_or_src = <function main at 0x0000000007eb2ea8>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x0000000005ec50c0>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x0000000007eb2f20>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
________ TestMicroNumPy.test_vector_call2[&-int16-int16-1500-1500-1-1] _________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x00000000063c1788>
op = '&', adtype = 'int16', bdtype = 'int16', result = 1500, count = 1500, a = 1
b = 1
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x00000000063c1788>
func_or_src = <function main at 0x000000000d3d7880>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x00000000063c1910>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x000000000d3d78f8>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
________ TestMicroNumPy.test_vector_call2[|-int32-int32-1500-1500-0-1] _________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x00000000071d61a8>
op = '|', adtype = 'int32', bdtype = 'int32', result = 1500, count = 1500, a = 0
b = 1
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x00000000071d61a8>
func_or_src = <function main at 0x000000000d9cfb50>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x00000000071d66e8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x000000000d9cfbc8>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
________ TestMicroNumPy.test_vector_call2[|-int32-int64-1500-1500-0-1] _________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000007476090>
op = '|', adtype = 'int32', bdtype = 'int64', result = 1500, count = 1500, a = 0
b = 1
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000007476090>
func_or_src = <function main at 0x00000000047c2c50>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x0000000007441ec0>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00000000047c3178>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
_________ TestMicroNumPy.test_vector_call2[|-int32-int8-1500-1500-0-1] _________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000007c45f68>
op = '|', adtype = 'int32', bdtype = 'int8', result = 1500, count = 1500, a = 0
b = 1
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000007c45f68>
func_or_src = <function main at 0x0000000002a235b0>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x0000000007c45de0>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00000000096da908>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
________ TestMicroNumPy.test_vector_call2[|-int32-int16-1500-1500-0-1] _________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000007ef95c8>
op = '|', adtype = 'int32', bdtype = 'int16', result = 1500, count = 1500, a = 0
b = 1
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000007ef95c8>
func_or_src = <function main at 0x0000000007cfc200>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x0000000007ef9788>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x0000000007cfc278>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
________ TestMicroNumPy.test_vector_call2[|-int64-int32-1500-1500-0-1] _________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000008a1d050>
op = '|', adtype = 'int64', bdtype = 'int32', result = 1500, count = 1500, a = 0
b = 1
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000008a1d050>
func_or_src = <function main at 0x000000000b7c1808>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x0000000008a1cec8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x000000000d2bc368>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
________ TestMicroNumPy.test_vector_call2[|-int64-int64-1500-1500-0-1] _________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000c3857c0>
op = '|', adtype = 'int64', bdtype = 'int64', result = 1500, count = 1500, a = 0
b = 1
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000c3857c0>
func_or_src = <function main at 0x000000000d988020>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000c385600>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x000000000d988c50>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
_________ TestMicroNumPy.test_vector_call2[|-int64-int8-1500-1500-0-1] _________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x00000000089968e0>
op = '|', adtype = 'int64', bdtype = 'int8', result = 1500, count = 1500, a = 0
b = 1
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x00000000089968e0>
func_or_src = <function main at 0x000000000e7d6728>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x0000000008996758>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x000000000e7d74c0>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
________ TestMicroNumPy.test_vector_call2[|-int64-int16-1500-1500-0-1] _________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000bb2a3d8>
op = '|', adtype = 'int64', bdtype = 'int16', result = 1500, count = 1500, a = 0
b = 1
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000bb2a3d8>
func_or_src = <function main at 0x000000000e9cd1f0>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000bb2a250>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x000000000e9cd628>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
_________ TestMicroNumPy.test_vector_call2[|-int8-int32-1500-1500-0-1] _________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000c30e870>
op = '|', adtype = 'int8', bdtype = 'int32', result = 1500, count = 1500, a = 0
b = 1
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000c30e870>
func_or_src = <function main at 0x000000000a5e1268>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000c30e6e8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x000000000a5e1e20>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
_________ TestMicroNumPy.test_vector_call2[|-int8-int64-1500-1500-0-1] _________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000caa0218>
op = '|', adtype = 'int8', bdtype = 'int64', result = 1500, count = 1500, a = 0
b = 1
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000caa0218>
func_or_src = <function main at 0x000000000a5a9790>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000caa0090>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x000000000abda908>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
_________ TestMicroNumPy.test_vector_call2[|-int8-int8-1500-1500-0-1] __________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000009dc31a0>
op = '|', adtype = 'int8', bdtype = 'int8', result = 1500, count = 1500, a = 0
b = 1
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000009dc31a0>
func_or_src = <function main at 0x0000000009f99358>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x0000000009dc3018>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x0000000009f999e8>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
_________ TestMicroNumPy.test_vector_call2[|-int8-int16-1500-1500-0-1] _________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000c472ec8>
op = '|', adtype = 'int8', bdtype = 'int16', result = 1500, count = 1500, a = 0
b = 1
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000c472ec8>
func_or_src = <function main at 0x0000000009d60020>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000c473050>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x0000000009d60098>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
________ TestMicroNumPy.test_vector_call2[|-int16-int32-1500-1500-0-1] _________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000bede918>
op = '|', adtype = 'int16', bdtype = 'int32', result = 1500, count = 1500, a = 0
b = 1
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000bede918>
func_or_src = <function main at 0x0000000009d4b790>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000bede950>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x0000000009d4b808>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
________ TestMicroNumPy.test_vector_call2[|-int16-int64-1500-1500-0-1] _________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000e815018>
op = '|', adtype = 'int16', bdtype = 'int64', result = 1500, count = 1500, a = 0
b = 1
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000e815018>
func_or_src = <function main at 0x0000000004d16728>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000e814e90>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x0000000008b20200>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
_________ TestMicroNumPy.test_vector_call2[|-int16-int8-1500-1500-0-1] _________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000c45a6e8>
op = '|', adtype = 'int16', bdtype = 'int8', result = 1500, count = 1500, a = 0
b = 1
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000c45a6e8>
func_or_src = <function main at 0x0000000008ada368>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000c45a560>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x0000000008adaf98>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
________ TestMicroNumPy.test_vector_call2[|-int16-int16-1500-1500-0-1] _________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000c606218>
op = '|', adtype = 'int16', bdtype = 'int16', result = 1500, count = 1500, a = 0
b = 1
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000c606218>
func_or_src = <function main at 0x00000000084f2098>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000c606090>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00000000084f25c0>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
__________ TestMicroNumPy.test_vector_call2[|-int32-int32-0-1500-0-0] __________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000c267210>
op = '|', adtype = 'int32', bdtype = 'int32', result = 0, count = 1500, a = 0
b = 0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000c267210>
func_or_src = <function main at 0x00000000084f36a0>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000c267398>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00000000084f3718>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
__________ TestMicroNumPy.test_vector_call2[|-int32-int64-0-1500-0-0] __________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000c5d4608>
op = '|', adtype = 'int32', bdtype = 'int64', result = 0, count = 1500, a = 0
b = 0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000c5d4608>
func_or_src = <function main at 0x000000000850d010>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000c5d4f70>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x000000000850d088>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
__________ TestMicroNumPy.test_vector_call2[|-int32-int8-0-1500-0-0] ___________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000009bcd670>
op = '|', adtype = 'int32', bdtype = 'int8', result = 0, count = 1500, a = 0
b = 0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000009bcd670>
func_or_src = <function main at 0x0000000005f0ac50>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x0000000009bcd4e8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x0000000005f0b100>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
__________ TestMicroNumPy.test_vector_call2[|-int32-int16-0-1500-0-0] __________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000dc0bec0>
op = '|', adtype = 'int32', bdtype = 'int16', result = 0, count = 1500, a = 0
b = 0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000dc0bec0>
func_or_src = <function main at 0x0000000005eda5c0>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000dc52090>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x0000000005eda638>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
__________ TestMicroNumPy.test_vector_call2[|-int64-int32-0-1500-0-0] __________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000da90b10>
op = '|', adtype = 'int64', bdtype = 'int32', result = 0, count = 1500, a = 0
b = 0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000da90b10>
func_or_src = <function main at 0x000000000dabc200>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000da90c98>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x000000000dabc278>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
__________ TestMicroNumPy.test_vector_call2[|-int64-int64-0-1500-0-0] __________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000daad280>
op = '|', adtype = 'int64', bdtype = 'int64', result = 0, count = 1500, a = 0
b = 0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000daad280>
func_or_src = <function main at 0x000000000d0cef20>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000daada98>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x000000000d0cef98>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
__________ TestMicroNumPy.test_vector_call2[|-int64-int8-0-1500-0-0] ___________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000a17e1a8>
op = '|', adtype = 'int64', bdtype = 'int8', result = 0, count = 1500, a = 0
b = 0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000a17e1a8>
func_or_src = <function main at 0x00000000063765c0>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x000000000d9a1788>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x0000000006377268>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
__________ TestMicroNumPy.test_vector_call2[|-int64-int16-0-1500-0-0] __________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x00000000068ba870>
op = '|', adtype = 'int64', bdtype = 'int16', result = 0, count = 1500, a = 0
b = 0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x00000000068ba870>
func_or_src = <function main at 0x0000000006fc2980>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x00000000068ba6e8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x0000000006fc2f20>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
__________ TestMicroNumPy.test_vector_call2[|-int8-int32-0-1500-0-0] ___________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x00000000096dfb78>
op = '|', adtype = 'int8', bdtype = 'int32', result = 0, count = 1500, a = 0
b = 0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x00000000096dfb78>
func_or_src = <function main at 0x0000000006b03790>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x00000000096df9f0>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x0000000006b03e20>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
__________ TestMicroNumPy.test_vector_call2[|-int8-int64-0-1500-0-0] ___________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000008362f38>
op = '|', adtype = 'int8', bdtype = 'int64', result = 0, count = 1500, a = 0
b = 0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000008362f38>
func_or_src = <function main at 0x0000000006af9ad8>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x0000000008363a60>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x0000000006af9bc8>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
___________ TestMicroNumPy.test_vector_call2[|-int8-int8-0-1500-0-0] ___________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x00000000085e6250>
op = '|', adtype = 'int8', bdtype = 'int8', result = 0, count = 1500, a = 0
b = 0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x00000000085e6250>
func_or_src = <function main at 0x0000000007230890>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x00000000085e6c28>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x0000000007230908>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
__________ TestMicroNumPy.test_vector_call2[|-int8-int16-0-1500-0-0] ___________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000007a1b478>
op = '|', adtype = 'int8', bdtype = 'int16', result = 0, count = 1500, a = 0
b = 0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000007a1b478>
func_or_src = <function main at 0x0000000006d1d538>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x0000000007a1b2f0>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00000000078039e8>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
__________ TestMicroNumPy.test_vector_call2[|-int16-int32-0-1500-0-0] __________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x00000000062167c8>
op = '|', adtype = 'int16', bdtype = 'int32', result = 0, count = 1500, a = 0
b = 0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x00000000062167c8>
func_or_src = <function main at 0x00000000077953d0>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x0000000006216640>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x0000000007795970>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
__________ TestMicroNumPy.test_vector_call2[|-int16-int64-0-1500-0-0] __________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000009cb5b40>
op = '|', adtype = 'int16', bdtype = 'int64', result = 0, count = 1500, a = 0
b = 0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000009cb5b40>
func_or_src = <function main at 0x000000000cd3f628>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x0000000009cb5b78>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x000000000cd3f6a0>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
__________ TestMicroNumPy.test_vector_call2[|-int16-int8-0-1500-0-0] ___________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000008801ad0>
op = '|', adtype = 'int16', bdtype = 'int8', result = 0, count = 1500, a = 0
b = 0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000008801ad0>
func_or_src = <function main at 0x00000000075234c0>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x0000000008801b08>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x0000000007523628>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
__________ TestMicroNumPy.test_vector_call2[|-int16-int16-0-1500-0-0] __________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x00000000039e3600>
op = '|', adtype = 'int16', bdtype = 'int16', result = 0, count = 1500, a = 0
b = 0
@py.test.mark.parametrize("op,adtype,bdtype,result,count,a,b", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_vector_call2(self, op, adtype, bdtype, result, count, a, b):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{adtype}')
b = np.array([{b}]*{count}, dtype='{bdtype}')
for i in range(20):
c = a {op} b
return c.sum()
""".format(op=op, adtype=adtype, bdtype=bdtype, count=count, a=a, b=b)
exec py.code.Source(source).compile()
> vlog = self.run(main, [], vec=1)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x00000000039e3600>
func_or_src = <function main at 0x0000000008f247a0>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 1}
src = <py._code.source.Source object at 0x0000000003a1ec60>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x0000000008f24818>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_vector_call2.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
___________ TestMicroNumPy.test_reduce_generic[sum-int8-1742-1742-1] ___________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000005add360>
op = 'sum', dtype = 'int8', result = 1742, count = 1742, a = 1
@py.test.mark.parametrize("op,dtype,result,count,a", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_reduce_generic(self,op,dtype,result,count,a):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{dtype}')
return a.{method}()
""".format(method=op, dtype=dtype, count=count, a=a)
exec py.code.Source(source).compile()
> log = self.run(main, [], vec=0)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:126:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000005add360>
func_or_src = <function main at 0x0000000006dd7790>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 0}
src = <py._code.source.Source object at 0x0000000005add1d8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py', mode 'w' at 0x0000000006df0200>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=0,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py", line 7, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
__________ TestMicroNumPy.test_reduce_generic[sum-int16-1742-1742-1] ___________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000005d8e800>
op = 'sum', dtype = 'int16', result = 1742, count = 1742, a = 1
@py.test.mark.parametrize("op,dtype,result,count,a", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_reduce_generic(self,op,dtype,result,count,a):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{dtype}')
return a.{method}()
""".format(method=op, dtype=dtype, count=count, a=a)
exec py.code.Source(source).compile()
> log = self.run(main, [], vec=0)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:126:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000005d8e800>
func_or_src = <function main at 0x00000000064cb808>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 0}
src = <py._code.source.Source object at 0x0000000005d8e8a8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py', mode 'w' at 0x00000000064cb880>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=0,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py", line 7, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
__________ TestMicroNumPy.test_reduce_generic[sum-int32-1742-1742-1] ___________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000005f8a560>
op = 'sum', dtype = 'int32', result = 1742, count = 1742, a = 1
@py.test.mark.parametrize("op,dtype,result,count,a", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_reduce_generic(self,op,dtype,result,count,a):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{dtype}')
return a.{method}()
""".format(method=op, dtype=dtype, count=count, a=a)
exec py.code.Source(source).compile()
> log = self.run(main, [], vec=0)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:126:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000005f8a560>
func_or_src = <function main at 0x000000000903e020>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 0}
src = <py._code.source.Source object at 0x0000000005f8a3a0>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py', mode 'w' at 0x000000000903f880>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=0,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py", line 7, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
__________ TestMicroNumPy.test_reduce_generic[sum-int64-1742-1742-1] ___________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000007bca1a8>
op = 'sum', dtype = 'int64', result = 1742, count = 1742, a = 1
@py.test.mark.parametrize("op,dtype,result,count,a", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_reduce_generic(self,op,dtype,result,count,a):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{dtype}')
return a.{method}()
""".format(method=op, dtype=dtype, count=count, a=a)
exec py.code.Source(source).compile()
> log = self.run(main, [], vec=0)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:126:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000007bca1a8>
func_or_src = <function main at 0x000000000bde45c0>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 0}
src = <py._code.source.Source object at 0x0000000007bca250>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py', mode 'w' at 0x000000000bde4638>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=0,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py", line 7, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
____________ TestMicroNumPy.test_reduce_generic[prod-int8-1-3178-1] ____________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000007e6a7c8>
op = 'prod', dtype = 'int8', result = 1, count = 3178, a = 1
@py.test.mark.parametrize("op,dtype,result,count,a", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_reduce_generic(self,op,dtype,result,count,a):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{dtype}')
return a.{method}()
""".format(method=op, dtype=dtype, count=count, a=a)
exec py.code.Source(source).compile()
> log = self.run(main, [], vec=0)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:126:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000007e6a7c8>
func_or_src = <function main at 0x000000000be56f20>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 0}
src = <py._code.source.Source object at 0x0000000007e94020>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py', mode 'w' at 0x000000000be56f98>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=0,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py", line 7, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
___________ TestMicroNumPy.test_reduce_generic[prod-int16-1-3178-1] ____________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000008cf7ef8>
op = 'prod', dtype = 'int16', result = 1, count = 3178, a = 1
@py.test.mark.parametrize("op,dtype,result,count,a", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_reduce_generic(self,op,dtype,result,count,a):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{dtype}')
return a.{method}()
""".format(method=op, dtype=dtype, count=count, a=a)
exec py.code.Source(source).compile()
> log = self.run(main, [], vec=0)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:126:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000008cf7ef8>
func_or_src = <function main at 0x000000000dae5538>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 0}
src = <py._code.source.Source object at 0x0000000008cf7c90>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py', mode 'w' at 0x000000000a9b1178>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=0,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py", line 7, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
___________ TestMicroNumPy.test_reduce_generic[prod-int32-1-3178-1] ____________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000ade81e0>
op = 'prod', dtype = 'int32', result = 1, count = 3178, a = 1
@py.test.mark.parametrize("op,dtype,result,count,a", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_reduce_generic(self,op,dtype,result,count,a):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{dtype}')
return a.{method}()
""".format(method=op, dtype=dtype, count=count, a=a)
exec py.code.Source(source).compile()
> log = self.run(main, [], vec=0)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:126:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000ade81e0>
func_or_src = <function main at 0x000000000a9c6bd8>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 0}
src = <py._code.source.Source object at 0x000000000ade8058>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py', mode 'w' at 0x000000000a9c7cb8>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=0,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py", line 7, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
___________ TestMicroNumPy.test_reduce_generic[prod-int64-1-3178-1] ____________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000cd1c4b8>
op = 'prod', dtype = 'int64', result = 1, count = 3178, a = 1
@py.test.mark.parametrize("op,dtype,result,count,a", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_reduce_generic(self,op,dtype,result,count,a):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{dtype}')
return a.{method}()
""".format(method=op, dtype=dtype, count=count, a=a)
exec py.code.Source(source).compile()
> log = self.run(main, [], vec=0)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:126:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000cd1c4b8>
func_or_src = <function main at 0x000000000b187100>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 0}
src = <py._code.source.Source object at 0x000000000cd1c4f0>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py', mode 'w' at 0x000000000b187178>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=0,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py", line 7, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
____________ TestMicroNumPy.test_reduce_generic[any-int8-1-2239-1] _____________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000c0fa288>
op = 'any', dtype = 'int8', result = 1, count = 2239, a = 1
@py.test.mark.parametrize("op,dtype,result,count,a", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_reduce_generic(self,op,dtype,result,count,a):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{dtype}')
return a.{method}()
""".format(method=op, dtype=dtype, count=count, a=a)
exec py.code.Source(source).compile()
> log = self.run(main, [], vec=0)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:126:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000c0fa288>
func_or_src = <function main at 0x000000000c7beae8>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 0}
src = <py._code.source.Source object at 0x000000000c0fa100>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py', mode 'w' at 0x000000000c7bf268>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=0,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py", line 7, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
____________ TestMicroNumPy.test_reduce_generic[any-int16-1-2239-1] ____________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000006e07130>
op = 'any', dtype = 'int16', result = 1, count = 2239, a = 1
@py.test.mark.parametrize("op,dtype,result,count,a", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_reduce_generic(self,op,dtype,result,count,a):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{dtype}')
return a.{method}()
""".format(method=op, dtype=dtype, count=count, a=a)
exec py.code.Source(source).compile()
> log = self.run(main, [], vec=0)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:126:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000006e07130>
func_or_src = <function main at 0x000000000bb32bd8>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 0}
src = <py._code.source.Source object at 0x0000000006e071d8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py', mode 'w' at 0x000000000bb32c50>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=0,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py", line 7, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
____________ TestMicroNumPy.test_reduce_generic[any-int32-1-2239-1] ____________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000e0398a0>
op = 'any', dtype = 'int32', result = 1, count = 2239, a = 1
@py.test.mark.parametrize("op,dtype,result,count,a", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_reduce_generic(self,op,dtype,result,count,a):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{dtype}')
return a.{method}()
""".format(method=op, dtype=dtype, count=count, a=a)
exec py.code.Source(source).compile()
> log = self.run(main, [], vec=0)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:126:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000e0398a0>
func_or_src = <function main at 0x000000000cbd3880>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 0}
src = <py._code.source.Source object at 0x000000000e05ead8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py', mode 'w' at 0x000000000cbd38f8>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=0,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py", line 7, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
____________ TestMicroNumPy.test_reduce_generic[any-int64-1-2239-1] ____________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000cb0ac28>
op = 'any', dtype = 'int64', result = 1, count = 2239, a = 1
@py.test.mark.parametrize("op,dtype,result,count,a", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_reduce_generic(self,op,dtype,result,count,a):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{dtype}')
return a.{method}()
""".format(method=op, dtype=dtype, count=count, a=a)
exec py.code.Source(source).compile()
> log = self.run(main, [], vec=0)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:126:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000cb0ac28>
func_or_src = <function main at 0x000000000c6ad808>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 0}
src = <py._code.source.Source object at 0x000000000cb0aaa0>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py', mode 'w' at 0x000000000c6dee30>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=0,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py", line 7, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
____________ TestMicroNumPy.test_reduce_generic[any-int8-0-4912-0] _____________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000a605130>
op = 'any', dtype = 'int8', result = 0, count = 4912, a = 0
@py.test.mark.parametrize("op,dtype,result,count,a", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_reduce_generic(self,op,dtype,result,count,a):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{dtype}')
return a.{method}()
""".format(method=op, dtype=dtype, count=count, a=a)
exec py.code.Source(source).compile()
> log = self.run(main, [], vec=0)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:126:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000a605130>
func_or_src = <function main at 0x000000000c6967a0>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 0}
src = <py._code.source.Source object at 0x000000000a605168>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py', mode 'w' at 0x000000000c696818>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=0,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py", line 7, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
____________ TestMicroNumPy.test_reduce_generic[any-int16-0-4912-0] ____________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000e0a7c90>
op = 'any', dtype = 'int16', result = 0, count = 4912, a = 0
@py.test.mark.parametrize("op,dtype,result,count,a", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_reduce_generic(self,op,dtype,result,count,a):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{dtype}')
return a.{method}()
""".format(method=op, dtype=dtype, count=count, a=a)
exec py.code.Source(source).compile()
> log = self.run(main, [], vec=0)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:126:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000e0a7c90>
func_or_src = <function main at 0x000000000e7c5808>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 0}
src = <py._code.source.Source object at 0x000000000e0a7b08>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py', mode 'w' at 0x000000000be92098>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=0,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py", line 7, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
____________ TestMicroNumPy.test_reduce_generic[any-int32-0-4912-0] ____________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000c45a918>
op = 'any', dtype = 'int32', result = 0, count = 4912, a = 0
@py.test.mark.parametrize("op,dtype,result,count,a", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_reduce_generic(self,op,dtype,result,count,a):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{dtype}')
return a.{method}()
""".format(method=op, dtype=dtype, count=count, a=a)
exec py.code.Source(source).compile()
> log = self.run(main, [], vec=0)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:126:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000c45a918>
func_or_src = <function main at 0x00000000063a2020>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 0}
src = <py._code.source.Source object at 0x000000000c45aad8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py', mode 'w' at 0x00000000063a2098>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=0,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py", line 7, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
____________ TestMicroNumPy.test_reduce_generic[any-int64-0-4912-0] ____________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000009b84640>
op = 'any', dtype = 'int64', result = 0, count = 4912, a = 0
@py.test.mark.parametrize("op,dtype,result,count,a", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_reduce_generic(self,op,dtype,result,count,a):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{dtype}')
return a.{method}()
""".format(method=op, dtype=dtype, count=count, a=a)
exec py.code.Source(source).compile()
> log = self.run(main, [], vec=0)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:126:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000009b84640>
func_or_src = <function main at 0x00000000097ee200>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 0}
src = <py._code.source.Source object at 0x0000000009b85408>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py', mode 'w' at 0x00000000097ee278>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=0,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py", line 7, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
____________ TestMicroNumPy.test_reduce_generic[all-int8-0-3420-0] _____________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000aee7718>
op = 'all', dtype = 'int8', result = 0, count = 3420, a = 0
@py.test.mark.parametrize("op,dtype,result,count,a", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_reduce_generic(self,op,dtype,result,count,a):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{dtype}')
return a.{method}()
""".format(method=op, dtype=dtype, count=count, a=a)
exec py.code.Source(source).compile()
> log = self.run(main, [], vec=0)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:126:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000aee7718>
func_or_src = <function main at 0x00000000097ef538>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 0}
src = <py._code.source.Source object at 0x000000000aee7590>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py', mode 'w' at 0x00000000097efad8>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=0,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py", line 7, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
____________ TestMicroNumPy.test_reduce_generic[all-int16-0-3420-0] ____________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000de3ad08>
op = 'all', dtype = 'int16', result = 0, count = 3420, a = 0
@py.test.mark.parametrize("op,dtype,result,count,a", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_reduce_generic(self,op,dtype,result,count,a):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{dtype}')
return a.{method}()
""".format(method=op, dtype=dtype, count=count, a=a)
exec py.code.Source(source).compile()
> log = self.run(main, [], vec=0)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:126:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000de3ad08>
func_or_src = <function main at 0x0000000006613bc8>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 0}
src = <py._code.source.Source object at 0x000000000de3adb0>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py', mode 'w' at 0x0000000006613c40>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=0,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py", line 7, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
____________ TestMicroNumPy.test_reduce_generic[all-int32-0-3420-0] ____________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000c2aa058>
op = 'all', dtype = 'int32', result = 0, count = 3420, a = 0
@py.test.mark.parametrize("op,dtype,result,count,a", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_reduce_generic(self,op,dtype,result,count,a):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{dtype}')
return a.{method}()
""".format(method=op, dtype=dtype, count=count, a=a)
exec py.code.Source(source).compile()
> log = self.run(main, [], vec=0)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:126:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000c2aa058>
func_or_src = <function main at 0x00000000089c1a60>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 0}
src = <py._code.source.Source object at 0x000000000c2aaa30>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py', mode 'w' at 0x00000000089c1ad8>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=0,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py", line 7, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
____________ TestMicroNumPy.test_reduce_generic[all-int64-0-3420-0] ____________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000a935c20>
op = 'all', dtype = 'int64', result = 0, count = 3420, a = 0
@py.test.mark.parametrize("op,dtype,result,count,a", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_reduce_generic(self,op,dtype,result,count,a):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{dtype}')
return a.{method}()
""".format(method=op, dtype=dtype, count=count, a=a)
exec py.code.Source(source).compile()
> log = self.run(main, [], vec=0)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:126:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000a935c20>
func_or_src = <function main at 0x00000000065e8ea8>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 0}
src = <py._code.source.Source object at 0x000000000a935a98>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py', mode 'w' at 0x00000000065e9a60>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=0,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py", line 7, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
____________ TestMicroNumPy.test_reduce_generic[all-int8-1-6757-1] _____________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000caf3638>
op = 'all', dtype = 'int8', result = 1, count = 6757, a = 1
@py.test.mark.parametrize("op,dtype,result,count,a", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_reduce_generic(self,op,dtype,result,count,a):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{dtype}')
return a.{method}()
""".format(method=op, dtype=dtype, count=count, a=a)
exec py.code.Source(source).compile()
> log = self.run(main, [], vec=0)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:126:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000caf3638>
func_or_src = <function main at 0x00000000065e0b60>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 0}
src = <py._code.source.Source object at 0x000000000aff6528>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py', mode 'w' at 0x00000000065e0bd8>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=0,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py", line 7, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
____________ TestMicroNumPy.test_reduce_generic[all-int16-1-6757-1] ____________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000bcd7b08>
op = 'all', dtype = 'int16', result = 1, count = 6757, a = 1
@py.test.mark.parametrize("op,dtype,result,count,a", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_reduce_generic(self,op,dtype,result,count,a):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{dtype}')
return a.{method}()
""".format(method=op, dtype=dtype, count=count, a=a)
exec py.code.Source(source).compile()
> log = self.run(main, [], vec=0)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:126:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000bcd7b08>
func_or_src = <function main at 0x000000000b3aa458>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 0}
src = <py._code.source.Source object at 0x000000000bcd7980>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py', mode 'w' at 0x000000000b3aa9f8>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=0,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py", line 7, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
____________ TestMicroNumPy.test_reduce_generic[all-int32-1-6757-1] ____________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000d4b4fe0>
op = 'all', dtype = 'int32', result = 1, count = 6757, a = 1
@py.test.mark.parametrize("op,dtype,result,count,a", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_reduce_generic(self,op,dtype,result,count,a):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{dtype}')
return a.{method}()
""".format(method=op, dtype=dtype, count=count, a=a)
exec py.code.Source(source).compile()
> log = self.run(main, [], vec=0)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:126:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000d4b4fe0>
func_or_src = <function main at 0x000000000b3abc40>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 0}
src = <py._code.source.Source object at 0x000000000d4b5088>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py', mode 'w' at 0x000000000b3abcb8>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=0,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py", line 7, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
____________ TestMicroNumPy.test_reduce_generic[all-int64-1-6757-1] ____________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000cebe2f8>
op = 'all', dtype = 'int64', result = 1, count = 6757, a = 1
@py.test.mark.parametrize("op,dtype,result,count,a", type_permuated)
@py.test.mark.skipif('no_vector_backend()')
def test_reduce_generic(self,op,dtype,result,count,a):
source = """
def main():
import _numpypy.multiarray as np
a = np.array([{a}]*{count}, dtype='{dtype}')
return a.{method}()
""".format(method=op, dtype=dtype, count=count, a=a)
exec py.code.Source(source).compile()
> log = self.run(main, [], vec=0)
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:126:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000cebe2f8>
func_or_src = <function main at 0x000000000b3c3100>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200, 'vec': 0}
src = <py._code.source.Source object at 0x000000000cebe170>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py', mode 'w' at 0x000000000b3c3358>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=0,threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py", line 7, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_generic.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
____________________ TestMicroNumPy.test_reduce_logical_xor ____________________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000e916138>
def test_reduce_logical_xor(self):
def main():
import _numpypy.multiarray as np
import _numpypy.umath as um
arr = np.array([1.0] * 1500)
return um.logical_xor.reduce(arr)
> log = self.run(main, [])
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:146:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000e916138>
func_or_src = <function main at 0x000000000e938110>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200}
src = <py._code.source.Source object at 0x000000000e916020>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_logical_xor.py', mode 'w' at 0x000000000e9386b0>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_logical_xor.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_logical_xor.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_logical_xor.py", line 8, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_logical_xor.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
____________________ TestMicroNumPy.test_reduce_logical_and ____________________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000e933830>
def test_reduce_logical_and(self):
def main():
import _numpypy.multiarray as np
import _numpypy.umath as um
arr = np.array([1.0] * 1500)
return um.logical_and.reduce(arr)
> log = self.run(main, [])
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:206:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000e933830>
func_or_src = <function main at 0x000000000dabcdb8>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200}
src = <py._code.source.Source object at 0x000000000e933868>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_logical_and.py', mode 'w' at 0x000000000dabce30>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_logical_and.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_logical_and.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_logical_and.py", line 8, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_reduce_logical_and.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
___________________ TestMicroNumPy.test_array_getitem_basic ____________________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000b7e1830>
def test_array_getitem_basic(self):
def main():
import _numpypy.multiarray as np
arr = np.zeros((300, 300))
x = 150
y = 0
while y < 300:
a = arr[x, y]
y += 1
return a
> log = self.run(main, [])
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:262:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000b7e1830>
func_or_src = <function main at 0x0000000005f0a458>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200}
src = <py._code.source.Source object at 0x000000000b7e1868>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_array_getitem_basic.py', mode 'w' at 0x0000000005f0a4d0>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_array_getitem_basic.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_array_getitem_basic.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_array_getitem_basic.py", line 12, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_array_getitem_basic.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
_________________ TestMicroNumPy.test_array_getitem_accumulate _________________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000009558448>
def test_array_getitem_accumulate(self):
"""Check that operations/ufuncs on array items are jitted correctly"""
def main():
import _numpypy.multiarray as np
arr = np.zeros((300, 300))
a = 0.0
x = 150
y = 0
while y < 300:
a += arr[x, y]
y += 1
return a
> log = self.run(main, [])
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:302:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x0000000009558448>
func_or_src = <function main at 0x000000000850c6b0>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200}
src = <py._code.source.Source object at 0x0000000009558480>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_array_getitem_accumulate.py', mode 'w' at 0x000000000850c728>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_array_getitem_accumulate.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_array_getitem_accumulate.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_array_getitem_accumulate.py", line 13, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_array_getitem_accumulate.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
___________________ TestMicroNumPy.test_array_flatiter_next ____________________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000698b2b8>
def test_array_flatiter_next(self):
def main():
import _numpypy.multiarray as np
arr = np.zeros((1024, 16)) + 42
ai = arr.flat
i = 0
while i < arr.size:
a = next(ai)
i += 1
return a
> log = self.run(main, [])
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:341:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000698b2b8>
func_or_src = <function main at 0x00000000084f38f8>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200}
src = <py._code.source.Source object at 0x000000000698b2f0>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_array_flatiter_next.py', mode 'w' at 0x00000000084f3970>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_array_flatiter_next.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_array_flatiter_next.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_array_flatiter_next.py", line 12, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_array_flatiter_next.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
______________ TestMicroNumPy.test_array_flatiter_getitem_single _______________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000708dc58>
def test_array_flatiter_getitem_single(self):
def main():
import _numpypy.multiarray as np
arr = np.zeros((1024, 16)) + 42
ai = arr.flat
i = 0
while i < arr.size:
a = ai[i] # ID: getitem
i += 1
return a
> log = self.run(main, [])
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:373:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000708dc58>
func_or_src = <function main at 0x0000000008b21ad8>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200}
src = <py._code.source.Source object at 0x000000000708dcc8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_array_flatiter_getitem_single.py', mode 'w' at 0x0000000008b21b50>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_array_flatiter_getitem_single.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_array_flatiter_getitem_single.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_array_flatiter_getitem_single.py", line 12, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_array_flatiter_getitem_single.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
______________ TestMicroNumPy.test_array_flatiter_setitem_single _______________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000864e7c8>
def test_array_flatiter_setitem_single(self):
def main():
import _numpypy.multiarray as np
arr = np.empty((1024, 16))
ai = arr.flat
i = 0
while i < arr.size:
ai[i] = 42.0
i += 1
return ai[-1]
> log = self.run(main, [])
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:395:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x000000000864e7c8>
func_or_src = <function main at 0x000000000b7cd718>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200}
src = <py._code.source.Source object at 0x000000000864e6b0>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_array_flatiter_setitem_single.py', mode 'w' at 0x0000000009d4a980>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_array_flatiter_setitem_single.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_array_flatiter_setitem_single.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_array_flatiter_setitem_single.py", line 12, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_array_flatiter_setitem_single.py", line 4, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
________________________ TestMicroNumPy.test_mixed_div _________________________
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x00000000081f3b40>
def test_mixed_div(self):
N = 1500
def main():
N = 1500
import _numpypy.multiarray as np
arr = np.zeros(N)
l = [arr[i]/2. for i in range(N)]
return l
> log = self.run(main, [])
pypy/module/pypyjit/test_pypy_c/test_micronumpy.py:427:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x00000000081f3b40>
func_or_src = <function main at 0x0000000009d61088>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200}
src = <py._code.source.Source object at 0x00000000081f3b78>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/pytest/usession-main-4513/test-pypy-jit/test_mixed_div.py', mode 'w' at 0x0000000009d61100>
logfile = local('/tmp/pytest/usession-main-4513/test-pypy-jit/test_mixed_div.log')
cmdline = ['/build_dir/pypy-c-jit-linux-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'threshold=200,disable_unrolling=9999', '/tmp/pytest/usession-main-4513/test-pypy-jit/test_mixed_div.py']
key = 'disable_unrolling'
def run(self, func_or_src, args=[], import_site=False,
discard_stdout_before_last_line=False, **jitopts):
jitopts.setdefault('threshold', 200)
jitopts.setdefault('disable_unrolling', 9999)
src = py.code.Source(func_or_src)
if isinstance(func_or_src, types.FunctionType):
funcname = func_or_src.func_name
else:
funcname = 'main'
# write the snippet
arglist = ', '.join(map(repr, args))
with self.filepath.open("w") as f:
# we don't want to see the small bridges created
# by the checkinterval reaching the limit
f.write("import sys\n")
f.write("sys.setcheckinterval(10000000)\n")
f.write(str(src) + "\n")
f.write("print %s(%s)\n" % (funcname, arglist))
#
# run a child pypy-c with logging enabled
logfile = self.filepath.new(ext='.log')
#
cmdline = [sys.executable]
if not import_site:
cmdline.append('-S')
if jitopts:
jitcmdline = ['%s=%s' % (key, value)
for key, value in jitopts.items()]
cmdline += ['--jit', ','.join(jitcmdline)]
cmdline.append(str(self.filepath))
#
env = os.environ.copy()
# TODO old logging system
env['PYPYLOG'] = self.log_string + ':' + str(logfile)
jitlogfile = str(logfile) + '.jlog'
env['JITLOG'] = str(jitlogfile)
pipe = subprocess.Popen(cmdline,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = pipe.communicate()
if pipe.wait() < 0:
raise IOError("subprocess was killed by signal %d" % (
pipe.returncode,))
if stderr.startswith('SKIP:'):
py.test.skip(stderr)
#if stderr.startswith('debug_alloc.h:'): # lldebug builds
# stderr = ''
#assert not stderr
if stderr:
print '*** stderr of the subprocess: ***'
print stderr
#
if discard_stdout_before_last_line:
stdout = stdout.splitlines(True)[-1]
#
# parse the JIT log
rawlog = logparser.parse_log_file(str(logfile), verbose=False)
rawtraces = logparser.extract_category(rawlog, 'jit-log-opt-')
log = Log(rawtraces)
> log.result = eval(stdout)
E File "<string>", line 0
E
E ^
E SyntaxError: invalid syntax
pypy/module/pypyjit/test_pypy_c/test_00_model.py:88: SyntaxError
----------------------------- Captured stdout call -----------------------------
*** stderr of the subprocess: ***
Traceback (most recent call last):
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_mixed_div.py", line 9, in <module>
print main()
File "/tmp/pytest/usession-main-4513/test-pypy-jit/test_mixed_div.py", line 5, in main
import _numpypy.multiarray as np
ImportError: No module named _numpypy
=========================== short test summary info ============================
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[+-float32-float32-13708-3427-1.0-3.0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[+-float32-float64-13708-3427-1.0-3.0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[+-float64-float32-13708-3427-1.0-3.0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[+-float64-float64-13708-3427-1.0-3.0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[+-float32-int32-70587-7843-4.0-5.0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[+-float32-int64-70587-7843-4.0-5.0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[+-float32-int8-70587-7843-4.0-5.0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[+-float32-int16-70587-7843-4.0-5.0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[+-float64-int32-70587-7843-4.0-5.0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[+-float64-int64-70587-7843-4.0-5.0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[+-float64-int8-70587-7843-4.0-5.0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[+-float64-int16-70587-7843-4.0-5.0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[+-int32-float32-20568-2571-9.0--1.0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[+-int32-float64-20568-2571-9.0--1.0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[+-int64-float32-20568-2571-9.0--1.0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[+-int64-float64-20568-2571-9.0--1.0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[+-int8-float32-20568-2571-9.0--1.0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[+-int8-float64-20568-2571-9.0--1.0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[+-int16-float32-20568-2571-9.0--1.0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[+-int16-float64-20568-2571-9.0--1.0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[+-float32-int32--47754-2653-4.0--22.0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[+-float32-int64--47754-2653-4.0--22.0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[+-float32-int8--47754-2653-4.0--22.0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[+-float32-int16--47754-2653-4.0--22.0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[+-float64-int32--47754-2653-4.0--22.0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[+-float64-int64--47754-2653-4.0--22.0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[+-float64-int8--47754-2653-4.0--22.0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[+-float64-int16--47754-2653-4.0--22.0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[+-int32-int32--1499-1499-24.0--25.0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[+-int32-int64--1499-1499-24.0--25.0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[+-int32-int8--1499-1499-24.0--25.0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[+-int32-int16--1499-1499-24.0--25.0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[+-int64-int32--1499-1499-24.0--25.0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[+-int64-int64--1499-1499-24.0--25.0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[+-int64-int8--1499-1499-24.0--25.0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[+-int64-int16--1499-1499-24.0--25.0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[+-int8-int32--1499-1499-24.0--25.0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[+-int8-int64--1499-1499-24.0--25.0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[+-int8-int8--1499-1499-24.0--25.0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[+-int8-int16--1499-1499-24.0--25.0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[+-int16-int32--1499-1499-24.0--25.0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[+-int16-int64--1499-1499-24.0--25.0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[+-int16-int8--1499-1499-24.0--25.0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[+-int16-int16--1499-1499-24.0--25.0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[--float32-float32--11046-5523-1.0-3.0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[--float32-float64--11046-5523-1.0-3.0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[--float64-float32--11046-5523-1.0-3.0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[--float64-float64--11046-5523-1.0-3.0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[*-float32-float32-8997-2999-1.0-3.0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[*-float32-float64-8997-2999-1.0-3.0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[*-float64-float32-8997-2999-1.0-3.0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[*-float64-float64-8997-2999-1.0-3.0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[/-float32-float32-22896-7632-3.0-1.0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[/-float32-float64-22896-7632-3.0-1.0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[/-float64-float32-22896-7632-3.0-1.0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[/-float64-float64-22896-7632-3.0-1.0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[/-float32-float32-11448.0-7632-3.0-2.0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[/-float32-float64-11448.0-7632-3.0-2.0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[/-float64-float32-11448.0-7632-3.0-2.0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[/-float64-float64-11448.0-7632-3.0-2.0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[&-int32-int32-0-1500-1-0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[&-int32-int64-0-1500-1-0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[&-int32-int8-0-1500-1-0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[&-int32-int16-0-1500-1-0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[&-int64-int32-0-1500-1-0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[&-int64-int64-0-1500-1-0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[&-int64-int8-0-1500-1-0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[&-int64-int16-0-1500-1-0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[&-int8-int32-0-1500-1-0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[&-int8-int64-0-1500-1-0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[&-int8-int8-0-1500-1-0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[&-int8-int16-0-1500-1-0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[&-int16-int32-0-1500-1-0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[&-int16-int64-0-1500-1-0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[&-int16-int8-0-1500-1-0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[&-int16-int16-0-1500-1-0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[&-int32-int32-1500-1500-1-1]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[&-int32-int64-1500-1500-1-1]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[&-int32-int8-1500-1500-1-1]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[&-int32-int16-1500-1500-1-1]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[&-int64-int32-1500-1500-1-1]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[&-int64-int64-1500-1500-1-1]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[&-int64-int8-1500-1500-1-1]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[&-int64-int16-1500-1500-1-1]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[&-int8-int32-1500-1500-1-1]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[&-int8-int64-1500-1500-1-1]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[&-int8-int8-1500-1500-1-1]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[&-int8-int16-1500-1500-1-1]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[&-int16-int32-1500-1500-1-1]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[&-int16-int64-1500-1500-1-1]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[&-int16-int8-1500-1500-1-1]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[&-int16-int16-1500-1500-1-1]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[|-int32-int32-1500-1500-0-1]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[|-int32-int64-1500-1500-0-1]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[|-int32-int8-1500-1500-0-1]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[|-int32-int16-1500-1500-0-1]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[|-int64-int32-1500-1500-0-1]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[|-int64-int64-1500-1500-0-1]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[|-int64-int8-1500-1500-0-1]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[|-int64-int16-1500-1500-0-1]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[|-int8-int32-1500-1500-0-1]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[|-int8-int64-1500-1500-0-1]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[|-int8-int8-1500-1500-0-1]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[|-int8-int16-1500-1500-0-1]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[|-int16-int32-1500-1500-0-1]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[|-int16-int64-1500-1500-0-1]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[|-int16-int8-1500-1500-0-1]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[|-int16-int16-1500-1500-0-1]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[|-int32-int32-0-1500-0-0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[|-int32-int64-0-1500-0-0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[|-int32-int8-0-1500-0-0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[|-int32-int16-0-1500-0-0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[|-int64-int32-0-1500-0-0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[|-int64-int64-0-1500-0-0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[|-int64-int8-0-1500-0-0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[|-int64-int16-0-1500-0-0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[|-int8-int32-0-1500-0-0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[|-int8-int64-0-1500-0-0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[|-int8-int8-0-1500-0-0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[|-int8-int16-0-1500-0-0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[|-int16-int32-0-1500-0-0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[|-int16-int64-0-1500-0-0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[|-int16-int8-0-1500-0-0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_vector_call2[|-int16-int16-0-1500-0-0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_reduce_generic[sum-int8-1742-1742-1]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_reduce_generic[sum-int16-1742-1742-1]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_reduce_generic[sum-int32-1742-1742-1]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_reduce_generic[sum-int64-1742-1742-1]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_reduce_generic[prod-int8-1-3178-1]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_reduce_generic[prod-int16-1-3178-1]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_reduce_generic[prod-int32-1-3178-1]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_reduce_generic[prod-int64-1-3178-1]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_reduce_generic[any-int8-1-2239-1]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_reduce_generic[any-int16-1-2239-1]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_reduce_generic[any-int32-1-2239-1]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_reduce_generic[any-int64-1-2239-1]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_reduce_generic[any-int8-0-4912-0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_reduce_generic[any-int16-0-4912-0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_reduce_generic[any-int32-0-4912-0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_reduce_generic[any-int64-0-4912-0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_reduce_generic[all-int8-0-3420-0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_reduce_generic[all-int16-0-3420-0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_reduce_generic[all-int32-0-3420-0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_reduce_generic[all-int64-0-3420-0]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_reduce_generic[all-int8-1-6757-1]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_reduce_generic[all-int16-1-6757-1]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_reduce_generic[all-int32-1-6757-1]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_reduce_generic[all-int64-1-6757-1]
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_reduce_logical_xor
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_reduce_logical_and
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_array_getitem_basic
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_array_getitem_accumulate
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_array_flatiter_next
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_array_flatiter_getitem_single
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_array_flatiter_setitem_single
FAIL pypy/module/pypyjit/test_pypy_c/test_micronumpy.py::TestMicroNumPy::()::test_mixed_div
============= 156 failed, 1048 passed, 3 skipped in 74.09 seconds ==============
program finished with exit code 1
elapsedTime=74.354338