Skip to content

Commit

Permalink
Test Updates - CPU/GPU 1.3 Conformance (#470)
Browse files Browse the repository at this point in the history
* Jenkins - CPU/GPU Conformance

* Travis - Add bionic support

* Readme Updates
  • Loading branch information
kiritigowda authored Apr 13, 2021
1 parent 7191cdf commit dd20178
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
23 changes: 23 additions & 0 deletions .jenkins/common.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,35 @@ def runCompileCommand(platform, project, jobName, boolean debug=false, boolean s
}

def runTestCommand (platform, project) {

String conformaceCPU = 'echo OpenVX 1.3 Conformance - CPU - NOT TESTED ON THIS PLATFORM'
String conformaceGPU = 'echo OpenVX 1.3 Conformance - GPU - NOT TESTED ON THIS PLATFORM'

if (platform.jenkinsLabel.contains('centos') || platform.jenkinsLabel.contains('ubuntu')) {
conformaceCPU = 'AGO_DEFAULT_TARGET=CPU LD_LIBRARY_PATH=./lib ./bin/vx_test_conformance'
conformaceGPU = 'AGO_DEFAULT_TARGET=GPU LD_LIBRARY_PATH=./lib ./bin/vx_test_conformance --filter=-HarrisCorners.*:-*.ReplicateNode:-*.ImageContainmentRelationship:-*.OnRandomAndNatural:-*.vxWeightedAverage:-vxCanny.*:-*.MapRandomRemap:*.*'
}

def command = """#!/usr/bin/env bash
set -x
cd ${project.paths.project_build_prefix}/build/release
python ../../tests/vision_tests/runVisionTests.py --runvx_directory ./bin --hardware_mode CPU --num_frames 100
python ../../tests/vision_tests/runVisionTests.py --runvx_directory ./bin --hardware_mode GPU --num_frames 100
python ../../tests/neural_network_tests/runNeuralNetworkTests.py
export OPENVX_DIR=\$(pwd)/.
export OPENVX_INC=\$(pwd)/../../amd_openvx/openvx
mkdir conformance_tests
cd conformance_tests
git clone -b openvx_1.3 https://github.com/KhronosGroup/OpenVX-cts.git
export VX_TEST_DATA_PATH=\$(pwd)/OpenVX-cts/test_data/
mkdir build-cts
cd build-cts
cmake -DOPENVX_INCLUDES=\$OPENVX_INC/include -DOPENVX_LIBRARIES=\$OPENVX_DIR/lib/libopenvx.so\\;\$OPENVX_DIR/lib/libvxu.so\\;pthread\\;dl\\;m\\;rt -DOPENVX_CONFORMANCE_VISION=ON ../OpenVX-cts
cmake --build .
echo MIVisionX OpenVX 1.3 Conformance - CPU
${conformaceCPU}
echo MIVisionX OpenVX 1.3 Conformance - GPU - OpenCL
${conformaceGPU}
"""

platform.runCommand(this, command)
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
language: cpp
sudo: required
dist: xenial
dist: bionic
os:
- linux
compiler:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)
[![doc](https://img.shields.io/badge/doc-readthedocs-blueviolet)](https://gpuopen-professionalcompute-libraries.github.io/MIVisionX/)
[![Build Status](https://travis-ci.org/GPUOpen-ProfessionalCompute-Libraries/MIVisionX.svg?branch=master)](https://travis-ci.org/GPUOpen-ProfessionalCompute-Libraries/MIVisionX)
[![Build Status](https://travis-ci.com/GPUOpen-ProfessionalCompute-Libraries/MIVisionX.svg?branch=master)](https://travis-ci.com/GPUOpen-ProfessionalCompute-Libraries/MIVisionX)

<p align="center"><img width="70%" src="docs/images/MIVisionX.png" /></p>

Expand Down

0 comments on commit dd20178

Please sign in to comment.