diff options
Diffstat (limited to 'benchmarks/CUDA/CP/driver/__init__.py')
| -rw-r--r-- | benchmarks/CUDA/CP/driver/__init__.py | 33 |
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() + |
