Commit Graph

23 Commits

Author SHA1 Message Date
Even Rouault 3d582dd885
Add github action workflows CI 2021-09-12 11:18:14 +02:00
Even Rouault 07d1f775a1
Add multithreaded support in the DWT encoder.
Update the bench_dwt utility to have a -decode/-encode switch

Measured performance gains for DWT encoder on a
Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz (4 cores, hyper threaded)

Encoding time:
$ ./bin/bench_dwt -encode -num_threads 1
time for dwt_encode: total = 8.348 s, wallclock = 8.352 s

$ ./bin/bench_dwt -encode -num_threads 2
time for dwt_encode: total = 9.776 s, wallclock = 4.904 s

$ ./bin/bench_dwt -encode -num_threads 4
time for dwt_encode: total = 13.188 s, wallclock = 3.310 s

$ ./bin/bench_dwt -encode -num_threads 8
time for dwt_encode: total = 30.024 s, wallclock = 4.064 s

Scaling is probably limited by memory access patterns causing
memory access to be the bottleneck.
The slightly worse results with threads==8 than with thread==4
is due to hyperthreading being not appropriate here.
2020-05-20 20:30:21 +02:00
Even Rouault 4fe7620d4a .travis.yml: add a configuration to test compilation of AVX2 (but disable tests since Travis doesn't have AVX2 compatible machines) 2017-06-21 12:41:56 +02:00
Even Rouault a8ca7c51f3 CMake: add stronger warnings for openjp2 lib/bin by default, and error out on declaration-after-statement
And remove occurences of unused arguments in src/lib/openjp2
2017-05-23 15:47:57 +02:00
Even Rouault d4e54e9f35 Add mechanisms to reformant and check code style (#128)
Use an internal version of astyle (astyle 3.0). Scripts taken from QGIS.
astyle.options from https://github.com/uclouvain/openjpeg/issues/128

scripts/prepare-commit.sh can be used locally to automatically reformat
edited files.

Travis-CI will run scripts/verify-indentation.sh to verify committed files.
2017-05-09 20:46:16 +02:00
Julien Malik 17a0a8a195 Use lowercase for cmake commands consistenly
Inspired from https://github.com/InsightSoftwareConsortium/ITK/blob/master/Utilities/Maintenance/HowToCreateTheCMakeCaseConversion.txt
This needs vim 7.3 and fails with vim 7.4

This also fixes a number of :
- missing empty line at end of files
- useless space at end of lines
2016-05-02 16:05:41 +02:00
mayeut 2c8ba10cc9 update script 2015-10-10 19:15:52 +02:00
mayeut 99c4376aed kdb copy 2015-10-10 18:58:26 +02:00
mayeut d60937922f correct warnings 2015-10-10 18:24:57 +02:00
mayeut f0a980ec16 verbose 2015-10-10 18:19:09 +02:00
mayeut cc9bf1d557 Use make under windows 2015-10-10 18:15:28 +02:00
mayeut 4560d270e0 Correct make script 2015-10-10 17:27:49 +02:00
mayeut f33f50126c Add OPJ_BINARY_DIR 2015-10-10 17:25:50 +02:00
mayeut 3d295431e6 Travis set ASan build to -O1 2015-09-12 20:21:52 +02:00
mayeut 1621df453d Travis error on new failures 2015-09-12 19:32:05 +02:00
mayeut 0b611c5250 Travis full matrix 2015-09-12 18:21:25 +02:00
mayeut cde7423958 Travis add mingw 2015-09-12 17:56:29 +02:00
mayeut fc131a1339 Travis ASan build 2015-09-12 16:36:19 +02:00
mayeut 82c238f504 Fix OPJ_CI_SKIP_TESTS 2015-09-12 15:52:13 +02:00
mayeut 52c36b4955 Add 32 bit build 2015-09-12 15:48:23 +02:00
mayeut cc2ae75450 Fix build with gcc 4.6.3 2015-09-12 05:50:57 +02:00
mayeut b97aadcf3e Fix travis build with make 2.8.7 2015-09-12 05:44:52 +02:00
mayeut 1e2dcaf7b3 Add ctest script 2015-09-12 05:26:19 +02:00