Here is log:
CUDA Device Query (Driver API) statically linked version
Detected 1 CUDA Capable device(s)
Device 0: "NVIDIA Tegra X2"
CUDA Driver Version: 10.0
CUDA Capability Major/Minor version number: 6.2
Total amount of global memory: 7861 MBytes (8242810880 bytes)
( 2) Multiprocessors, (128) CUDA Cores/MP: 256 CUDA Cores
GPU Max Clock rate: 1020 MHz (1.02 GHz)
Memory Clock rate: 1300 Mhz
Memory Bus Width: 128-bit
L2 Cache Size: 524288 bytes
Max Texture Dimension Sizes 1D=(131072) 2D=(131072, 65536) 3D=(16384, 16384, 16384)
Maximum Layered 1D Texture Size, (num) layers 1D=(32768), 2048 layers
Maximum Layered 2D Texture Size, (num) layers 2D=(32768, 32768), 2048 layers
Total amount of constant memory: 65536 bytes
Total amount of shared memory per block: 49152 bytes
Total number of registers available per block: 32768
Warp size: 32
Maximum number of threads per multiprocessor: 2048
Maximum number of threads per block: 1024
Max dimension size of a thread block (x,y,z): (1024, 1024, 64)
Max dimension size of a grid size (x,y,z): (2147483647, 65535, 65535)
Texture alignment: 512 bytes
Maximum memory pitch: 2147483647 bytes
Concurrent copy and kernel execution: Yes with 1 copy engine(s)
Run time limit on kernels: No
Integrated GPU sharing Host Memory: Yes
Support host page-locked memory mapping: Yes
Concurrent kernel execution: Yes
Alignment requirement for Surfaces: Yes
Device has ECC support: Disabled
Device supports Unified Addressing (UVA): Yes
Supports Cooperative Kernel Launch: Yes
Supports MultiDevice Co-op Kernel Launch: Yes
Device PCI Domain ID / Bus ID / location ID: 0 / 0 / 0
NPP Library Version 10.0.166
Num CPU's 6, 6
PRODUCER: Prepare CUDA maps...
PRODUCER: Argus Version: 0.97.3 (multi-process)
(null)UUID: adca2c00,0f01,11e5,0002,00,00,00,00,00,00
(null)MaxAeRegions: 64
(null)MaxAwbRegions: 64
(null)FocusPositionRange: [0, 0]
(null)LensApertureRange: [2.200000, 2.200000]
(null)IspDigitalGainRange: [1.000000, 256.000000]
(null)ExposureCompensationRange: [-2.000000, 2.000000]
(null)NumSensorModes: 4
(null)SensorMode 0:
(null) Resolution: 3840x2160
(null) ExposureTimeRange: [44000, 478696000]
(null) FrameDurationRange: [16666667, 666667072]
(null) (1.50 to 60.00 fps)
(null) AnalogGainRange: [1.000000, 44.400002]
(null) InputBitDepth: 10
(null) OutputBitDepth: 10
(null) SensorModeType: SENSOR_MODE_TYPE_BAYER
(null) IS WDR Mode: No
(null)SensorMode 1:
(null) Resolution: 1920x1080
(null) ExposureTimeRange: [58000, 184611000]
(null) FrameDurationRange: [16666667, 666667072]
(null) (1.50 to 60.00 fps)
(null) AnalogGainRange: [1.000000, 177.000000]
(null) InputBitDepth: 10
(null) OutputBitDepth: 10
(null) SensorModeType: SENSOR_MODE_TYPE_BAYER
(null) IS WDR Mode: No
(null)SensorMode 2:
(null) Resolution: 3840x2160
(null) ExposureTimeRange: [864000, 20480000]
(null) FrameDurationRange: [33333334, 666667072]
(null) (1.50 to 30.00 fps)
(null) AnalogGainRange: [1.000000, 30.000000]
(null) InputBitDepth: 10
(null) OutputBitDepth: 10
(null) SensorModeType: SENSOR_MODE_TYPE_BAYER
(null) DOL WDR Mode Properties:
(null) ExposureCount: 2
(null) OpticalBlackRowCount: 14
(null) VBPRowCounts: [50]
(null) LineInfoMarkerWidth: 4
(null) LeftMarginWidth: 12
(null) RightMarginWidth: 0
(null) PhysicalResolution: 3856x4448
(null)SensorMode 3:
(null) Resolution: 1920x1080
(null) ExposureTimeRange: [859000, 15649000]
(null) FrameDurationRange: [16666667, 666667072]
(null) (1.50 to 60.00 fps)
(null) AnalogGainRange: [1.000000, 177.000000]
(null) InputBitDepth: 10
(null) OutputBitDepth: 10
(null) SensorModeType: SENSOR_MODE_TYPE_BAYER
(null) DOL WDR Mode Properties:
(null) ExposureCount: 2
(null) OpticalBlackRowCount: 14
(null) VBPRowCounts: [38]
(null) LineInfoMarkerWidth: 4
(null) LeftMarginWidth: 6
(null) RightMarginWidth: 6
(null) PhysicalResolution: 1936x2264
Using WDR SensorMode (index = 2)
PRODUCER: Creating output stream
PRODUCER: Launching consumer thread
Failed to query video capabilities: Inappropriate ioctl for device
Opening in BLOCKING MODE
NvMMLiteOpen : Block : BlockType = 4
===== NVMEDIA: NVENC =====
NvMMLiteBlockCreate : Block : BlockType = 4
875967048
842091865
capture_plane.getNumBuffers: 6
H264: Profile = 100, Level = 51
CONSUMER: Waiting until producer is connected...
Fps min: 2, max: 30
getExposureTimeRange 864000, 15649000
getFocusPosition 0
getGainRange 1, 30
getOpticalBlackEnable 0
getAeLock 0
getColorCorrectionMatrixEnable 0
getColorSaturation 1
getColorSaturationBias 1
getColorSaturationEnable 0
getExposureCompensation 0
getIspDigitalGainRange 1, 1
getToneMapCurveEnable 0
PRODUCER: Starting repeat capture requests.