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.

To protect your data, the CISO officer has suggested users to enable 2FA as soon as possible.
Currently 2.2% of users enabled 2FA.

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: ...@@ -8,17 +8,9 @@ fib:
callback: callback:
name: perfevent name: perfevent
param: "cycles" param: "cycles"
include_dirs: libpfm4_dir: libpfm4 # relative to mubench/callbacks
- libpfm4/include environ:
- libpfm4/perf_examples PYPY_USESSION_DIR: example # controls where PyPy puts usession directory
library_dirs:
- libpfm4/lib
libraries:
- pfm
extra_srcs:
- libpfm4/perf_examples/perf_util.c
flags:
- -pthread
tasks: tasks:
c_O3: c_O3:
language: c language: c
...@@ -26,3 +18,21 @@ fib: ...@@ -26,3 +18,21 @@ fib:
compiler: compiler:
flags: flags:
- -O3 - -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): ...@@ -35,7 +35,7 @@ def get_callback(libcb_path):
c_cb_begin = external("cb_begin", [rffi.VOIDP], rffi.lltype.Void) c_cb_begin = external("cb_begin", [rffi.VOIDP], rffi.lltype.Void)
c_cb_end = external("cb_end", [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_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: class Callback:
def __init__(self, param_s): 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