summaryrefslogtreecommitdiff
path: root/benchmarks/CUDA/CP/driver/__init__.py
diff options
context:
space:
mode:
authorTor Aamodt <[email protected]>2010-07-15 18:09:46 -0800
committerTor Aamodt <[email protected]>2010-07-15 18:09:46 -0800
commit69f2911e04ffb1b19eef1fafb8c040af271f656e (patch)
tree231d3b6bdc3a202f7c255bfcf7bf2c36e32cee9e /benchmarks/CUDA/CP/driver/__init__.py
creating branch for adding support for CUDA 3.x and Fermi
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 6829]
Diffstat (limited to 'benchmarks/CUDA/CP/driver/__init__.py')
-rw-r--r--benchmarks/CUDA/CP/driver/__init__.py33
1 files changed, 33 insertions, 0 deletions
diff --git a/benchmarks/CUDA/CP/driver/__init__.py b/benchmarks/CUDA/CP/driver/__init__.py
new file mode 100644
index 0000000..3b6c38a
--- /dev/null
+++ b/benchmarks/CUDA/CP/driver/__init__.py
@@ -0,0 +1,33 @@
+# (c) 2007 The Board of Trustees of the University of Illinois.
+
+import sys
+import os
+from itertools import imap
+
+import globals
+import actions
+import options
+
+def run():
+ # Print a banner message
+ print "Parboil parallel benchmark suite, version 0.1"
+ print
+
+ # Global variable setup
+ root_path = os.getcwd()
+ python_path = (os.path.join(root_path,'common','python') +
+ ":" +
+ os.environ.get('PYTHONPATH',""))
+
+ globals.root = root_path
+ globals.benchmarks = benchmark.find_benchmarks()
+ globals.program_env = {'PARBOIL_ROOT':root_path,
+ 'PYTHONPATH':python_path,
+ }
+
+ # Parse options
+ act = options.parse_options(sys.argv)
+
+ # Perform the specified action
+ if act: act()
+