aboutsummaryrefslogtreecommitdiff
path: root/pypy/goal
diff options
context:
space:
mode:
authormattip <matti.picus@gmail.com>2015-04-22 22:53:19 +0300
committermattip <matti.picus@gmail.com>2015-04-22 22:53:19 +0300
commite918e54310c6aa4cb8326f3ce6afbc998092a38d (patch)
tree3c05da90d03e2362ed1a7ae8adc79c6995b2383f /pypy/goal
parenttest, fix for numpy object scalar actually becoming the contained object (diff)
downloadpypy-e918e54310c6aa4cb8326f3ce6afbc998092a38d.tar.gz
pypy-e918e54310c6aa4cb8326f3ce6afbc998092a38d.tar.bz2
pypy-e918e54310c6aa4cb8326f3ce6afbc998092a38d.zip
skip test_zjit pending moving the tests to test_micronumpy in test_pypy_c
Diffstat (limited to 'pypy/goal')
-rw-r--r--pypy/goal/targetnumpystandalone.py43
1 files changed, 0 insertions, 43 deletions
diff --git a/pypy/goal/targetnumpystandalone.py b/pypy/goal/targetnumpystandalone.py
deleted file mode 100644
index 59d8ceb9e5..0000000000
--- a/pypy/goal/targetnumpystandalone.py
+++ /dev/null
@@ -1,43 +0,0 @@
-
-""" Usage:
-
-./targetnumpystandalone-c <bytecode> array_size
-
-Will execute a give numpy bytecode. Arrays will be ranges (in float) modulo 10,
-constants would be consecutive starting from one.
-
-Bytecode should contain letters 'a' 'l' and 'f' so far and be correct
-"""
-
-import time
-from pypy.module.micronumpy.compile import numpy_compile
-from rpython.jit.codewriter.policy import JitPolicy
-from rpython.rtyper.annlowlevel import hlstr
-
-def entry_point(argv):
- if len(argv) != 3:
- print __doc__
- return 1
- try:
- size = int(argv[2])
- except ValueError:
- print "INVALID LITERAL FOR INT:", argv[2]
- print __doc__
- return 3
- t0 = time.time()
- main(argv[0], size)
- print "bytecode:", argv[0], "size:", size
- print "took:", time.time() - t0
- return 0
-
-def main(bc, size):
- if not isinstance(bc, str):
- bc = hlstr(bc) # for tests
- a = numpy_compile(bc, size)
- a = a.compute()
-
-def target(*args):
- return entry_point, None
-
-def jitpolicy(driver):
- return JitPolicy()