Lines Matching refs:options

65 def setCPUClass(options):
72 depending on the options provided.
75 TmpClass, test_mem_mode = getCPUClass(options.cpu_type)
78 not options.caches and not options.ruby:
79 fatal("%s must be used with caches" % options.cpu_type)
81 if options.checkpoint_restore != None:
82 if options.restore_with_cpu != options.cpu_type:
84 TmpClass, test_mem_mode = getCPUClass(options.restore_with_cpu)
85 elif options.fast_forward:
91 if test_mem_mode == 'atomic' and options.ruby:
97 def setMemClass(options):
100 return MemConfig.get(options.mem_type)
102 def setWorkCountOptions(system, options):
103 if options.work_item_id != None:
104 system.work_item_id = options.work_item_id
105 if options.num_work_ids != None:
106 system.num_work_ids = options.num_work_ids
107 if options.work_begin_cpu_id_exit != None:
108 system.work_begin_cpu_id_exit = options.work_begin_cpu_id_exit
109 if options.work_end_exit_count != None:
110 system.work_end_exit_count = options.work_end_exit_count
111 if options.work_end_checkpoint_count != None:
112 system.work_end_ckpt_count = options.work_end_checkpoint_count
113 if options.work_begin_exit_count != None:
114 system.work_begin_exit_count = options.work_begin_exit_count
115 if options.work_begin_checkpoint_count != None:
116 system.work_begin_ckpt_count = options.work_begin_checkpoint_count
117 if options.work_cpus_checkpoint_count != None:
118 system.work_cpus_ckpt_count = options.work_cpus_checkpoint_count
120 def findCptDir(options, cptdir, testsys):
128 This function parses through the options to figure out which one of the
141 if options.at_instruction or options.simpoint:
142 inst = options.checkpoint_restore
143 if options.simpoint:
149 checkpoint_dir = joinpath(cptdir, "cpt.%s.%s" % (options.bench, inst))
153 elif options.restore_simpoint_checkpoint:
166 cpt_num = options.checkpoint_restore
200 cpt_num = options.checkpoint_restore
209 def scriptCheckpoints(options, maxtick, cptdir):
210 if options.at_instruction or options.simpoint:
211 checkpoint_inst = int(options.take_checkpoints)
214 if options.checkpoint_restore != None:
215 checkpoint_inst += options.checkpoint_restore
229 (options.bench, checkpoint_inst)))
233 when, period = options.take_checkpoints.split(",", 1)
249 max_checkpoints = options.max_checkpoints
269 def benchCheckpoints(options, maxtick, cptdir):
274 max_checkpoints = options.max_checkpoints
290 def parseSimpointAnalysisFile(options, testsys):
294 options.take_simpoint_checkpoints.split(",", 3)
433 def run(options, root, testsys, cpu_class):
434 if options.checkpoint_dir:
435 cptdir = options.checkpoint_dir
436 elif m5.options.outdir:
437 cptdir = m5.options.outdir
441 if options.fast_forward and options.checkpoint_restore != None:
444 if options.standard_switch and not options.caches:
447 if options.standard_switch and options.repeat_switch:
450 if options.repeat_switch and options.take_checkpoints:
453 np = options.num_cpus
456 if options.prog_interval:
458 testsys.cpu[i].progress_interval = options.prog_interval
460 if options.maxinsts:
462 testsys.cpu[i].max_insts_any_thread = options.maxinsts
469 if options.fast_forward:
470 testsys.cpu[i].max_insts_any_thread = int(options.fast_forward)
478 if options.maxinsts:
479 switch_cpus[i].max_insts_any_thread = options.maxinsts
481 if options.checker:
483 if options.bp_type:
484 bpClass = BPConfig.get(options.bp_type)
486 if options.indirect_bp_type:
488 BPConfig.get_indirect(options.indirect_bp_type)
494 if options.elastic_trace_en:
495 CpuConfig.config_etrace(cpu_class, switch_cpus, options)
500 if options.repeat_switch:
501 switch_class = getCPUClass(options.cpu_type)[0]
503 not options.caches:
519 if options.maxinsts:
520 repeat_switch_cpus[i].max_insts_any_thread = options.maxinsts
522 if options.checker:
534 if options.standard_switch:
551 if options.checkpoint_restore != None:
554 elif options.fast_forward:
555 testsys.cpu[i].max_insts_any_thread = int(options.fast_forward)
557 elif options.simpoint:
567 if options.warmup_insts:
568 switch_cpus[i].max_insts_any_thread = options.warmup_insts
571 if options.maxinsts:
572 switch_cpus_1[i].max_insts_any_thread = options.maxinsts
575 if options.checker:
589 if options.take_checkpoints != None and \
590 (options.simpoint or options.at_instruction):
591 offset = int(options.take_checkpoints)
593 if options.simpoint:
600 options.take_checkpoints = checkpoint_inst
602 options.take_checkpoints = offset
608 if options.take_simpoint_checkpoints != None:
609 simpoints, interval_length = parseSimpointAnalysisFile(options, testsys)
612 if options.checkpoint_restore:
613 cpt_starttick, checkpoint_dir = findCptDir(options, cptdir, testsys)
614 root.apply_config(options.param)
621 if options.initialize_only:
632 if options.abs_max_tick:
633 maxtick_from_abs = options.abs_max_tick
635 if options.rel_max_tick:
636 maxtick_from_rel = options.rel_max_tick
637 if options.checkpoint_restore:
641 if options.at_instruction or options.simpoint:
643 " --simpoint\n These options don't specify the " \
647 if options.maxtime:
648 maxtick_from_maxtime = m5.ticks.fromSeconds(options.maxtime)
655 if options.checkpoint_restore != None and maxtick < cpt_starttick:
659 if options.standard_switch or cpu_class:
660 if options.standard_switch:
664 elif cpu_class and options.fast_forward:
675 if options.standard_switch:
680 if options.warmup_insts:
683 exit_event = m5.simulate(options.standard_switch)
693 if (options.take_checkpoints or options.take_simpoint_checkpoints) \
694 and options.checkpoint_restore:
696 if m5.options.outdir:
697 cptdir = m5.options.outdir
701 if options.take_checkpoints != None :
706 exit_event = scriptCheckpoints(options, maxtick, cptdir)
709 elif options.take_simpoint_checkpoints != None:
713 elif options.restore_simpoint_checkpoint != None:
717 if options.fast_forward:
723 if options.repeat_switch and maxtick > options.repeat_switch:
725 maxtick, options.repeat_switch)
727 exit_event = benchCheckpoints(options, maxtick, cptdir)
731 if options.checkpoint_at_end: