Skip to content

Commit

Permalink
fix: use GPU on DEVICE env to test on serpent canyon (intel-retail#469)
Browse files Browse the repository at this point in the history
Signed-off-by: Jim Wang <[email protected]>
  • Loading branch information
jim-wang-intel authored Jan 19, 2024
1 parent 5e553b0 commit 0002fab
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions run_smoke_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ teardown
# gst
echo "Running gst profile on GPU.0 for object detection only..."
gst_rtsp_input_src="rtsp://127.0.0.1:8554/camera_1"
PIPELINE_PROFILE="gst" DEVICE="GPU.0" RENDER_MODE=0 sudo -E ./run.sh --platform dgpu.0 --inputsrc "$gst_rtsp_input_src"
PIPELINE_PROFILE="gst" DEVICE="GPU" RENDER_MODE=0 sudo -E ./run.sh --platform dgpu.0 --inputsrc "$gst_rtsp_input_src"
status_code=$?
verifyStatusCode gst_gpu_with_detection_only $status_code $gst_rtsp_input_src
# allowing some time to process
Expand All @@ -298,7 +298,7 @@ teardown
# object_detection
echo "Running object_detection profile on GPU.0..."
od_input_src="rtsp://127.0.0.1:8554/camera_1"
PIPELINE_PROFILE="object_detection" DEVICE="GPU.0" RENDER_MODE=0 sudo -E ./run.sh --platform dgpu.0 --inputsrc "$od_input_src"
PIPELINE_PROFILE="object_detection" DEVICE="GPU" RENDER_MODE=0 sudo -E ./run.sh --platform dgpu.0 --inputsrc "$od_input_src"
status_code=$?
verifyStatusCode object_detection_gpu $status_code $od_input_src
# allowing some time to process
Expand All @@ -309,7 +309,7 @@ teardown
# capi_yolov5 ensemble
echo "Running capi_yolov5_ensemble profile on GPU.0..."
input_src="rtsp://127.0.0.1:8554/camera_0"
PIPELINE_PROFILE="capi_yolov5_ensemble" DEVICE="GPU.0" RENDER_MODE=0 sudo -E ./run.sh --platform dgpu.0 --inputsrc "$input_src"
PIPELINE_PROFILE="capi_yolov5_ensemble" DEVICE="GPU" RENDER_MODE=0 sudo -E ./run.sh --platform dgpu.0 --inputsrc "$input_src"
status_code=$?
verifyStatusCode capi_yolov5_ensemble_gpu $status_code $input_src
# allowing some time to process
Expand All @@ -328,7 +328,7 @@ 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"
PIPELINE_PROFILE="gst" DEVICE="GPU" 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
Expand All @@ -339,7 +339,7 @@ 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"
PIPELINE_PROFILE="object_detection" DEVICE="GPU" 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
Expand All @@ -350,7 +350,7 @@ 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"
PIPELINE_PROFILE="capi_yolov5_ensemble" DEVICE="GPU" 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
Expand Down

0 comments on commit 0002fab

Please sign in to comment.