diff options
| author | Tor Aamodt <[email protected]> | 2010-10-01 08:55:28 -0800 |
|---|---|---|
| committer | Tor Aamodt <[email protected]> | 2010-10-01 08:55:28 -0800 |
| commit | 11b308e7363e937966b035b4891db32b4eece3bf (patch) | |
| tree | 50ca4c9ad6f163ac4acb2bf505e64dfebed66947 /benchmarks/CUDA/CP/common/python/textfilecompare.py | |
| parent | bb820c116764d7a1b8e071137d32b74e7f34dd2f (diff) | |
integrating recent changes from fermi-test into fermi
(i'll use "fermi" for more disruptive changes to the pipeline model such
as updating the MSHRs and getting rid of the warp tracker, ripping out DWF, etc...)
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 7805]
Diffstat (limited to 'benchmarks/CUDA/CP/common/python/textfilecompare.py')
| -rw-r--r-- | benchmarks/CUDA/CP/common/python/textfilecompare.py | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/benchmarks/CUDA/CP/common/python/textfilecompare.py b/benchmarks/CUDA/CP/common/python/textfilecompare.py deleted file mode 100644 index 2f6ef68..0000000 --- a/benchmarks/CUDA/CP/common/python/textfilecompare.py +++ /dev/null @@ -1,27 +0,0 @@ -# (c) Copyright 2007 The Board of Trustees of the University of Illinois. - -from binaryfilecompare import eof, many - -# Rename the builtin 'float' variable to avoid name conflicts -builtin_float = float - -def verbatim(f): - """Read a line of text from file 'f'.""" - line = f.readline() - return line - -def float(f): - """Read a line of text from file 'f' as a single floating-point - number.""" - words = f.readline().split() - if len(words) != 1: - raise ValueError, "Expecting line to contain a single number" - return builtin_float(words[0]) - -def floats(f): - """Read a line of text from file 'f' as a list of floating-point - numbers.""" - words = f.readline().split() - return [builtin_float(x) for x in words] - - |
