Errors in vx_test

Hi, I’m compiling the sample implentation, but getting errors when I run the vx_test, only 12 of 21 tests pass.

This is the command I’m running to compile and run:


tar -xf ~/Downloads/openvx_sample_1.0.1.tar.bz2 ; cd openvx_sample; python Build.py --os=Linux; export LD_LIBRARY_PATH=`pwd`/install/Linux/x64/Release/bin/; install/Linux/x64/Release/bin/vx_test;

The output from vx_test looks like


[VX_TEST] Kernels:43 Modules:1 Refs:72
[PASSED][00] Framework: Load XYZ Extension
[PASSED][01] Framework: Load Kernel Node
[PASSED][02] Framework: Copy
[PASSED][03] Framework: Copy Virtual
[PASSED][04] Framework: Heads
[PASSED][05] Framework: Unvisited
[PASSED][06] Framework: Virtual Image
[vx_test_framework_delay_graph:842] Passed!
[PASSED][07] Framework: Delay
[FAILED][08] Framework: Kernels, error = -4
[PASSED][09] Direct: Copy Image
[PASSED][10] Direct: Copy External Image
[FAILED][11] Graph: ColorBars YUV, error = -1
[FAILED][12] Graph: ColorBars RGB, error = -1
[00001] error=-1 Node org.khronos.debug.fread_image: parameter[1] failed output validation! (status = -1)
Graph failed (-1)
[FAILED][13] Graph: bikegray, error = -4
Graph failed (-1)
Nodes[0] average exec: 0.000ms
Nodes[1] average exec: 0.000ms
Nodes[2] average exec: 0.000ms
Nodes[3] average exec: 0.000ms
Nodes[4] average exec: 0.000ms
Nodes[5] average exec: 0.000ms
Nodes[6] average exec: 0.000ms
Nodes[7] average exec: 0.000ms
Nodes[8] average exec: 0.000ms
Nodes[9] average exec: 0.000ms
Nodes[10] average exec: 0.000ms
Nodes[11] average exec: 0.000ms
Nodes[12] average exec: 0.000ms
Nodes[13] average exec: 0.000ms
Nodes[14] average exec: 0.000ms
Nodes[15] average exec: 0.000ms
Nodes[16] average exec: 0.000ms
Nodes[17] average exec: 0.000ms
Nodes[18] average exec: 0.000ms
Nodes[19] average exec: 0.000ms
Graph average exec: 0.000ms
[FAILED][14] Graph: Lena, error = -4
[FAILED][15] Graph: Accumulates, error = -1
[PASSED][16] Graph: Bitwise
[PASSED][17] Graph: Arithmetic
[FAILED][18] Graph: Corners, error = -1
[FAILED][19] Graph: Tracker, error = -1
[FAILED][20] Export: DOT, error = -1
Passed 12 out of 21

I’m not modifying any code at all? Any idea what the problem could be?

Ok, first thing:
kernel “org.khronos.openvx.box3x3:default” is defined as “org.khronos.openvx.box_3x3:default” in sample/targets/c_model/vx_filter.c. fixing that got me to 13 out of 21 tests passing.

How did this not get caught before release?

Ok, I figured out the issue, vx_test assumes that the images are in the current directory , so the command to extract,build,and run vx_test should be:

tar -xf ~/Downloads/openvx_sample_1.0.1.tar.bz2 ; cd openvx_sample; python Build.py --os=Linux; export LD_LIBRARY_PATH=`pwd`/install/Linux/x64/Release/bin/; cd raw;..install/Linux/x64/Release/bin/vx_test;