dapicard / opencv-parallelize-example

An example project showing how to pipeline and parallelize
GNU General Public License v3.0
20 stars 4 forks source link

How I can test your project #1

Closed djmv closed 5 years ago

djmv commented 5 years ago

Could you please provide me an example, how can I test this with opencv? I'm using opencv with cuda and c++

dapicard commented 5 years ago

You have to build and run it using Bazel. At this repository root folder, do : bazel run:parallelize

djmv commented 5 years ago

I tried to run but got errors. I followed this step.

  1. Download your repo.(previously install bazel)
  2. Go to inside the folder project
  3. run bazel run:parallelize and got this.

bazel run:parallelize Starting local Bazel server and connecting to it... Command 'run:parallelize' not found. Try 'bazel help'.

image

  1. Also I tried this. bazel run

image

  1. Also bazel run parallelize bazel run parallelize

image

I'm inside root folder of project when run above commands.

Thanks,

dapicard commented 5 years ago

My mistake ; type : bazel run main:parallelize

djmv commented 5 years ago

My mistake ; type : bazel run main:parallelize

I got this error:

INFO: Invocation ID: 682dd709-0d94-4f4c-8dd4-e2596fa37e2e
DEBUG: Rule 'rwqueue' modified arguments {"shallow_since": "1519150107 -0500"}
INFO: Analysed target //main:parallelize (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
ERROR: opencv-parallelize-example/main/BUILD:17:1: C++ compilation of rule '//main:parallelize' failed (Exit 1) gcc failed: error executing command /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer '-std=c++0x' -MD -MF ... (remaining 49 argument(s) skipped)

Use --sandbox_debug to see verbose messages from the sandbox
main/main.cc:25:31: fatal error: systemd/sd-daemon.h: No such file or directory
compilation terminated.
Target //main:parallelize failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 0.585s, Critical Path: 0.35s
INFO: 0 processes.
FAILED: Build did NOT complete successfully
FAILED: Build did NOT complete successfully
dapicard commented 5 years ago

main/main.cc:25:31: fatal error: systemd/sd-daemon.h: No such file or directory Install systemd headers package.

djmv commented 5 years ago

Thanks, I solved this installing sudo apt install libsystemd-dev and project run well :+1: