Previous discussion in
https://groups.google.com/d/msg/gem5-gpu-dev/S16pVNEk5EE/yE3C8o9VyuUJ was helpful to me.
I used '-num-cpus' option to use two cpu.
Also, I have modified 'se_fusion.py' to dedicate one cpu to GPU application.
I attached my diff result for 'se_fusion.py' in below.
Gpu_benchmark, gpu_option, gpu_stdout, gpu_errout are variables that i have made.
For example, options.gpu_benchmark = "/home/ilios/workspace/gem5gpu/benchmarks/rodinia/gaussian/gem5_fusion_gaussian"
options.gpu_option = "/home/ilios/workspace/gem5gpu/benchmarks/data/gaussian/matrix208.txt" , etc..
----
mem_ranges = [cpu_mem_range],
cache_line_size = options.cacheline_size)
+
+if options.gpu_benchmark != "":
+ if options.num_cpus != 2:
+ print >> sys.stderr, "Need --num_cpus must be 2! (for simultaneous cpu, gpu running) \n"
+ sys.exit(1)
+ process2 = LiveProcess()
+ process2.executable = options.gpu_benchmark
+ process2.cmd = [process2.executable] + options.gpu_option.split()
+ process2.output = options.gpu_stdout
+ process2.errout = options.gpu_errout
+ system.cpu[1].workload = process2
+
+
# Create a top-level voltage domain
system.voltage_domain = VoltageDomain(voltage = options.sys_voltage)
-----
2014년 12월 10일 수요일 오후 11시 32분 45초 UTC+9, Chuanwei Sun 님의 말: