openppl-public / ppl.cv

ppl.cv is a high-performance image processing library of openPPL supporting various platforms.
Apache License 2.0
484 stars 108 forks source link

benchmark failed to run due to argument number checking #41

Closed zchrissirhcz closed 2 years ago

zchrissirhcz commented 2 years ago

Compiled with the latest commit:

commit 7111be49dd54cba44faa2bc6fbb46bff1b553517 (HEAD -> master, origin/master, origin/HEAD)
Author: ouguoyu <ouguoyu@sensetime.com>
Date:   Sun Jan 16 20:30:28 2022 +0800

    [fix] do not include opencv2/opencv2.hpp in unittest/benchmark

run the benchmark:

/home/zz/work/github/ppl.cv/deps/benchmark/src/benchmark_register.cc:313: Args: Check `ArgsCnt() == -1 || ArgsCnt() == static_cast<int>(args.size())' failed. 
zsh: abort (core dumped)  ./pplcv_benchmark

my environment: Linux x64

zchrissirhcz commented 2 years ago

The call stack shows the copymakeborder_benchmark cause this crash

BENCHMARK_TEMPLATE(BM_Copymakeborder_ppl_x86, float, c1, ppl::cv::BORDER_TYPE_CONSTANT)->Args({320, 240, 320, 240})->Args({640, 480})->Args({1280, 720})->Args({1920, 1080})->Args({3840, 2160});
zchrissirhcz commented 2 years ago

@ouonline Let me make an PR to fix those issues about compilation and run failures.