From 69f2911e04ffb1b19eef1fafb8c040af271f656e Mon Sep 17 00:00:00 2001 From: Tor Aamodt Date: Thu, 15 Jul 2010 18:09:46 -0800 Subject: creating branch for adding support for CUDA 3.x and Fermi [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 6829] --- benchmarks/CUDA/CP/driver/text.py | 75 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 benchmarks/CUDA/CP/driver/text.py (limited to 'benchmarks/CUDA/CP/driver/text.py') diff --git a/benchmarks/CUDA/CP/driver/text.py b/benchmarks/CUDA/CP/driver/text.py new file mode 100644 index 0000000..b8e1097 --- /dev/null +++ b/benchmarks/CUDA/CP/driver/text.py @@ -0,0 +1,75 @@ +#! /usr/bin/env python + +from itertools import imap +import re + +TOKEN = re.compile(r"(?:^|(?<=\s))[^\s]+|(?:^|(? COLUMNS: break + n += 1 + n = max(n, 1) + + # Concatenate the tokens and prepend spaces for indentation + outls.append(' ' * inl_indent + "".join(tokens[:n])) + + # Continue with tokens + tokens = tokens[n:] + + return "\n".join(outls) + + -- cgit v1.3