GitLab will be upgraded to the 12.10.14-ce.0 on 28 Sept 2020 at 2.00pm (AEDT) to 2.30pm (AEDT). During the update, GitLab and Mattermost services will not be available. If you have any concerns with this, please talk to us at N110 (b) CSIT building.

Commit 9a352d28 authored by Zixian Cai's avatar Zixian Cai

Fix SOM target

parent 3de41a38
......@@ -3,6 +3,10 @@ som_rpyc:
name: SOM
iterations: 1
source: targetrpysom.py
args:
- -cp
- /Users/johnz/Documents/Work/RPySOM/Smalltalk
- /Users/johnz/Documents/Work/RPySOM/TestSuite/TestHarness.som
environ:
PYPY_USESSION_DIR: example # controls where PyPy puts usession directory
PYPY_USESSION_BASENAME: som_rpyc
......@@ -18,9 +22,7 @@ som_rpyc:
flags:
- --gc=none
runner:
args:
- -cp /Users/johnz/Documents/Work/RPySOM/SmallTalk
- /Users/johnz/Documents/Work/RPySOM/TestSuite/TestHarness.som
som_rpyzebu:
benchmark:
......@@ -45,5 +47,6 @@ som_rpyzebu:
pypy_dir: $PYPY_MU # can use environment variables in paths
runner:
args:
- -cp /Users/johnz/Documents/Work/RPySOM/SmallTalk
- -cp
- /Users/johnz/Documents/Work/RPySOM/Smalltalk
- /Users/johnz/Documents/Work/RPySOM/TestSuite/TestHarness.som
......@@ -13,6 +13,7 @@
# limitations under the License.
def target(driver, args):
from callback import get_callback
cb_cls = get_callback(args[0])
......@@ -21,21 +22,23 @@ def target(driver, args):
def entry_point(argv):
cb_param = argv[1]
iter = int(argv[2])
cb = cb_cls(cb_param)
cb.begin()
retcode = 1
for i in range(int(argv[2])):
try:
main(argv[2:])
except Exit, e:
retcode = e.code
except Exception, e:
os.write(2, "ERROR: %s thrown during execution.\n" % e)
retcode = 1
cb.end()
cb.report()
for i in range(iter):
try:
print [argv[0]] + argv[3:]
main([argv[0]] + argv[3:])
except Exit, e:
retcode = e.code
except Exception, e:
os.write(2, "ERROR: %s thrown during execution.\n" % e)
retcode = 1
cb.end()
cb.report()
return retcode
return entry_point, None
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment