Tom Deakin
|
e804f44497
|
Update OpenCL code to use new C++ header calls
Specifically:
* make_kernel has been replaced by KernelFunctor.
* Different define statements before including the header.
|
2015-08-10 11:23:11 +01:00 |
|
Tom Deakin
|
6dcc0ffc5c
|
Throw std::runtime_error(string) rather than define own exception classes just for strings!
|
2015-07-31 17:02:48 +01:00 |
|
Tom Deakin
|
3bb92747ba
|
Check for double support in OpenCL
|
2015-07-31 16:54:11 +01:00 |
|
Tom Deakin
|
5eec4dddbc
|
Remove trailing whitespaces
|
2015-07-31 15:35:40 +01:00 |
|
Tom Deakin
|
ec8799c4db
|
Check the device can support the array sizes before trying to allocate memory
|
2015-07-31 14:00:48 +01:00 |
|
Tom Deakin
|
d6116f7fe8
|
Update License
|
2015-07-30 13:57:00 +01:00 |
|
Tom Deakin
|
b891f0bf29
|
Print out NTIMES
|
2015-07-30 13:23:31 +01:00 |
|
Tom Deakin
|
d02bb84b9f
|
Check array size is not zero after resize
|
2015-07-29 16:06:18 +01:00 |
|
Tom Deakin
|
0bd4bbe82d
|
Make init arrays 1.0f, etc if float
|
2015-07-29 14:47:37 +01:00 |
|
Tom Deakin
|
dcf734387e
|
Free host arrays at end of program
|
2015-07-28 13:59:31 +01:00 |
|
Tom Deakin
|
a9a087622d
|
Use large try/catch in main function for clarity
|
2015-07-28 13:37:15 +01:00 |
|
Tom Deakin
|
3c248195ea
|
Add try/catch around kernel executions
|
2015-07-28 13:18:02 +01:00 |
|
Tom Deakin
|
dea95fe68e
|
Move common exceptions to common.h
|
2015-07-28 12:06:21 +01:00 |
|
Tom Deakin
|
2b00245e63
|
Remove large try/catch block in OpenCL - wrap around each OCL call
|
2015-07-28 12:03:44 +01:00 |
|
michael boulton
|
e605b056a6
|
Fixed overflow in total array size
|
2015-07-28 11:42:40 +01:00 |
|
Michael Boulton
|
b43eb9cf16
|
Merge changes
|
2015-07-28 11:37:20 +01:00 |
|
Tom Deakin
|
ad93754c3b
|
Print out memory sizes
|
2015-07-27 17:32:47 +01:00 |
|
Tom Deakin
|
7ba0b8fc18
|
Display precision in the header output
|
2015-07-27 17:19:19 +01:00 |
|
Tom Deakin
|
a74e7cee4c
|
Bug fix: sizes array wasn't updating with ARRAY_SIZE argument
sizes array was fixed at compile time not run time.
Moved the declaration to the correct scope.
|
2015-07-27 13:44:07 +01:00 |
|
Tom Deakin
|
e7fc832771
|
Add --float option to cli
|
2015-07-23 12:15:58 +01:00 |
|
Tom Deakin
|
0edd0646a6
|
OCL: select number to times from CLI
|
2015-07-16 18:29:42 +01:00 |
|
Tom Deakin
|
c31644d001
|
Revert "Revert "Remove option for float - only use doubles for now""
This reverts commit 903a66b2e9.
|
2015-07-16 17:01:48 +01:00 |
|
Tom Deakin
|
903a66b2e9
|
Revert "Remove option for float - only use doubles for now"
This reverts commit 4225ba0a2b.
|
2015-07-16 16:59:43 +01:00 |
|
Tom Deakin
|
4225ba0a2b
|
Remove option for float - only use doubles for now
|
2015-07-16 16:58:12 +01:00 |
|
Tom Deakin
|
e5bd4fcb19
|
Be consistent with indenting
|
2015-07-16 16:36:30 +01:00 |
|
Tom Deakin
|
97c179feb3
|
Add parseArguments etc to get the device from the command line
|
2015-07-16 16:32:49 +01:00 |
|
Tom Deakin
|
f37ee97e35
|
Print out OpenCL device name
|
2015-07-16 12:39:32 +01:00 |
|
Tom Deakin
|
3a7a95b00d
|
Print out short version banner
|
2015-07-16 12:39:03 +01:00 |
|
Tom Deakin
|
9791b7e3d1
|
Use floating point abs value
|
2015-07-16 12:26:16 +01:00 |
|
Tom Deakin
|
0596d01913
|
Validate the results
|
2015-07-16 12:23:21 +01:00 |
|
Tom Deakin
|
4d93a5e0b4
|
Copy back buffers after execution
|
2015-07-16 12:19:32 +01:00 |
|
Tom Deakin
|
c901069cf8
|
Average time should be over NTIMES-1 not NTIMES
|
2015-07-16 12:19:05 +01:00 |
|
Tom Deakin
|
847cdc9b5e
|
Time the runs and print out results
|
2015-07-16 12:04:07 +01:00 |
|
Tom Deakin
|
0d64d58c50
|
Create device buffers and copy host vectors to device
|
2015-07-15 23:27:19 +01:00 |
|
Tom Deakin
|
11a661790f
|
Add main method - setup OpenCL for default GPU device
|
2015-07-15 23:19:40 +01:00 |
|