Raphael Kim
Raphael Kim
Some makefiles created for testing openmp. - `makefiles/Makefile.homebrewllvm` - `Makefiles/Makefile.testmachomebrew`
Generating dylib successfully done, with `makefiles/Makefile.homebrewllvm` with `make dylib`. homebrew llvm doesn't support multi-architecture, Cannot use multiple `-arch` parameters for universal binary.
homebrew llvm dylib + macOS native llvm-gcc linking successfully worked.
Performance extremely increased for butterfly.png on my old MacBook Pro Ratina 13" (2015) CTO, Intel(R) Core(TM) i7-5557U CPU @ 3.10GHz. ``` > bin/srcnntest Pictures/butterfly.png --scale=2 - Loading image : Pictures/butterfly.png...
Testing performance with test.jpg, ``` > bin/srcnntest Pictures/test.jpg --scale=2 - Loading image : Pictures/test.jpg - Image loaded type : JPEG | 960 x 540 x 3 bytes - Scaling ratio...
## Conclusion * openMP makes 10 times better performance on old-generaiton Mac systems, specially Intel CPUs.
## macOS12 OpenMP dylib [libsrcnn-dylib-macOS12-intel-experimental.zip](https://github.com/rageworx/libsrcnn/files/10930676/libsrcnn-dylib-macOS12-intel-experimental.zip) ### dependancy ``` > otool -L lib/libsrcnn.dylib lib/libsrcnn.dylib: lib/libsrcnn.dylib (compatibility version 0.0.0, current version 0.0.0) /usr/local/opt/llvm/lib/c++/libc++.1.dylib (compatibility version 1.0.0, current version 1.0.0) /usr/local/opt/llvm/lib/libomp.dylib (compatibility version...
## srcnntest v0.1.9.35 / macOS 12 / Intel(R) Core(TM) i7-5557U CPU @ 3.10GHz * Pictures/butterfly.png -> 8233 ms. ``` > bin/srcnntest Pictures/butterfly.png --scale=2 - Loading image : Pictures/butterfly.png - Image...
## srcnntest v0.1.9.35 / debian linux aarch64 / rk3399 1.9GHz * Rockchip RK3399, 2 Big + 4 Little cores, aarch64. * Pictures/butterfly.png -> 2457 ms. ``` > bin/srcnntest Pictures/butterfly.png -...
## srcnntest v0.1.9.35 / debian linux armhf (32bit hard float) / Broadcom BCM2837B0 1.4GHz * Pictures/butterfly.png -> 5182 ms. ``` > bin/srcnntest Pictures/butterfly.png - Loading image : Pictures/butterfly.png - Image...