Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add more smoke tests for ARC GPU cases #465

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions run_smoke_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -316,3 +316,44 @@ verifyStatusCode capi_yolov5_ensemble_gpu $status_code $input_src
waitForLogFile
verifyNonEmptyPipelineLog capi_yolov5_ensemble_gpu $input_src
teardown

source benchmark-scripts/get-gpu-info.sh
if [ "$HAS_ARC" != 1 ]
then
echo "No ARC GPU: skipping tests on GPU.1"
exit 0
fi

echo "found ARC GPU. run tests on GPU.1..."
# gst
echo "Running gst profile on GPU.1 for object detection only..."
gst_rtsp_input_src="rtsp://127.0.0.1:8554/camera_1"
PIPELINE_PROFILE="gst" DEVICE="GPU.1" RENDER_MODE=0 sudo -E ./run.sh --platform dgpu.1 --inputsrc "$gst_rtsp_input_src"
status_code=$?
verifyStatusCode gst_ARC_gpu_with_detection_only $status_code $gst_rtsp_input_src
# allowing some time to process
waitForLogFile
verifyNonEmptyPipelineLog gst_ARC_gpu_with_detection_only $gst_rtsp_input_src
teardown

# object_detection
echo "Running object_detection profile on GPU.1..."
od_input_src="rtsp://127.0.0.1:8554/camera_1"
PIPELINE_PROFILE="object_detection" DEVICE="GPU.1" RENDER_MODE=0 sudo -E ./run.sh --platform dgpu.1 --inputsrc "$od_input_src"
status_code=$?
verifyStatusCode object_detection_ARC_gpu $status_code $od_input_src
# allowing some time to process
waitForLogFile
verifyNonEmptyPipelineLog object_detection_ARC_gpu $od_input_src
teardown

# capi_yolov5 ensemble
echo "Running capi_yolov5_ensemble profile on GPU.1..."
input_src="rtsp://127.0.0.1:8554/camera_0"
PIPELINE_PROFILE="capi_yolov5_ensemble" DEVICE="GPU.1" RENDER_MODE=0 sudo -E ./run.sh --platform dgpu.1 --inputsrc "$input_src"
status_code=$?
verifyStatusCode capi_yolov5_ensemble_ARC_gpu $status_code $input_src
# allowing some time to process
waitForLogFile
verifyNonEmptyPipelineLog capi_yolov5_ensemble_ARC_gpu $input_src
teardown
Loading