[PATCH] XCore target: add support to build MultiSource/Benchmarks/SciMark2-C
robert lytton
robert at xmos.com
Tue Mar 11 01:30:31 PDT 2014
Disable timing for MultiSource/Benchmarks/SciMark2-C
Return dummy stopwatch timings for all targets.
Otherwise the timer may cause inconsistency between platforms.
(XCore timer was wrapping)
Hi ddunbar,
http://llvm-reviews.chandlerc.com/D2771
CHANGE SINCE LAST DIFF
http://llvm-reviews.chandlerc.com/D2771?vs=7686&id=7731#toc
Files:
MultiSource/Benchmarks/SciMark2-C/Stopwatch.c
Index: MultiSource/Benchmarks/SciMark2-C/Stopwatch.c
===================================================================
--- MultiSource/Benchmarks/SciMark2-C/Stopwatch.c
+++ MultiSource/Benchmarks/SciMark2-C/Stopwatch.c
@@ -3,7 +3,9 @@
double seconds()
{
- return ((double) clock()) / (double) CLOCKS_PER_SEC;
+ // Disable timing.
+ static double t = 0.0;
+ return ++t;
}
void Stopwtach_reset(Stopwatch Q)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2771.3.patch
Type: text/x-patch
Size: 432 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140311/f38fdd44/attachment.bin>
More information about the llvm-commits
mailing list