gpu-ruby.py (11682:612f75cf36a0) gpu-ruby.py (12581:a8f1d31d3492)
1#
2# Copyright (c) 2015 Advanced Micro Devices, Inc.
3# All rights reserved.
4#
5# For use for simulation and test purposes only
6#
7# Redistribution and use in source and binary forms, with or without
8# modification, are permitted provided that the following conditions are met:

--- 19 unchanged lines hidden (view full) ---

28# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31# POSSIBILITY OF SUCH DAMAGE.
32#
33# Author: Brad Beckmann
34#
35
1#
2# Copyright (c) 2015 Advanced Micro Devices, Inc.
3# All rights reserved.
4#
5# For use for simulation and test purposes only
6#
7# Redistribution and use in source and binary forms, with or without
8# modification, are permitted provided that the following conditions are met:

--- 19 unchanged lines hidden (view full) ---

28# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31# POSSIBILITY OF SUCH DAMAGE.
32#
33# Author: Brad Beckmann
34#
35
36from __future__ import print_function
37
36import m5
37from m5.objects import *
38from m5.defines import buildEnv
39from m5.util import addToPath
40import os, optparse, sys, math, glob
41
42m5.util.addToPath('../configs/')
43

--- 28 unchanged lines hidden (view full) ---

72 # instantiate configuration
73 m5.instantiate()
74
75 # Now that the system has been constructed, setup the mmio space
76 root.system.cpu[0].workload[0].map(0x10000000, 0x200000000, 4096)
77
78 # simulate until program terminates
79 exit_event = m5.simulate(maxtick)
38import m5
39from m5.objects import *
40from m5.defines import buildEnv
41from m5.util import addToPath
42import os, optparse, sys, math, glob
43
44m5.util.addToPath('../configs/')
45

--- 28 unchanged lines hidden (view full) ---

74 # instantiate configuration
75 m5.instantiate()
76
77 # Now that the system has been constructed, setup the mmio space
78 root.system.cpu[0].workload[0].map(0x10000000, 0x200000000, 4096)
79
80 # simulate until program terminates
81 exit_event = m5.simulate(maxtick)
80 print 'Exiting @ tick', m5.curTick(), 'because', exit_event.getCause()
82 print('Exiting @ tick', m5.curTick(), 'because', exit_event.getCause())
81
82parser = optparse.OptionParser()
83Options.addCommonOptions(parser)
84Options.addSEOptions(parser)
85
86parser.add_option("-k", "--kernel-files",
87 help="file(s) containing GPU kernel code (colon separated)")
88parser.add_option("-u", "--num-compute-units", type="int", default=2,

--- 261 unchanged lines hidden ---
83
84parser = optparse.OptionParser()
85Options.addCommonOptions(parser)
86Options.addSEOptions(parser)
87
88parser.add_option("-k", "--kernel-files",
89 help="file(s) containing GPU kernel code (colon separated)")
90parser.add_option("-u", "--num-compute-units", type="int", default=2,

--- 261 unchanged lines hidden ---