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 9195b4f9 authored by John Zhang's avatar John Zhang

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