|
27 | 27 | "cd ../ && source env.sh >/dev/null\n", |
28 | 28 | "cd ${NOOP_HOME}\n", |
29 | 29 | "\n", |
30 | | - "${READY2RUN_HOME}/emu \\\n", |
31 | | - " -i ${READY2RUN_HOME}/hello-riscv64-xs.bin \\\n", |
| 30 | + "${ASSETS_DIR}/emu-precompile/emu \\\n", |
| 31 | + " -i ${ASSETS_DIR}/workload/hello-riscv64-xs.bin \\\n", |
32 | 32 | " --no-diff 2>stderr.log\n", |
33 | 33 | "\n", |
34 | 34 | "echo \"=== Last 10 lines:\"\n", |
|
77 | 77 | "# make emu EMU_THREADS=4 WITH_CHISELDB=1 WITH_ROLLINGDB=1 -j8 \\\n", |
78 | 78 | "# PGO_WORKLOAD=${NOOP_HOME}/ready-to-run/coremark-2-iteration.bin \\\n", |
79 | 79 | "# PGO_MAX_CYCLE=10000 PGO_EMU_ARGS=--no-diff LLVM_PROFDATA=llvm-profdata\n", |
80 | | - "# ./build/emu -i ./ready-to-run/coremark-2-iteration.bin \\\n", |
81 | | - "# --diff ./ready-to-run/riscv64-nemu-interpreter-so --dump-db\n", |
| 80 | + "# ./build/emu -i ${ASSETS_DIR}/workload/coremark-2-iteration.bin \\\n", |
| 81 | + "# --diff ${ASSETS_DIR}/workload/riscv64-nemu-interpreter-so --dump-db\n", |
82 | 82 | "# cp `find $NOOP_HOME/build/ -type f -name \"*.db\" | tail -1` \\\n", |
83 | 83 | "# ${XS_PROJECT_ROOT}/tutorial/${dir}/xs-perf-rolling.db\n", |
84 | 84 | "\n", |
85 | 85 | "# 使用脚本对 rolling db 进行分析\n", |
86 | 86 | "cd ${NOOP_HOME}/scripts/rolling\n", |
87 | | - "python3 rollingplot.py ${READY2RUN_HOME}/xs-perf-rolling.db ipc" |
| 87 | + "python3 rollingplot.py ${ASSETS_DIR}/emu-result/xs-perf-rolling.db ipc" |
88 | 88 | ] |
89 | 89 | }, |
90 | 90 | { |
|
94 | 94 | "source": [ |
95 | 95 | "该脚本会输出以下图片,可以看到 XiangShan 在运行这一程序时,每一段时间内的 IPC 变化:\n", |
96 | 96 | "\n", |
97 | | - "" |
| 97 | + "" |
98 | 98 | ] |
99 | 99 | } |
100 | 100 | ], |
|
114 | 114 | "name": "python", |
115 | 115 | "nbconvert_exporter": "python", |
116 | 116 | "pygments_lexer": "ipython3", |
117 | | - "version": "3.10.12" |
| 117 | + "version": "3.12.3" |
118 | 118 | } |
119 | 119 | }, |
120 | 120 | "nbformat": 4, |
|
0 commit comments