I have deepstream sdk 4.0.1 installed on ubuntu 18.04 and trying to run deepstream-app. My system has a Tesla K40 GPU and I don’t know if it’s supported by deepstream sdk.
Deepstream requirements are met, deepstream-app --version-all returns:
deepstream-app version 4.0.1
DeepStreamSDK 4.0.1
CUDA Driver Version: 10.1
CUDA Runtime Version: 10.1
TensorRT Version: 5.1
cuDNN Version: 7.6
libNVWarp360 Version: 2.0.0d5
nvidia-smi returns:
±----------------------------------------------------------------------------+
| NVIDIA-SMI 418.87.00 Driver Version: 418.87.00 CUDA Version: 10.1 |
|-------------------------------±---------------------±---------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 Tesla K40m Off | 00000000:42:00.0 Off | 0 |
| N/A 42C P0 65W / 235W | 0MiB / 11441MiB | 76% Default |
±------------------------------±---------------------±---------------------+
±----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| No running processes found |
±----------------------------------------------------------------------------+
Before running deepstream-app, I modified config_infer_primary.txt config_infer_secondary_carcolor.txt config_infer_secondary_carmake.txt config_infer_secondary_vehicletypes.txt files and set network-mode=0 (i.e. FP32).
I ran deepstream-app with /opt/nvidia/deepstream/deepstream-4.0/samples/configs/deepstream-app/source4_1080p_dec_infer-resnet_tracker_sgie_tiled_display_int8.txt
I changed source4_1080p_dec_infer-resnet_tracker_sgie_tiled_display_int8.txt and enabled sink1 instead of sink0. The following is the output:
amer@amer-server1:~$ deepstream-app -c /opt/nvidia/deepstream/deepstream-4.0/samples/configs/deepstream-app/source4_1080p_dec_infer-resnet_tracker_sgie_tiled_display_int8.txt
(deepstream-app:23824): GLib-GObject-WARNING **: 16:16:54.220: g_object_set_is_valid_property: object class ‘nvv4l2h264enc’ has no property named ‘bufapi-version’
Creating LL OSD context new
0:00:02.193202854 23824 0x562581464530 WARN nvinfer gstnvinfer.cpp:515:gst_nvinfer_logger:<secondary_gie_2> NvDsInferContext[UID 6]:useEngineFile(): Failed to read from model engine file
0:00:02.193243618 23824 0x562581464530 INFO nvinfer gstnvinfer.cpp:519:gst_nvinfer_logger:<secondary_gie_2> NvDsInferContext[UID 6]:initialize(): Trying to create engine from model files
Warning: Flatten layer ignored. TensorRT implicitly flattens input to FullyConnected layers, but in other circumstances this will result in undefined behavior.
0:00:06.359376549 23824 0x562581464530 INFO nvinfer gstnvinfer.cpp:519:gst_nvinfer_logger:<secondary_gie_2> NvDsInferContext[UID 6]:generateTRTModel(): Storing the serialized cuda engine to file at /opt/nvidia/deepstream/deepstream-4.0/samples/models/Secondary_CarMake/resnet18.caffemodel_b16_fp32.engine
0:00:06.387154261 23824 0x562581464530 WARN nvinfer gstnvinfer.cpp:515:gst_nvinfer_logger:<secondary_gie_1> NvDsInferContext[UID 5]:useEngineFile(): Failed to read from model engine file
0:00:06.387179747 23824 0x562581464530 INFO nvinfer gstnvinfer.cpp:519:gst_nvinfer_logger:<secondary_gie_1> NvDsInferContext[UID 5]:initialize(): Trying to create engine from model files
Warning: Flatten layer ignored. TensorRT implicitly flattens input to FullyConnected layers, but in other circumstances this will result in undefined behavior.
0:00:09.250068137 23824 0x562581464530 INFO nvinfer gstnvinfer.cpp:519:gst_nvinfer_logger:<secondary_gie_1> NvDsInferContext[UID 5]:generateTRTModel(): Storing the serialized cuda engine to file at /opt/nvidia/deepstream/deepstream-4.0/samples/models/Secondary_CarColor/resnet18.caffemodel_b16_fp32.engine
0:00:09.268556302 23824 0x562581464530 WARN nvinfer gstnvinfer.cpp:515:gst_nvinfer_logger:<secondary_gie_0> NvDsInferContext[UID 4]:useEngineFile(): Failed to read from model engine file
0:00:09.268580766 23824 0x562581464530 INFO nvinfer gstnvinfer.cpp:519:gst_nvinfer_logger:<secondary_gie_0> NvDsInferContext[UID 4]:initialize(): Trying to create engine from model files
Warning: Flatten layer ignored. TensorRT implicitly flattens input to FullyConnected layers, but in other circumstances this will result in undefined behavior.
0:00:11.922076729 23824 0x562581464530 INFO nvinfer gstnvinfer.cpp:519:gst_nvinfer_logger:<secondary_gie_0> NvDsInferContext[UID 4]:generateTRTModel(): Storing the serialized cuda engine to file at /opt/nvidia/deepstream/deepstream-4.0/samples/models/Secondary_VehicleTypes/resnet18.caffemodel_b16_fp32.engine
gstnvtracker: Loading low-level lib at /opt/nvidia/deepstream/deepstream-4.0/lib/libnvds_mot_iou.so
gstnvtracker: Optional NvMOT_RemoveStreams not implemented
gstnvtracker: Batch processing is OFF
0:00:11.937927974 23824 0x562581464530 WARN nvinfer gstnvinfer.cpp:515:gst_nvinfer_logger:<primary_gie_classifier> NvDsInferContext[UID 1]:useEngineFile(): Failed to read from model engine file
0:00:11.937947124 23824 0x562581464530 INFO nvinfer gstnvinfer.cpp:519:gst_nvinfer_logger:<primary_gie_classifier> NvDsInferContext[UID 1]:initialize(): Trying to create engine from model files
0:00:14.021751631 23824 0x562581464530 INFO nvinfer gstnvinfer.cpp:519:gst_nvinfer_logger:<primary_gie_classifier> NvDsInferContext[UID 1]:generateTRTModel(): Storing the serialized cuda engine to file at /opt/nvidia/deepstream/deepstream-4.0/samples/models/Primary_Detector/resnet10.caffemodel_b4_fp32.engine
Runtime commands:
h: Print this help
q: Quit
p: Pause
r: Resume
NOTE: To expand a source in the 2D tiled display and view object details, left-click on the source.
To go back to the tiled display, right-click anywhere on the window.
**PERF: FPS 0 (Avg) FPS 1 (Avg) FPS 2 (Avg) FPS 3 (Avg)
**PERF: 0.00 (0.00) 0.00 (0.00) 0.00 (0.00) 0.00 (0.00)
** INFO: <bus_callback:189>: Pipeline ready
Creating LL OSD context new
** INFO: <bus_callback:175>: Pipeline running
IOU Tracker: loading config file: /opt/nvidia/deepstream/deepstream-4.0/samples/configs/deepstream-app/iou_config.txt
IOU Tracker: loading config file: /opt/nvidia/deepstream/deepstream-4.0/samples/configs/deepstream-app/iou_config.txt
IOU Tracker: loading config file: /opt/nvidia/deepstream/deepstream-4.0/samples/configs/deepstream-app/iou_config.txt
IOU Tracker: loading config file: /opt/nvidia/deepstream/deepstream-4.0/samples/configs/deepstream-app/iou_config.txt
IOU Tracker Init with threshold 0.600000
IOU Tracker Init with threshold 0.600000
IOU Tracker Init with threshold 0.600000
IOU Tracker Init with threshold 0.600000
Bus error (core dumped)
I tried running it again with gdb, here’s the output:
amer@amer-server1:~$ gdb -args deepstream-app -c /opt/nvidia/deepstream/deepstream-4.0/samples/configs/deepstream-app/source4_1080p_dec_infer-resnet_tracker_sgie_tiled_display_int8.txt
GNU gdb (Ubuntu 8.1-0ubuntu3.1) 8.1.0.20180409-git
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type “show copying”
and “show warranty” for details.
This GDB was configured as “x86_64-linux-gnu”.
Type “show configuration” for configuration details.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/.
Find the GDB manual and other documentation resources online at:
http://www.gnu.org/software/gdb/documentation/.
For help, type “help”.
Type “apropos word” to search for commands related to “word”…
Reading symbols from deepstream-app…(no debugging symbols found)…done.
(gdb) run
Starting program: /usr/bin/deepstream-app -c /opt/nvidia/deepstream/deepstream-4.0/samples/configs/deepstream-app/source4_1080p_dec_infer-resnet_tracker_sgie_tiled_display_int8.txt
[Thread debugging using libthread_db enabled]
Using host libthread_db library “/lib/x86_64-linux-gnu/libthread_db.so.1”.
[New Thread 0x7fffbf14b700 (LWP 23909)]
(deepstream-app:23902): GLib-GObject-WARNING **: 16:17:28.664: g_object_set_is_valid_property: object class ‘nvv4l2h264enc’ has no property named ‘bufapi-version’
[New Thread 0x7fffb2bed700 (LWP 23910)]
[New Thread 0x7fffb1626700 (LWP 23911)]
[New Thread 0x7fffb0e25700 (LWP 23912)]
Creating LL OSD context new
[New Thread 0x7fff97fff700 (LWP 23913)]
[New Thread 0x7fff977fe700 (LWP 23914)]
[New Thread 0x7fff96ffd700 (LWP 23915)]
0:00:02.699772899 23902 0x55555c3c1b30 WARN nvinfer gstnvinfer.cpp:515:gst_nvinfer_logger:<secondary_gie_2> NvDsInferContext[UID 6]:useEngineFile(): Failed to read from model engine file
0:00:02.699843948 23902 0x55555c3c1b30 INFO nvinfer gstnvinfer.cpp:519:gst_nvinfer_logger:<secondary_gie_2> NvDsInferContext[UID 6]:initialize(): Trying to create engine from model files
Warning: Flatten layer ignored. TensorRT implicitly flattens input to FullyConnected layers, but in other circumstances this will result in undefined behavior.
[New Thread 0x7fff967fc700 (LWP 23916)]
0:00:06.771726248 23902 0x55555c3c1b30 INFO nvinfer gstnvinfer.cpp:519:gst_nvinfer_logger:<secondary_gie_2> NvDsInferContext[UID 6]:generateTRTModel(): Storing the serialized cuda engine to file at /opt/nvidia/deepstream/deepstream-4.0/samples/models/Secondary_CarMake/resnet18.caffemodel_b16_fp32.engine
[New Thread 0x7fff956b6700 (LWP 23917)]
[New Thread 0x7fff94eb5700 (LWP 23918)]
0:00:06.799298800 23902 0x55555c3c1b30 WARN nvinfer gstnvinfer.cpp:515:gst_nvinfer_logger:<secondary_gie_1> NvDsInferContext[UID 5]:useEngineFile(): Failed to read from model engine file
0:00:06.799319370 23902 0x55555c3c1b30 INFO nvinfer gstnvinfer.cpp:519:gst_nvinfer_logger:<secondary_gie_1> NvDsInferContext[UID 5]:initialize(): Trying to create engine from model files
Warning: Flatten layer ignored. TensorRT implicitly flattens input to FullyConnected layers, but in other circumstances this will result in undefined behavior.
0:00:09.847326266 23902 0x55555c3c1b30 INFO nvinfer gstnvinfer.cpp:519:gst_nvinfer_logger:<secondary_gie_1> NvDsInferContext[UID 5]:generateTRTModel(): Storing the serialized cuda engine to file at /opt/nvidia/deepstream/deepstream-4.0/samples/models/Secondary_CarColor/resnet18.caffemodel_b16_fp32.engine
[New Thread 0x7fff7bfff700 (LWP 23919)]
[New Thread 0x7fff7b7fe700 (LWP 23920)]
0:00:09.885833106 23902 0x55555c3c1b30 WARN nvinfer gstnvinfer.cpp:515:gst_nvinfer_logger:<secondary_gie_0> NvDsInferContext[UID 4]:useEngineFile(): Failed to read from model engine file
0:00:09.885876924 23902 0x55555c3c1b30 INFO nvinfer gstnvinfer.cpp:519:gst_nvinfer_logger:<secondary_gie_0> NvDsInferContext[UID 4]:initialize(): Trying to create engine from model files
Warning: Flatten layer ignored. TensorRT implicitly flattens input to FullyConnected layers, but in other circumstances this will result in undefined behavior.
0:00:12.574904717 23902 0x55555c3c1b30 INFO nvinfer gstnvinfer.cpp:519:gst_nvinfer_logger:<secondary_gie_0> NvDsInferContext[UID 4]:generateTRTModel(): Storing the serialized cuda engine to file at /opt/nvidia/deepstream/deepstream-4.0/samples/models/Secondary_VehicleTypes/resnet18.caffemodel_b16_fp32.engine
[New Thread 0x7fff7affd700 (LWP 23921)]
[New Thread 0x7fff7a7fc700 (LWP 23922)]
[New Thread 0x7fff79ffb700 (LWP 23923)]
[New Thread 0x7fff797fa700 (LWP 23924)]
[New Thread 0x7fff78ff9700 (LWP 23925)]
[New Thread 0x7fff6bfff700 (LWP 23926)]
gstnvtracker: Loading low-level lib at /opt/nvidia/deepstream/deepstream-4.0/lib/libnvds_mot_iou.so
gstnvtracker: Optional NvMOT_RemoveStreams not implemented
gstnvtracker: Batch processing is OFF
[New Thread 0x7fff6b7fe700 (LWP 23927)]
0:00:12.659347855 23902 0x55555c3c1b30 WARN nvinfer gstnvinfer.cpp:515:gst_nvinfer_logger:<primary_gie_classifier> NvDsInferContext[UID 1]:useEngineFile(): Failed to read from model engine file
0:00:12.659368856 23902 0x55555c3c1b30 INFO nvinfer gstnvinfer.cpp:519:gst_nvinfer_logger:<primary_gie_classifier> NvDsInferContext[UID 1]:initialize(): Trying to create engine from model files
0:00:14.743008689 23902 0x55555c3c1b30 INFO nvinfer gstnvinfer.cpp:519:gst_nvinfer_logger:<primary_gie_classifier> NvDsInferContext[UID 1]:generateTRTModel(): Storing the serialized cuda engine to file at /opt/nvidia/deepstream/deepstream-4.0/samples/models/Primary_Detector/resnet10.caffemodel_b4_fp32.engine
[New Thread 0x7fff6affd700 (LWP 23928)]
[New Thread 0x7fff6a7fc700 (LWP 23929)]
[New Thread 0x7fff69ffb700 (LWP 23930)]
[New Thread 0x7fff697fa700 (LWP 23931)]
[New Thread 0x7fff68ff9700 (LWP 23932)]
[New Thread 0x7fff4bfff700 (LWP 23933)]
[New Thread 0x7fff4b7fe700 (LWP 23934)]
[New Thread 0x7fff4affd700 (LWP 23935)]
[New Thread 0x7fff4a7fc700 (LWP 23936)]
[New Thread 0x7fff49ffb700 (LWP 23937)]
[New Thread 0x7fff497fa700 (LWP 23938)]
[New Thread 0x7fff48ff9700 (LWP 23939)]
[New Thread 0x7fff1bfff700 (LWP 23940)]
[New Thread 0x7fff1b7fe700 (LWP 23941)]
[New Thread 0x7fff1affd700 (LWP 23942)]
Runtime commands:
h: Print this help
q: Quit
p: Pause
r: Resume
NOTE: To expand a source in the 2D tiled display and view object details, left-click on the source.
To go back to the tiled display, right-click anywhere on the window.
**PERF: FPS 0 (Avg) FPS 1 (Avg) FPS 2 (Avg) FPS 3 (Avg)
**PERF: 0.00 (0.00) 0.00 (0.00) 0.00 (0.00) 0.00 (0.00)
** INFO: <bus_callback:189>: Pipeline ready
[New Thread 0x7fff1a7fc700 (LWP 23943)]
[New Thread 0x7fff19ffb700 (LWP 23944)]
[New Thread 0x7fff197fa700 (LWP 23945)]
[New Thread 0x7fff18ff9700 (LWP 23946)]
[New Thread 0x7ffef7fff700 (LWP 23947)]
[New Thread 0x7ffeef7fe700 (LWP 23948)]
[New Thread 0x7ffef77fe700 (LWP 23949)]
[New Thread 0x7ffef6ffd700 (LWP 23950)]
[New Thread 0x7ffef67fc700 (LWP 23951)]
[New Thread 0x7ffef5ffb700 (LWP 23952)]
[New Thread 0x7ffef57fa700 (LWP 23953)]
[New Thread 0x7ffef4ff9700 (LWP 23954)]
[New Thread 0x7ffec33cf700 (LWP 23955)]
[New Thread 0x7ffec2bce700 (LWP 23956)]
[New Thread 0x7ffec23cd700 (LWP 23957)]
[New Thread 0x7ffec1bcc700 (LWP 23958)]
[New Thread 0x7ffeb3fff700 (LWP 23959)]
[New Thread 0x7ffeb37fe700 (LWP 23960)]
[New Thread 0x7ffeb2ffd700 (LWP 23961)]
[New Thread 0x7ffeb27fc700 (LWP 23962)]
[New Thread 0x7ffeb1ffb700 (LWP 23963)]
Creating LL OSD context new
[New Thread 0x7ffeb17fa700 (LWP 23964)]
** INFO: <bus_callback:175>: Pipeline running
[New Thread 0x7ffeb0ff9700 (LWP 23965)]
IOU Tracker: loading config file: /opt/nvidia/deepstream/deepstream-4.0/samples/configs/deepstream-app/iou_config.txt
IOU Tracker Init with threshold 0.600000
[New Thread 0x7ffea7fff700 (LWP 23966)]
IOU Tracker: loading config file: /opt/nvidia/deepstream/deepstream-4.0/samples/configs/deepstream-app/iou_config.txt
IOU Tracker Init with threshold 0.600000
[New Thread 0x7ffea77fe700 (LWP 23967)]
IOU Tracker: loading config file: /opt/nvidia/deepstream/deepstream-4.0/samples/configs/deepstream-app/iou_config.txt
IOU Tracker Init with threshold 0.600000
[New Thread 0x7ffea6ffd700 (LWP 23968)]
IOU Tracker: loading config file: /opt/nvidia/deepstream/deepstream-4.0/samples/configs/deepstream-app/iou_config.txt
IOU Tracker Init with threshold 0.600000
[New Thread 0x7ffea67fc700 (LWP 23969)]
[New Thread 0x7ffea5ffb700 (LWP 23970)]
Thread 62 “sink_sub_bin_en” received signal SIGBUS, Bus error.
[Switching to Thread 0x7ffea67fc700 (LWP 23969)]
__memmove_sse2_unaligned_erms () at …/sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:423
423 …/sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: No such file or directory.
Not sure what’s going on, any ideas anyone?