WARNING! Access to this system is limited to authorised users only.
Unauthorised users may be subject to prosecution.
Unauthorised access to this system is a criminal offence under Australian law (Federal Crimes Act 1914 Part VIA)
It is a criminal offence to:
(1) Obtain access to data without authority. -Penalty 2 years imprisonment.
(2) Damage, delete, alter or insert data without authority. -Penalty 10 years imprisonment.
User activity is monitored and recorded. Anyone using this system expressly consents to such monitoring and recording.

Commit 9195b4f9 authored by John Zhang's avatar John Zhang
Browse files

fix: wrong external function name; callback works for RPython

parent b08ead5f
......@@ -8,17 +8,9 @@ fib:
callback:
name: perfevent
param: "cycles"
include_dirs:
- libpfm4/include
- libpfm4/perf_examples
library_dirs:
- libpfm4/lib
libraries:
- pfm
extra_srcs:
- libpfm4/perf_examples/perf_util.c
flags:
- -pthread
libpfm4_dir: libpfm4 # relative to mubench/callbacks
environ:
PYPY_USESSION_DIR: example # controls where PyPy puts usession directory
tasks:
c_O3:
language: c
......@@ -26,3 +18,21 @@ fib:
compiler:
flags:
- -O3
rpyc:
language:
name: rpython
backend: c
source: targetfib.py
compiler:
flags:
- --gc=none
environ:
PYPY_USESSION_BASENAME: fib-rpyc
mu_fast:
language:
name: mu
impl: zebu
source: build_fib.c
compiler:
flags:
- -DBUILD_FIB_FAST
\ No newline at end of file
......@@ -35,7 +35,7 @@ def get_callback(libcb_path):
c_cb_begin = external("cb_begin", [rffi.VOIDP], rffi.lltype.Void)
c_cb_end = external("cb_end", [rffi.VOIDP], rffi.lltype.Void)
c_cb_report = external("cb_report", [rffi.VOIDP], rffi.lltype.Void)
c_cb_finish = external("cb_report", [rffi.VOIDP], rffi.lltype.Void)
c_cb_finish = external("cb_finish", [rffi.VOIDP], rffi.lltype.Void)
class Callback:
def __init__(self, param_s):
......
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