首页 > 代码库 > 为gem5添加Checkpoint

为gem5添加Checkpoint

用gem5/configs/boot/hack_back_ckpt.rcS

#!/usr/bin/env python3

#
# A Python script to run one experiment with make checkpoint.

# Copyright (C) Huan Chen 2017
#

import os

GEM5GPU_HOME=/home/hao/chai/
M5OUT_DIR=/home/hao/chai/m5out/ckptOut/
CHECKPOINT_DIR=/home/hao/chai/checkpoint
def run_experiments():
    cmd_run =GEM5GPU_HOME+gem5/build/X86_VI_hammer_GPU/gem5.opt -d +M5OUT_DIR+ +GEM5GPU_HOME+gem5-gpu/configs/fs_fusion.py --script=+GEM5GPU_HOME+hack_back_ckpt.rcS --checkpoint-dir=+CHECKPOINT_DIR+ --cpu-type=timing  --gpu_core_config=Maxwell --num-cpus=4 --clusters=8 --cores_per_cluster=1 --num-dirs=4 --mem-type=DDR4_2400_x64 --total-mem-size=3GB --access-host-pagetable
    print(cmd_run)
    os.system(cmd_run)
    print(Make checkpoint done...)

run_experiments()

 

为gem5添加Checkpoint