python testrunner/pypyjit_tests.py
in dir /Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build (timeout 4000 secs)
watching logfiles {'pytestLog': 'pypyjit_new.log'}
argv: ['python', 'testrunner/pypyjit_tests.py']
environment:
HOME=/Users/matti
HOMEBREW_CELLAR=/opt/homebrew_x86_64/Cellar
HOMEBREW_PREFIX=/opt/homebrew_x86_64
HOMEBREW_REPOSITORY=/opt/homebrew_x86_64
INFOPATH=/opt/homebrew_x86_64/share/info:
LANG=en_US.UTF-8
LC_ADDRESS=en_AU.UTF-8
LC_IDENTIFICATION=en_AU.UTF-8
LC_MEASUREMENT=en_AU.UTF-8
LC_MONETARY=en_AU.UTF-8
LC_NAME=en_AU.UTF-8
LC_NUMERIC=en_AU.UTF-8
LC_PAPER=en_AU.UTF-8
LC_TELEPHONE=en_AU.UTF-8
LC_TIME=en_AU.UTF-8
LOGNAME=matti
OLDPWD=/Users/matti
PATH=/Users/matti/oss/pypy-x86_64-buildbot/bin:/opt/homebrew_x86_64/bin:/opt/homebrew_x86_64/sbin:/Library/Frameworks/Python.framework/Versions/3.11/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin
PKG_CONFIG_PATH=/opt/homebrew_x86_64/opt/openssl@1.1/lib/pkgconfig
PWD=/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build
PYPY_USESSION_DIR=/tmp/buildbot-x86_64
SHELL=/bin/zsh
SHLVL=2
SSH_CLIENT=10.0.0.17 57960 22
SSH_CONNECTION=10.0.0.17 57960 10.0.0.16 22
SSH_TTY=/dev/ttys000
TERM=xterm-256color
TMPDIR=/tmp/buildbot-x86_64/pytest
USER=matti
_=/Users/matti/oss/pypy-x86_64-buildbot/bin/buildslave
using PTY: False
============================= test session starts ==============================
platform darwin -- 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 /Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pytest.pyc
rootdir: /Users/matti/build-worker-x86_64/pypy-c-jit-macos-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 s
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 F
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 ===================================
______________________________ TestLogParser.test ______________________________
self = <pypy.module.pypyjit.test_pypy_c.test_jitlogparser.TestLogParser object at 0x00007fb806390e90>
def test(self):
def fn_with_bridges(N):
def is_prime(x):
for y in xrange(2, x):
if x % y == 0:
return False
return True
result = 0
for x in xrange(N):
if x % 3 == 0:
result += 5
elif x % 5 == 0:
result += 3
elif is_prime(x):
result += x
elif x == 99:
result *= 2
return result
#
N = 10000
_log = self.run(fn_with_bridges, [N])
log, loops = import_log(_log.logfile)
parse_log_counts(extract_category(log, 'jit-backend-count'), loops)
is_prime_loops = []
fn_with_bridges_loops = []
bridges = {}
lib_re = re.compile("file '.*lib-python.*'")
for loop in loops:
if hasattr(loop, 'force_asm'):
try:
> loop.force_asm()
pypy/module/pypyjit/test_pypy_c/test_jitlogparser.py:46:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rpython/tool/jitlogparser/parser.py:472: in <lambda>
dump_start=start_ofs))
rpython/tool/jitlogparser/parser.py:110: in postprocess
backend_tp, dump_start)
rpython/tool/jitlogparser/parser.py:151: in _asm_disassemble
return list(machine_code_dump(d, origin_addr, tp))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
data = '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\...x00ASM\x8d\x9b\xb0\xe6\xff\xffA\xff\xe3\xff5|\xfb\xff\xffM\x8d\x9b\x08\xc3\xb9\xfbASM\x8d\x9b\xa0\xe6\xff\xffA\xff\xe3'
originaddr = 4469217648L, backend_name = 'x86_64', label_list = None
def machine_code_dump(data, originaddr, backend_name, label_list=None):
objdump_machine_option = {
'x86': 'i386',
'x86-without-sse2': 'i386',
'x86_32': 'i386',
'x86_64': 'i386:x86-64',
'x86-64': 'i386:x86-64',
'i386': 'i386',
'arm': 'arm',
'arm_32': 'arm',
'aarch64': 'aarch64',
'ppc' : 'powerpc:common64',
'ppc-64' : 'powerpc:common64',
'riscv64': 'riscv:rv64',
's390x': 's390:64-bit',
}
machine_endianness = {
# default value: 'little'
'ppc' : sys.byteorder, # i.e. same as the running machine...
'ppc-64' : sys.byteorder, # i.e. same as the running machine...
's390x' : sys.byteorder, # i.e. same as the running machine...
}
cmd = find_objdump()
objdump = ('%(command)s -b binary -m %(machine)s '
'--endian=%(endianness)s '
'--disassembler-options=intel-mnemonics '
'--adjust-vma=%(origin)d -D %(file)s')
#
f = open(tmpfile, 'wb')
f.write(data)
f.close()
p = subprocess.Popen(objdump % {
'command': cmd,
'file': tmpfile,
'origin': originaddr,
'machine': objdump_machine_option[backend_name],
'endianness': machine_endianness.get(backend_name, 'little'),
}, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
stdout, stderr = p.communicate()
assert not p.returncode, ('Encountered an error running objdump: %s' %
> stderr)
E AssertionError: Encountered an error running objdump: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump: error: unknown argument '-b'
rpython/jit/backend/tool/viewcode.py:82: AssertionError
----------------------------- Captured stdout call -----------------------------
loading symbols from /Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c...
3 symbols found
----------------------------- Captured stderr call -----------------------------
0%..loaded
____ TestMicroNumPy.test_vector_call2[+-float32-float32-13708-3427-1.0-3.0] ____
self = <pypy.module.pypyjit.test_pypy_c.test_micronumpy.TestMicroNumPy object at 0x00007fb802e65ad0>
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 0x00007fb802e65ad0>
func_or_src = <function main at 0x00007fb804bb6e30>, 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 0x00007fb802e64838>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb804bb7538>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7f1c54d78>
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 0x00007fb7f1c54d78>
func_or_src = <function main at 0x00007fb804be6ea8>, 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 0x00007fb7f1c54bf0>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb804be7f88>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb803907e88>
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 0x00007fb803907e88>
func_or_src = <function main at 0x00007fb804a25ad8>, 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 0x00007fb803907d00>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb804a25f10>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb804016560>
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 0x00007fb804016560>
func_or_src = <function main at 0x00007fb804ac9718>, 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 0x00007fb8040163d8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb804ac9b50>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb804689b40>
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 0x00007fb804689b40>
func_or_src = <function main at 0x00007fb804ccef20>, 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 0x00007fb8046899b8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb804ccf448>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7f21baa30>
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 0x00007fb7f21baa30>
func_or_src = <function main at 0x00007fb80370cb60>, 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 0x00007fb7f21ba8a8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb80370d010>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7f3a53520>
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 0x00007fb7f3a53520>
func_or_src = <function main at 0x00007fb7f2970b60>, 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 0x00007fb7f3a53398>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb7f2971178>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb806396250>
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 0x00007fb806396250>
func_or_src = <function main at 0x00007fb7f2971f88>, 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 0x00007fb8063960c8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb7f29407a0>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7e04edd38>
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 0x00007fb7e04edd38>
func_or_src = <function main at 0x00007fb7f1ace200>, 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 0x00007fb7e04edbb0>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb7f1aceea8>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7f4406608>
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 0x00007fb7f4406608>
func_or_src = <function main at 0x00007fb7f1d36890>, 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 0x00007fb7f4406480>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb7f1d36ea8>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb8032b0410>
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 0x00007fb8032b0410>
func_or_src = <function main at 0x00007fb8032a49f8>, 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 0x00007fb8032b0288>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb8032a4f98>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7f21166b0>
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 0x00007fb7f21166b0>
func_or_src = <function main at 0x00007fb803246bd8>, 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 0x00007fb7f2116528>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb803247088>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb8049de560>
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 0x00007fb8049de560>
func_or_src = <function main at 0x00007fb803247f88>, 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 0x00007fb8049de3d8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb80326aa70>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb806fea0c8>
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 0x00007fb806fea0c8>
func_or_src = <function main at 0x00007fb80326b808>, 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 0x00007fb806ff3ef8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb80326bbc8>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7f4607440>
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 0x00007fb7f4607440>
func_or_src = <function main at 0x00007fb803db7718>, 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 0x00007fb7f46072b8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb803db7bc8>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb806bb3948>
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 0x00007fb806bb3948>
func_or_src = <function main at 0x00007fb7f2712db8>, 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 0x00007fb806bb37c0>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb7f2713268>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb807b65280>
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 0x00007fb807b65280>
func_or_src = <function main at 0x00007fb8039d8e30>, 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 0x00007fb805684448>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb8039d8ea8>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7f2bf3718>
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 0x00007fb7f2bf3718>
func_or_src = <function main at 0x00007fb8039d9d30>, 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 0x00007fb7f2bf3590>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb8039a2110>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7f45abde0>
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 0x00007fb7f45abde0>
func_or_src = <function main at 0x00007fb803408278>, 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 0x00007fb7f45abc58>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb803408ea8>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb807df58d8>
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 0x00007fb807df58d8>
func_or_src = <function main at 0x00007fb803409f88>, 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 0x00007fb807df5750>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb80340e188>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb805ffc330>
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 0x00007fb805ffc330>
func_or_src = <function main at 0x00007fb7f2dc6188>, 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 0x00007fb805ffc1a8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb7f2dc7010>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7b031a758>
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 0x00007fb7b031a758>
func_or_src = <function main at 0x00007fb7b037e098>, 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 0x00007fb7b031a5d0>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb7b037e458>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7b05f78a0>
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 0x00007fb7b05f78a0>
func_or_src = <function main at 0x00007fb7f20f23e0>, 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 0x00007fb7b05f7718>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb7f20f36a0>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb803c4ea30>
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 0x00007fb803c4ea30>
func_or_src = <function main at 0x00007fb7f214ac50>, 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 0x00007fb803c4f3d0>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb7f214acc8>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7f231d018>
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 0x00007fb7f231d018>
func_or_src = <function main at 0x00007fb7f214bd30>, 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 0x00007fb7f231ce90>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb7f21c4188>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7f34b2b10>
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 0x00007fb7f34b2b10>
func_or_src = <function main at 0x00007fb7f21c5da8>, 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 0x00007fb7f3ddc1e0>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb7f21c5e20>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb8042cd6a8>
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 0x00007fb8042cd6a8>
func_or_src = <function main at 0x00007fb7f34158f8>, 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 0x00007fb8042cd520>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb7f3415d30>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb804cb7558>
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 0x00007fb804cb7558>
func_or_src = <function main at 0x00007fb804851088>, 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 0x00007fb804cb73d0>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb804851538>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7f1d8f408>
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 0x00007fb7f1d8f408>
func_or_src = <function main at 0x00007fb80485a638>, 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 0x00007fb7f1d8f280>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb80485aa70>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7f12f5248>
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 0x00007fb7f12f5248>
func_or_src = <function main at 0x00007fb80485bb50>, 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 0x00007fb7f12f50c0>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb7e0924368>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7f17ba918>
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 0x00007fb7f17ba918>
func_or_src = <function main at 0x00007fb7e0925880>, 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 0x00007fb7f17baaa0>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb7e09258f8>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb8031b3558>
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 0x00007fb8031b3558>
func_or_src = <function main at 0x00007fb8064a69f8>, 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 0x00007fb8031b33d0>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb8064a6e30>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb803ee85d0>
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 0x00007fb803ee85d0>
func_or_src = <function main at 0x00007fb803306890>, 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 0x00007fb803ee8448>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb803306d40>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb80402b638>
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 0x00007fb80402b638>
func_or_src = <function main at 0x00007fb803307d30>, 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 0x00007fb80402b4b0>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb803304200>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7f192bef8>
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 0x00007fb7f192bef8>
func_or_src = <function main at 0x00007fb803305358>, 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 0x00007fb7f192bd70>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb8033056a0>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7f2160608>
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 0x00007fb7f2160608>
func_or_src = <function main at 0x00007fb7b0279538>, 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 0x00007fb7f2160480>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb7b02799e8>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7f28b9cc8>
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 0x00007fb7f28b9cc8>
func_or_src = <function main at 0x00007fb7b0106b60>, 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 0x00007fb7f2fc6de8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb7b0106bd8>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb805fa55c8>
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 0x00007fb805fa55c8>
func_or_src = <function main at 0x00007fb7f19fe908>, 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 0x00007fb805fa5440>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb7f19fedb8>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb806b394b0>
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 0x00007fb806b394b0>
func_or_src = <function main at 0x00007fb7f19ffe98>, 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 0x00007fb806b39328>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb804a2e458>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb80517a0c8>
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 0x00007fb80517a0c8>
func_or_src = <function main at 0x00007fb804a2f628>, 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 0x00007fb80517a250>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb804a2f6a0>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb805ab7ef8>
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 0x00007fb805ab7ef8>
func_or_src = <function main at 0x00007fb7f1b41628>, 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 0x00007fb805ab7d70>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb7f1b41ad8>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb806527d38>
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 0x00007fb806527d38>
func_or_src = <function main at 0x00007fb7f1b8adb8>, 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 0x00007fb806527bb0>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb7f1b8b3d0>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb806c09c20>
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 0x00007fb806c09c20>
func_or_src = <function main at 0x00007fb804fc4458>, 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 0x00007fb806c09a98>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb804fc5010>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb8032e5638>
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 0x00007fb8032e5638>
func_or_src = <function main at 0x00007fb804fc56a0>, 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 0x00007fb8032e54b0>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb7f3454890>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7f21fa6e8>
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 0x00007fb7f21fa6e8>
func_or_src = <function main at 0x00007fb7f3455ad8>, 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 0x00007fb807f50758>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb7f3455b50>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7b005dbe8>
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 0x00007fb7b005dbe8>
func_or_src = <function main at 0x00007fb804ba3628>, 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 0x00007fb7b005da60>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb804ba39e8>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb8064c5520>
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 0x00007fb8064c5520>
func_or_src = <function main at 0x00007fb807c9d6a0>, 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 0x00007fb8064c56a8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb807c9d718>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7f2beac28>
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 0x00007fb7f2beac28>
func_or_src = <function main at 0x00007fb80327ed40>, 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 0x00007fb7f2beaaa0>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb80327f1f0>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7f3f9c950>
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 0x00007fb7f3f9c950>
func_or_src = <function main at 0x00007fb803ac2278>, 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 0x00007fb7f3f9c7c8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb803ac2638>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb80495cfa8>
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 0x00007fb80495cfa8>
func_or_src = <function main at 0x00007fb7f1b9e890>, 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 0x00007fb80495d9b8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb7f1b9e9f8>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb806a2e410>
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 0x00007fb806a2e410>
func_or_src = <function main at 0x00007fb7f1b9f9e8>, 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 0x00007fb806a2e288>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb7f1bcc5c0>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7f49b7440>
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 0x00007fb7f49b7440>
func_or_src = <function main at 0x00007fb7f1bcd178>, 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 0x00007fb7f49b72b8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb804b32368>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7f34ff638>
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 0x00007fb7f34ff638>
func_or_src = <function main at 0x00007fb804b32cc8>, 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 0x00007fb7f34ff4b0>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb804b32ea8>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7f4f621a8>
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 0x00007fb7f4f621a8>
func_or_src = <function main at 0x00007fb7f2d80098>, 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 0x00007fb7f4f62020>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb7f2d805c0>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7b01faec8>
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 0x00007fb7b01faec8>
func_or_src = <function main at 0x00007fb7f2d81790>, 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 0x00007fb7b01fad40>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb7f2d81b50>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb80763c448>
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 0x00007fb80763c448>
func_or_src = <function main at 0x00007fb8039a2908>, 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 0x00007fb80763c5d0>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb8039a2980>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7f1c79590>
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 0x00007fb7f1c79590>
func_or_src = <function main at 0x00007fb8039d8b60>, 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 0x00007fb7f1c79360>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb8039d9718>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7f22ae330>
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 0x00007fb7f22ae330>
func_or_src = <function main at 0x00007fb7f2712e30>, 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 0x00007fb7f22ae100>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb7f2713268>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7f2494838>
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 0x00007fb7f2494838>
func_or_src = <function main at 0x00007fb803db7880>, 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 0x00007fb7f24949c0>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb803db78f8>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7f3463a60>
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 0x00007fb7f3463a60>
func_or_src = <function main at 0x00007fb803246188>, 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 0x00007fb7f34638d8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb803246728>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7f1cb9248>
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 0x00007fb7f1cb9248>
func_or_src = <function main at 0x00007fb8032a42f0>, 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 0x00007fb7f1cb90c0>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb8032a4980>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7f0f2eb10>
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 0x00007fb7f0f2eb10>
func_or_src = <function main at 0x00007fb7f1d36ea8>, 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 0x00007fb7f0f2f558>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb7f1d37088>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7f10a4100>
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 0x00007fb7f10a4100>
func_or_src = <function main at 0x00007fb7f29403e0>, 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 0x00007fb7f10a4330>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb7f2940458>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb801eeaf00>
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 0x00007fb801eeaf00>
func_or_src = <function main at 0x00007fb7f2970458>, 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 0x00007fb801eeb088>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb7f29704d0>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb802ff30f8>
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 0x00007fb802ff30f8>
func_or_src = <function main at 0x00007fb80370c908>, 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 0x00007fb802ff2de8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb80370cd40>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7f202f328>
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 0x00007fb7f202f328>
func_or_src = <function main at 0x00007fb804ccebd8>, 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 0x00007fb7f202f4b0>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb804ccec50>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb803557478>
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 0x00007fb803557478>
func_or_src = <function main at 0x00007fb804ac98f8>, 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 0x00007fb803557600>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb804ac9970>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb8038a7fa0>
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 0x00007fb8038a7fa0>
func_or_src = <function main at 0x00007fb804a25bc8>, 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 0x00007fb8038a7e18>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb804be69f8>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb804036870>
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 0x00007fb804036870>
func_or_src = <function main at 0x00007fb804be7718>, 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 0x00007fb8040366e8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb804be7ad8>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7f270a3d8>
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 0x00007fb7f270a3d8>
func_or_src = <function main at 0x00007fb804bb7538>, 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 0x00007fb7f270a250>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb804b5c5c0>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7f25428e0>
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 0x00007fb7f25428e0>
func_or_src = <function main at 0x00007fb804b40908>, 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 0x00007fb7f25439f0>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb804b40980>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb804c0ce20>
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 0x00007fb804c0ce20>
func_or_src = <function main at 0x00007fb804b20458>, 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 0x00007fb804c0d520>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb804b204d0>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7f2c27d70>
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 0x00007fb7f2c27d70>
func_or_src = <function main at 0x00007fb804b215b0>, 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 0x00007fb7f2c27be8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb7f37772e0>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb8040abec0>
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 0x00007fb8040abec0>
func_or_src = <function main at 0x00007fb7f377a890>, 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 0x00007fb8040abd38>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb7f358a728>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb805122c28>
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 0x00007fb805122c28>
func_or_src = <function main at 0x00007fb7f358be98>, 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 0x00007fb805122aa0>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb7f3572098>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb805ab6870>
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 0x00007fb805ab6870>
func_or_src = <function main at 0x00007fb7f3573718>, 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 0x00007fb805ab66e8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb7f35a6110>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb803d2bb78>
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 0x00007fb803d2bb78>
func_or_src = <function main at 0x00007fb7f35a7bc8>, 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 0x00007fb803d2b9f0>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb7f35582f0>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb807003408>
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 0x00007fb807003408>
func_or_src = <function main at 0x00007fb7f3559808>, 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 0x00007fb807003280>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb7f3559c40>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb807f2f910>
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 0x00007fb807f2f910>
func_or_src = <function main at 0x00007fb7f28d51f0>, 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 0x00007fb807f2f788>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb7f28d59e8>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7f45ac288>
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 0x00007fb7f45ac288>
func_or_src = <function main at 0x00007fb7f220b358>, 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 0x00007fb7f45ad050>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb7f220b3d0>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb806b92950>
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 0x00007fb806b92950>
func_or_src = <function main at 0x00007fb7f21e6728>, 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 0x00007fb806b92ad8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb7f21e67a0>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7f3f5d600>
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 0x00007fb7f3f5d600>
func_or_src = <function main at 0x00007fb7f21e7e98>, 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 0x00007fb7f3f5d478>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb7f21ce458>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb806b28100>
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 0x00007fb806b28100>
func_or_src = <function main at 0x00007fb7f21cf628>, 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 0x00007fb8069d1f30>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb7f21cfbc8>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7f5045a28>
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 0x00007fb7f5045a28>
func_or_src = <function main at 0x00007fb7f2446ea8>, 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 0x00007fb7f503e598>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb7f2446f20>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb805ff0410>
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 0x00007fb805ff0410>
func_or_src = <function main at 0x00007fb7f1f96ae8>, 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 0x00007fb805ff0598>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb7f1f96b60>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7e085c448>
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 0x00007fb7e085c448>
func_or_src = <function main at 0x00007fb7f253c908>, 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 0x00007fb7e085c5d0>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb7f253c980>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7f43d2678>
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 0x00007fb7f43d2678>
func_or_src = <function main at 0x00007fb7f253dc40>, 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 0x00007fb7f43d24f0>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb7f2556200>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb80596fbb0>
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 0x00007fb80596fbb0>
func_or_src = <function main at 0x00007fb7f2106200>, 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 0x00007fb7f36fa4b8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb7f2106278>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb807a12560>
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 0x00007fb807a12560>
func_or_src = <function main at 0x00007fb805f34188>, 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 0x00007fb807a126e8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb805f34278>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7f11be368>
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 0x00007fb7f11be368>
func_or_src = <function main at 0x00007fb805f35268>, 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 0x00007fb7f11be1e0>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb805f35e20>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7b03ca218>
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 0x00007fb7b03ca218>
func_or_src = <function main at 0x00007fb7f1bccae8>, 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 0x00007fb7b03ca090>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb7f1bcd178>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb807cdc3d8>
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 0x00007fb807cdc3d8>
func_or_src = <function main at 0x00007fb7f1b9f718>, 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 0x00007fb807cdc250>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb7f1b9fcb8>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb804552410>
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 0x00007fb804552410>
func_or_src = <function main at 0x00007fb80327e7a0>, 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 0x00007fb804552288>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb80327ebd8>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb803a2a870>
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 0x00007fb803a2a870>
func_or_src = <function main at 0x00007fb807c9c7a0>, 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 0x00007fb803a2a6e8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb807c9cb60>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7f2e2d050>
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 0x00007fb7f2e2d050>
func_or_src = <function main at 0x00007fb804ba3088>, 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 0x00007fb7f2e2c678>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb7f3455010>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7f1db8640>
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 0x00007fb7f1db8640>
func_or_src = <function main at 0x00007fb804fc51f0>, 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 0x00007fb7f1dfe090>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb804fc5268>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7f2ce3830>
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 0x00007fb7f2ce3830>
func_or_src = <function main at 0x00007fb7f1b8aea8>, 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 0x00007fb7f2ce36a8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb7f1b8bc40>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7f08e5ec0>
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 0x00007fb7f08e5ec0>
func_or_src = <function main at 0x00007fb7f1b418f8>, 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 0x00007fb7f08e5cc8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb804a2e3e0>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb802d64560>
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 0x00007fb802d64560>
func_or_src = <function main at 0x00007fb7f19fe980>, 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 0x00007fb802d643d8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb7f19fed40>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7f1c3e790>
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 0x00007fb7f1c3e790>
func_or_src = <function main at 0x00007fb7b0107d30>, 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 0x00007fb7f1c3e608>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb7b02784d0>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7f2a9f408>
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 0x00007fb7f2a9f408>
func_or_src = <function main at 0x00007fb803304cc8>, 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 0x00007fb7f2a9f280>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb8033051f0>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb8045fa1e0>
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 0x00007fb8045fa1e0>
func_or_src = <function main at 0x00007fb803307970>, 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 0x00007fb8045fa058>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb803307f10>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb8035fce90>
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 0x00007fb8035fce90>
func_or_src = <function main at 0x00007fb7e0924e30>, 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 0x00007fb8035fd018>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb7e0924ea8>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7f37ff6e0>
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 0x00007fb7f37ff6e0>
func_or_src = <function main at 0x00007fb80485a980>, 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 0x00007fb7f2542058>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb80485a9f8>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb804ac0368>
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 0x00007fb804ac0368>
func_or_src = <function main at 0x00007fb804851538>, 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 0x00007fb804ac03a0>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb804851cb8>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7f2d3def8>
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 0x00007fb7f2d3def8>
func_or_src = <function main at 0x00007fb7f21c4b60>, 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 0x00007fb7f2dbe918>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb7f21c4bd8>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7f43048a8>
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 0x00007fb7f43048a8>
func_or_src = <function main at 0x00007fb7f214a908>, 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 0x00007fb7f4304720>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb7f214b4c0>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb80589cf70>
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 0x00007fb80589cf70>
func_or_src = <function main at 0x00007fb7f20f38f8>, 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 0x00007fb80589cde8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb7f20f3da8>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7f4647b78>
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 0x00007fb7f4647b78>
func_or_src = <function main at 0x00007fb7f2dc6728>, 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 0x00007fb7f46479f0>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb7f2dc7970>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb804d33980>
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 0x00007fb804d33980>
func_or_src = <function main at 0x00007fb801c28ea8>, 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 0x00007fb804d337f8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb801c293d0>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7f43d24b8>
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 0x00007fb7f43d24b8>
func_or_src = <function main at 0x00007fb804b32110>, 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 0x00007fb7f43d2330>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb804b32728>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7b02e0250>
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 0x00007fb7b02e0250>
func_or_src = <function main at 0x00007fb804b78188>, 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 0x00007fb7b02e00c8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb804b793d0>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb806b859f0>
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 0x00007fb806b859f0>
func_or_src = <function main at 0x00007fb7f1af43e0>, 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 0x00007fb806b85b78>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb7f1af4458>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb807504c98>
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 0x00007fb807504c98>
func_or_src = <function main at 0x00007fb7f383e278>, 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 0x00007fb807505948>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb7f383e2f0>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb805072560>
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 0x00007fb805072560>
func_or_src = <function main at 0x00007fb7f383fad8>, 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 0x00007fb8050723d8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb7f383ff10>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb8071b8a30>
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 0x00007fb8071b8a30>
func_or_src = <function main at 0x00007fb7f3749010>, 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 0x00007fb8071b88a8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb7f3749538>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7f289c6e8>
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 0x00007fb7f289c6e8>
func_or_src = <function main at 0x00007fb803eb2818>, 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 0x00007fb7f289c560>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb803eb2d40>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb80490d600>
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 0x00007fb80490d600>
func_or_src = <function main at 0x00007fb803eb3e98>, 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 0x00007fb80490d788>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb803eb3f10>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7f4f9fd00>
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 0x00007fb7f4f9fd00>
func_or_src = <function main at 0x00007fb7f1ec5358>, 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 0x00007fb7f4f9fe88>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb7f1ec53d0>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb8059723a0>
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 0x00007fb8059723a0>
func_or_src = <function main at 0x00007fb80593a200>, 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 0x00007fb805972528>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb80593a278>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb804f66950>
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 0x00007fb804f66950>
func_or_src = <function main at 0x00007fb7f433c548>, 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 0x00007fb804f667c8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb7f433c9f8>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7b04f8f38>
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 0x00007fb7b04f8f38>
func_or_src = <function main at 0x00007fb7f433db50>, 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 0x00007fb7b04f8db0>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb7f2557448>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7b00bc8e0>
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 0x00007fb7b00bc8e0>
func_or_src = <function main at 0x00007fb7f253c6b0>, 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 0x00007fb7b00bc918>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb7f253c7a0>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb80762e3d8>
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 0x00007fb80762e3d8>
func_or_src = <function main at 0x00007fb7f1f967a0>, 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 0x00007fb80762e560>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py', mode 'w' at 0x00007fb7f1f96818>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=1,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_vector_call2.py", line 10, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7b0576330>
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 0x00007fb7b0576330>
func_or_src = <function main at 0x00007fb7f2446ea8>, 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 0x00007fb7b0576b10>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.py', mode 'w' at 0x00007fb7f2446f20>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=0,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.py", line 7, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb8032246b0>
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 0x00007fb8032246b0>
func_or_src = <function main at 0x00007fb7f21cf8f8>, 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 0x00007fb803224528>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.py', mode 'w' at 0x00007fb7f21e6188>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=0,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.py", line 7, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb8035d9d00>
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 0x00007fb8035d9d00>
func_or_src = <function main at 0x00007fb7f21e78f8>, 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 0x00007fb8035d9da8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.py', mode 'w' at 0x00007fb7f21e7970>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=0,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.py", line 7, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7f33e5a98>
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 0x00007fb7f33e5a98>
func_or_src = <function main at 0x00007fb7f220be20>, 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 0x00007fb7f21262f8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.py', mode 'w' at 0x00007fb7f220be98>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=0,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.py", line 7, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb806accb10>
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 0x00007fb806accb10>
func_or_src = <function main at 0x00007fb7f3559178>, 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 0x00007fb806acc988>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.py', mode 'w' at 0x00007fb7f35596a0>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=0,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.py", line 7, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7f130df30>
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 0x00007fb7f130df30>
func_or_src = <function main at 0x00007fb7f35a78f8>, 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 0x00007fb7f130df68>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.py', mode 'w' at 0x00007fb7f35a7a60>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=0,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.py", line 7, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7f1d9e1e0>
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 0x00007fb7f1d9e1e0>
func_or_src = <function main at 0x00007fb7f358a548>, 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 0x00007fb7f1d9ebb8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.py', mode 'w' at 0x00007fb7f358a5c0>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=0,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.py", line 7, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb804d0bec0>
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 0x00007fb804d0bec0>
func_or_src = <function main at 0x00007fb804b20200>, 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 0x00007fb7f2c66c28>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.py', mode 'w' at 0x00007fb804b202f0>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=0,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.py", line 7, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7f0d565d0>
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 0x00007fb7f0d565d0>
func_or_src = <function main at 0x00007fb804b41a60>, 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 0x00007fb7f0d56448>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.py', mode 'w' at 0x00007fb804b5cd40>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=0,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.py", line 7, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7f1317c90>
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 0x00007fb7f1317c90>
func_or_src = <function main at 0x00007fb804bb6cc8>, 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 0x00007fb7f1317cc8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.py', mode 'w' at 0x00007fb804bb6d40>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=0,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.py", line 7, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb802ce8640>
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 0x00007fb802ce8640>
func_or_src = <function main at 0x00007fb804be7808>, 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 0x00007fb802ce84b8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.py', mode 'w' at 0x00007fb804a24f98>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=0,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.py", line 7, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb8030389c0>
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 0x00007fb8030389c0>
func_or_src = <function main at 0x00007fb804ac9088>, 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 0x00007fb803038a68>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.py', mode 'w' at 0x00007fb804ac9178>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=0,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.py", line 7, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb8030b3130>
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 0x00007fb8030b3130>
func_or_src = <function main at 0x00007fb80370c200>, 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 0x00007fb7f188ee20>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.py', mode 'w' at 0x00007fb80370c278>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=0,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.py", line 7, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb80398d7f8>
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 0x00007fb80398d7f8>
func_or_src = <function main at 0x00007fb7f2940278>, 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 0x00007fb8039bcdb0>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.py', mode 'w' at 0x00007fb7f29402f0>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=0,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.py", line 7, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb80442bb78>
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 0x00007fb80442bb78>
func_or_src = <function main at 0x00007fb7f1acf2e0>, 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 0x00007fb80442b9f0>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.py', mode 'w' at 0x00007fb7f1acf970>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=0,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.py", line 7, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7f26cf910>
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 0x00007fb7f26cf910>
func_or_src = <function main at 0x00007fb8032a4278>, 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 0x00007fb7f26cf948>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.py', mode 'w' at 0x00007fb8032a42f0>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=0,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.py", line 7, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7f35655c8>
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 0x00007fb7f35655c8>
func_or_src = <function main at 0x00007fb803247f88>, 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 0x00007fb7f3565440>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.py', mode 'w' at 0x00007fb80326b970>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=0,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.py", line 7, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb804073be8>
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 0x00007fb804073be8>
func_or_src = <function main at 0x00007fb7f2712728>, 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 0x00007fb804073cc8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.py', mode 'w' at 0x00007fb7f27127a0>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=0,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.py", line 7, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb807025ad0>
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 0x00007fb807025ad0>
func_or_src = <function main at 0x00007fb8039d9628>, 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 0x00007fb807025948>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.py', mode 'w' at 0x00007fb8039a29f8>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=0,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.py", line 7, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7f2b4fc20>
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 0x00007fb7f2b4fc20>
func_or_src = <function main at 0x00007fb803409628>, 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 0x00007fb7f2b4fa98>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.py', mode 'w' at 0x00007fb803409b50>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=0,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.py", line 7, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb80580c870>
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 0x00007fb80580c870>
func_or_src = <function main at 0x00007fb7f2d81790>, 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 0x00007fb80580c8a8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.py', mode 'w' at 0x00007fb7f2d81808>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=0,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.py", line 7, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb804d80870>
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 0x00007fb804d80870>
func_or_src = <function main at 0x00007fb7f2107538>, 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 0x00007fb804d81478>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.py', mode 'w' at 0x00007fb7f21075b0>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=0,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.py", line 7, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7b0166758>
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 0x00007fb7b0166758>
func_or_src = <function main at 0x00007fb7f34247a0>, 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 0x00007fb7b01665d0>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.py', mode 'w' at 0x00007fb7f3424cc8>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=0,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.py", line 7, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb80600c368>
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 0x00007fb80600c368>
func_or_src = <function main at 0x00007fb7f343e2f0>, 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 0x00007fb80600c410>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.py', mode 'w' at 0x00007fb7f343e368>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'vec=0,threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_generic.py", line 7, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb807346870>
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 0x00007fb807346870>
func_or_src = <function main at 0x00007fb7f3825f88>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200}
src = <py._code.source.Source object at 0x00007fb807346758>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_logical_xor.py', mode 'w' at 0x00007fb7f3803010>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_logical_xor.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_logical_xor.py", line 8, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb805177ad0>
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 0x00007fb805177ad0>
func_or_src = <function main at 0x00007fb7f3803718>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200}
src = <py._code.source.Source object at 0x00007fb8051779b8>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_logical_and.py', mode 'w' at 0x00007fb7f1b6a3e0>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_logical_and.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_reduce_logical_and.py", line 8, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb806fe6410>
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 0x00007fb806fe6410>
func_or_src = <function main at 0x00007fb7f1b6ad40>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200}
src = <py._code.source.Source object at 0x00007fb806fe6448>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_array_getitem_basic.py', mode 'w' at 0x00007fb7f1b6adb8>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_array_getitem_basic.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_array_getitem_basic.py", line 12, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7f3f880c8>
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 0x00007fb7f3f880c8>
func_or_src = <function main at 0x00007fb7f1b1a368>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200}
src = <py._code.source.Source object at 0x00007fb7f3f88100>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_array_getitem_accumulate.py', mode 'w' at 0x00007fb7f1b1a3e0>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_array_getitem_accumulate.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_array_getitem_accumulate.py", line 13, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb80735ba98>
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 0x00007fb80735ba98>
func_or_src = <function main at 0x00007fb7f1b1ba60>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200}
src = <py._code.source.Source object at 0x00007fb80735bad0>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_array_flatiter_next.py', mode 'w' at 0x00007fb7f1b1bad8>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_array_flatiter_next.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_array_flatiter_next.py", line 12, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb807d98758>
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 0x00007fb807d98758>
func_or_src = <function main at 0x00007fb803b9b718>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200}
src = <py._code.source.Source object at 0x00007fb807d98790>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_array_flatiter_getitem_single.py', mode 'w' at 0x00007fb803b9b790>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_array_flatiter_getitem_single.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_array_flatiter_getitem_single.py", line 12, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb7b05d7f30>
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 0x00007fb7b05d7f30>
func_or_src = <function main at 0x00007fb7f23851f0>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200}
src = <py._code.source.Source object at 0x00007fb7b05d7f68>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_array_flatiter_setitem_single.py', mode 'w' at 0x00007fb7f2385268>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_array_flatiter_setitem_single.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_array_flatiter_setitem_single.py", line 12, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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 0x00007fb807343360>
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 0x00007fb807343360>
func_or_src = <function main at 0x00007fb7f2388cc8>, args = []
import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': 200}
src = <py._code.source.Source object at 0x00007fb8073433d0>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_mixed_div.py', mode 'w' at 0x00007fb7f2388d40>
logfile = local('/tmp/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_mixed_div.log')
cmdline = ['/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/pypy/goal/pypy-c', '-S', '--jit', 'threshold=200,disable_unrolling=9999', '/tmp/buildbot-x86_64/usession-main-5201/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/buildbot-x86_64/usession-main-5201/test-pypy-jit/test_mixed_div.py", line 9, in <module>
print main()
File "/tmp/buildbot-x86_64/usession-main-5201/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_jitlogparser.py::TestLogParser::()::test
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
============= 157 failed, 1046 passed, 4 skipped in 146.77 seconds =============
program finished with exit code 1
elapsedTime=147.261735