Michael Meeks
68b2573a60
GPU Calc: Avoid dereferencing null 'score' field in some cases.
...
Change-Id: I2e76d19986326b15c088e6dcce1da3be3924d0fc
2013-11-29 00:01:03 +00:00
Kohei Yoshida
8fc79e2392
Change these parameters.
...
Change-Id: Ic70aaea461e3d007e394c67c33a766d70aa4e92c
2013-11-27 20:48:04 -05:00
Jagan Lokanatha
5556b1ffaf
Ensure that when ds_profile is NULL, NATIVE_CPU is selected.
...
Change-Id: Iab714a296ce0f807b5badd1ff96a99f3da2b24f8
2013-11-21 15:15:39 -05:00
Tor Lillqvist
cb874affe8
Result should be in seconds, not microseconds
...
Change-Id: Ic269b120c5c29ab12eb982d46132381d1891d217
2013-11-20 22:22:53 +02:00
Tor Lillqvist
008471428c
Simply use a separate temp variable
...
The dynamic_cast thing caused error: dynamic_cast from rvalue to
reference type 'std::ostringstream &' (aka 'basic_ostringstream<char>
&') with Clang in C++11 mode.
Clearly putting the value of integer expressions into strings is a
very esoteric corner case that very few C++ programs need to do, if it
is this hard to do it and there is no obvious standard idiom that
would work in all compilers and language vintages.
Change-Id: I46ed2bd2a8f860d7323682b19886ec732b0722c1
2013-11-20 21:44:05 +02:00
Tor Lillqvist
bd39056053
Rename timerStop() to timerCurrent() as it doesn't "stop" anything
...
Change-Id: I99dbee00422ac9a066479231b32112551a317e75
2013-11-20 21:00:02 +02:00
Tor Lillqvist
43da86747a
Simplify "timer" code and add OS X implementation
...
Change-Id: Id728dc3b422c76fcb6c0a1185caae6f05b9ca245
2013-11-20 21:00:02 +02:00
Tor Lillqvist
72365491e3
Use <windows.h> with a lower-case 'w' for cross-compilation goodness
...
Change-Id: Ia7ec6c4e9808a379e955a013264e1f92a7f6a358
2013-11-20 18:40:49 +02:00
Kohei Yoshida
c24eba0658
C++ style struct / enum declarations without typedef.
...
Change-Id: Idf9e7ddaf4b28c00222470460478631c37c79a6b
2013-11-20 09:41:31 -05:00
Kohei Yoshida
e3ece4b31f
Handle a case where the profile initialization fails.
...
Change-Id: Ifd1ab147926ab4f1d34161840d17fdf1ab3f9810
2013-11-20 09:41:31 -05:00
Kohei Yoshida
1283dcb0e2
Use scoped_ptr here for exception safety.
...
Normally scoped_ptr is preferred for local heap objects, than direct
new and delete pair.
Change-Id: Ia8783bfe5f9b37a9bd58f08cce89bf85d88199d1
2013-11-20 09:41:30 -05:00
Kohei Yoshida
a190ccb39a
Safer to use std::vector than heap array objects.
...
This change also fixes memory leaks.
Change-Id: I68a02a6de0b3d1f125e4c6cd164980a92e0fcbf0
2013-11-20 09:41:30 -05:00
Kohei Yoshida
44f4b3daa4
Remove compiler warnings.
...
Change-Id: I5f6f50e941031284fe519999a2fddede9753abea
2013-11-20 09:41:30 -05:00
Kohei Yoshida
5abc2c621f
Get it to build on Linux.
...
Change-Id: Ife109b8a123564c5d8e43c793fc6c9de9b9f2090
2013-11-20 09:41:30 -05:00
Jagan Lokanatha
1989677db7
Enable workload-based device selection in OpenCL.
...
Change-Id: I8af49ccf498cafb48f9b82fabc4910c754ba0f96
2013-11-20 09:41:30 -05:00