49361 Commits

Author SHA1 Message Date
Alessandro Pasotti
be21ea8e5a Bindings for 9cell filter 2018-08-08 09:38:43 +02:00
Alessandro Pasotti
528302cc89 [opencl] Use fast formula for hillshade
Also optimize cl buffers
2018-08-08 09:38:36 +02:00
Alessandro Pasotti
a73bbbad21 [opencl] Reduce memory footprint and optimize 2018-08-08 09:38:00 +02:00
Alessandro Pasotti
3bad167572 [opencl] Memory optimization 2018-08-08 09:37:30 +02:00
Alessandro Pasotti
a1a65bb4e8 [opencl] Test with image2d 2018-08-08 09:36:56 +02:00
Alessandro Pasotti
12fa896554 [opencl] Add options widget 2018-08-08 09:35:57 +02:00
Alessandro Pasotti
b09df53354 Use OpenCL command queue 2018-08-08 09:34:04 +02:00
Alessandro Pasotti
16a49cddaa Wrap make program in OpenCL utils 2018-08-08 09:32:44 +02:00
Alessandro Pasotti
79f0eadb05 Added context 2018-08-08 09:32:35 +02:00
Alessandro Pasotti
4756873282 CPLAllocator smart wrapper 2018-08-08 09:31:38 +02:00
Alessandro Pasotti
7e1d929800 Try to avoid crash on intel haswell 2018-08-08 09:31:27 +02:00
Alessandro Pasotti
583c7ae287 More updates for opencl 2018-08-08 09:29:33 +02:00
Alessandro Pasotti
d6e747ca57 OpenCL tests and aspect 2018-08-08 09:29:23 +02:00
Alessandro Pasotti
767eda4b58 Working! With C++ API 2018-08-08 09:27:36 +02:00
Alessandro Pasotti
6f9a72e425 Working but crashing on dealloc of command queue 2018-08-08 09:27:23 +02:00
Alessandro Pasotti
51d1bb36b8 OpenCL POC 1 2018-08-08 09:27:07 +02:00
Alessandro Pasotti
a1a09d75e6 [opencl] Rename test function for consistency 2018-08-08 09:26:30 +02:00
Alessandro Pasotti
b89808f573 [opencl] Small optimization in hillshade
... and more tolerant epsilon for float comparison in tests
2018-08-08 09:26:30 +02:00
Alessandro Pasotti
82b60df671 [opencl] Simplify OpenCL configuration in CMake
and add a message without failing if not found
2018-08-08 09:25:34 +02:00
Alessandro Pasotti
9ff8779f97 [opencl] Increase test coverage with no-opencl image comparison 2018-08-08 09:25:34 +02:00
Alessandro Pasotti
86b60c6c63 [opencl] Class docs improvements
Also try hard to find a device before giving up
2018-08-08 09:25:34 +02:00
Alessandro Pasotti
6956436804 [opencl] Update test reference image 2018-08-08 09:24:40 +02:00
Alessandro Pasotti
dc4b1da0a4 [opencl] Fix small OpenCL alg issues
From comparison tests with CPU results

+ some minor speed improvements
2018-08-08 09:24:40 +02:00
Alessandro Pasotti
30a62e1add Astyle 2018-08-08 09:23:39 +02:00
Alessandro Pasotti
6b10ffefb0 Add overload that accepts qgissize instead of int
to avoid a lot of annoying warnings and spare
some casts
2018-08-08 09:23:39 +02:00
Alessandro Pasotti
a6d5d479fa [opencl] Fix nodata value in slope, aspect and hillshade 2018-08-08 09:23:39 +02:00
Alessandro Pasotti
164bcc2bec [opencl] Ruggedness index OpenCL program 2018-08-08 09:22:34 +02:00
Alessandro Pasotti
d492bbcaed [opencl] Make opencl info copyable 2018-08-08 09:22:30 +02:00
Alessandro Pasotti
ed7e831ddc [opencl] Error message when OpenCL could not be found 2018-08-08 09:22:28 +02:00
Alessandro Pasotti
add3d074b8 [opencl] Fix device selection on start 2018-08-08 09:22:28 +02:00
Alessandro Pasotti
d846804b1c [opencl] Make device configurable 2018-08-08 09:22:28 +02:00
Alessandro Pasotti
28169aae0d [opencl] Suppress warning for unused variable 2018-08-08 09:22:22 +02:00
Alessandro Pasotti
54b5821f99 [opencl] Cache the context 2018-08-08 09:22:17 +02:00
Alessandro Pasotti
e29c7e55be [opencl] Benchmark test case 2018-08-08 09:22:17 +02:00
Alessandro Pasotti
c4eebc72a7 Bindings for 9cell filter 2018-08-08 09:22:14 +02:00
Alessandro Pasotti
314b7e3635 [opencl] Faster cl algorithm 2018-08-08 09:22:02 +02:00
Alessandro Pasotti
e4228f4bfd [opencl] Add performance test 2018-08-08 09:22:02 +02:00
Alessandro Pasotti
66b02d6638 [opencl] Reduce memory footprint and optimize 2018-08-08 09:21:36 +02:00
Alessandro Pasotti
95fa27fa6e More documentation 2018-08-08 09:21:36 +02:00
Alessandro Pasotti
329402acff [opencl] Added docs 2018-08-08 09:21:36 +02:00
Alessandro Pasotti
5aa54658b4 [opencl] Pass the queue to the cl methods
Fixes some issues on intel
2018-08-08 09:20:23 +02:00
Alessandro Pasotti
3161b9407d [opencl] Global transparency 2018-08-08 09:20:15 +02:00
Alessandro Pasotti
5129dcf03c [opencl] Memory optimization 2018-08-08 09:20:05 +02:00
Alessandro Pasotti
d5dd50c004 [opencl] Hillshade renderer 2018-08-08 09:19:52 +02:00
Alessandro Pasotti
350829e9ee [opencl] Test with image2d 2018-08-08 09:19:45 +02:00
Alessandro Pasotti
1decb48f65 [opencl] Add options widget 2018-08-08 09:19:17 +02:00
Alessandro Pasotti
3054da0c00 Use OpenCL command queue 2018-08-08 09:19:01 +02:00
Alessandro Pasotti
215bfd41d3 Wrap make program in OpenCL utils 2018-08-08 09:18:32 +02:00
Alessandro Pasotti
ebad36059a Added context 2018-08-08 09:18:32 +02:00
Alessandro Pasotti
08fc641d32 CPLAllocator smart wrapper 2018-08-08 09:18:32 +02:00