Skip to content

Instantly share code, notes, and snippets.

@tomoaki0705
tomoaki0705 / text.md
Last active April 27, 2024 14:25
「OpenCVの画像処理をGPU(CUDA)で高速化する」を読んでresizeをマルチコア対応するお話。

はじめに

OpenCVでの処理(リサイズなど)を、簡単にマルチコア化する方法をどなたかご存知でしたら教えて頂けないでしょうか? TBBを使ってスレッドを作る方法は色々見つかったのですが、単にcv::resize()をマルチコア動作で高速化させたいです。

TL;DR

  • Python バインディングが遅い
  • OpenCV の resize はずっと昔からマルチコア対応している
@tomoaki0705
tomoaki0705 / log.md
Created December 20, 2023 00:06
Build log with Visual Studio + ARM64
Build started at 6:00...
------ Build started: Project: ZERO_CHECK, Configuration: Release ARM64 ------
Checking Build System
------ Build started: Project: zlib, Configuration: Release ARM64 ------
Building Custom Rule C:/opencv/3rdparty/zlib/CMakeLists.txt
adler32.c
compress.c
crc32.c
deflate.c
@tomoaki0705
tomoaki0705 / log3.txt
Created July 26, 2022 14:41
Entire log
This file has been truncated, but you can view the full file.
CTEST_FULL_OUTPUT
OpenCV version: 3.4.18-dev
OpenCV VCS version: 3.4.18-63-g546be0a952
Build type: Release
Compiler: /usr/bin/c++ (ver 10.2.1)
Parallel framework: pthreads (nthreads=8)
CPU features: NEON FP16 *NEON_DOTPROD
OpenCV(OpenCL:0): clGetPlatformIDs(0, NULL, &numPlatforms)
OpenCV(OpenCL:0): clGetPlatformIDs(numPlatforms, &platforms[0], &numPlatforms)
@tomoaki0705
tomoaki0705 / log.md
Created July 25, 2022 21:02
Full dump of OpenCL capability of Mali G610
$ ./opencv_version --opencl
3.4.18-dev
arm_release_ver of this libmali is 'g6p0-01eac0', rk_so_ver is '5'.
OpenCL Platforms:
    ARM Platform
        iGPU: Mali-LODX r0p0 (OpenCL 2.1 v1.g6p0-01eac0.efb75e2978d783a80fe78be1bfb0efc1)
Current OpenCL device:
    Type = iGPU
    Name = Mali-LODX r0p0
@tomoaki0705
tomoaki0705 / draft.md
Last active July 6, 2022 12:53
So many warnings on GCC11
System information (version)
@tomoaki0705
tomoaki0705 / story02.md
Created May 13, 2022 15:41
ソリューションアーキテクト、家を買う(ローン審査と土地決済編)

TL;DR

ローンって何それおいしいの?

前回までのあらすじ

家を内見した当日に購入の申込みをした。

ローン審査

購入申込みしたら、次はローンの申込みである。

@tomoaki0705
tomoaki0705 / story01.md
Last active May 1, 2022 21:10
ソリューションアーキテクト注文住宅を買う(申込編)

TL;DR

  • 銀行員の嫁と結婚しろ

あらすじ

子供が今度小学校に上がる。それに伴い、今までよりは簡単に引っ越せなくなる。引っ越すなら今のうち、ということで家を購入した。 家を買うまで様々な出来事、判断基準などがあったので、備忘録の意味でも書いておきたい。

なお、バイアスかかりまくりの、あくまで1件のサンプルとしての意見だということを踏まえた上で読んでいただきたい。

背景

@tomoaki0705
tomoaki0705 / adventCalendar2019-02.md
Last active February 14, 2022 08:24
NEON完全リファレンスを書いているお話
@tomoaki0705
tomoaki0705 / dst_cpu_emphasized.png
Last active October 1, 2021 13:41
Error log of cudafilters
dst_cpu_emphasized.png
@tomoaki0705
tomoaki0705 / msaCompiler.sh
Last active August 28, 2021 22:34
bash script which downloads source code and build cross compiler for mips
#! /bin/bash
set -e
trap 'previous_command=$this_command; this_command=$BASH_COMMAND' DEBUG
trap 'echo FAILED COMMAND: $previous_command' EXIT
#-------------------------------------------------------------------------------------------
# This script will download packages for, configure, build and install a GCC cross-compiler.
# Customize the variables (INSTALL_PATH, TARGET, etc.) to your liking before running.
# If you get an error and need to resume the script from some point in the middle,
# just delete/comment the preceding lines before running it again.