1 # Copyright (c) 2019-2020, NVIDIA CORPORATION. All rights reserved.
3 @page dwx_hello_world_sample Hello World Sample
6 @note SW Release Applicability: This sample is available in both **NVIDIA DriveWorks** and **NVIDIA DRIVE Software** releases.
8 @section dwx_hello_world_description Description
10 The Hello World sample application shows how to initialize the NVIDIA<sup>®</sup> DriveWorks SDK
11 context and access GPU properties. This sample application prints the DriveWorks version and
14 @section dwx_hello_world_running Running the Sample
16 The command line for the sample application is:
20 @section dwx_hello_world_output Output
22 The sample application prints the following information on console:
24 nvidia@tegra-ubuntu:/usr/local/driveworks/bin$ ./sample_hello_world
25 *************************************************
26 Welcome to DriveWorks SDK
27 [31-7-2018 9:8:24] Initialize DriveWorks SDK v1.2.227
28 [31-7-2018 9:8:24] Release build with GNU 4.9.4 from v1.2.0-rc6-0-g79beb2a against Vibrante PDK v5.0.10.3
29 [31-7-2018 9:8:24] Platform: Detected Drive PX2 - Tegra A
30 [31-7-2018 9:8:24] TimeSource: monotonic epoch time offset is 1532010806746835
31 [31-7-2018 9:8:24] TimeSource: PTP ioctl returned error. Synchronized time will not be available.
32 [31-7-2018 9:8:24] TimeSource: Could not detect valid PTP time source at 'eth0'. Fallback to CLOCK_MONOTONIC.
33 [31-7-2018 9:8:25] Platform: number of GPU devices detected 2
34 [31-7-2018 9:8:25] Platform: currently selected GPU device discrete ID 0
35 [31-7-2018 9:8:25] SDK: Resources mounted from /usr/local/driveworks-1.2/data/resources
36 [31-7-2018 9:8:25] SDK: Create NvMediaDevice
37 [31-7-2018 9:8:25] SDK: Create NvMediaIPPManager
38 [31-7-2018 9:8:25] egl::Display: found 2 EGL devices
39 [31-7-2018 9:8:25] egl::Display: use drm device: drm-nvdc
40 Context of Driveworks SDK successfully initialized.
42 GPU devices detected: 2
43 [31-7-2018 9:8:25] Platform: currently selected GPU device discrete ID 0
44 [31-7-2018 9:8:25] Platform: currently selected GPU device discrete ID 0
45 ----------------------------------------------
46 Device: 0, DRIVE PX 2 AutoChauffeur
47 CUDA Driver Version / Runtime Version : 9.2 / 9.2
48 CUDA Capability Major/Minor version number: 6.1
49 Total amount of global memory in MBytes:3839.94
50 Memory Clock rate Ghz: 3003000
51 Memory Bus Width bits: 128
52 L2 Cache Size: 1048576
53 Maximum 1D Texture Dimension Size (x): 131072
54 Maximum 2D Texture Dimension Size (x,y): 131072, 65536
55 Maximum 3D Texture Dimension Size (x,y,z): 16384, 16384, 16384
56 Maximum Layered 1D Texture Size, (x): 32768 num: 2048
57 Maximum Layered 2D Texture Size, (x,y): 32768, 32768 num: 2048
58 Total amount of constant memory bytes: 65536
59 Total amount of shared memory per block bytes: 49152
60 Total number of registers available per block: 65536
62 Maximum number of threads per multiprocessor: 2048
63 Maximum number of threads per block: 1024
64 Max dimension size of a thread block (x,y,z): 1024,1024,64
65 Max dimension size of a grid size (x,y,z): 2147483647,65535,65535
66 Maximum memory pitch bytes: 2147483647
67 Texture alignment bytes: 512
68 Concurrent copy and kernel execution: Yes, copy engines num: 2
69 Run time limit on kernels: No
70 Integrated GPU sharing Host Memory: No
71 Support host page-locked memory mapping: Yes
72 Alignment requirement for Surfaces: Yes
73 Device has ECC support: Disabled
74 Device supports Unified Addressing (UVA): Yes
75 Device PCI Domain ID: 0, Device PCI Bus ID: 4, Device PCI location ID: 0
76 Compute Mode: Default (multiple host threads can use ::cudaSetDevice() with device simultaneously)
80 [31-7-2018 9:8:25] Platform: currently selected GPU device integrated ID 1
81 [31-7-2018 9:8:25] Platform: currently selected GPU device integrated ID 1
82 ----------------------------------------------
83 Device: 1, NVIDIA Tegra X2
84 CUDA Driver Version / Runtime Version : 9.2 / 9.2
85 CUDA Capability Major/Minor version number: 6.2
86 Total amount of global memory in MBytes:6401.58
87 Memory Clock rate Ghz: 1600000
88 Memory Bus Width bits: 128
90 Maximum 1D Texture Dimension Size (x): 131072
91 Maximum 2D Texture Dimension Size (x,y): 131072, 65536
92 Maximum 3D Texture Dimension Size (x,y,z): 16384, 16384, 16384
93 Maximum Layered 1D Texture Size, (x): 32768 num: 2048
94 Maximum Layered 2D Texture Size, (x,y): 32768, 32768 num: 2048
95 Total amount of constant memory bytes: 65536
96 Total amount of shared memory per block bytes: 49152
97 Total number of registers available per block: 32768
99 Maximum number of threads per multiprocessor: 2048
100 Maximum number of threads per block: 1024
101 Max dimension size of a thread block (x,y,z): 1024,1024,64
102 Max dimension size of a grid size (x,y,z): 2147483647,65535,65535
103 Maximum memory pitch bytes: 2147483647
104 Texture alignment bytes: 512
105 Concurrent copy and kernel execution: Yes, copy engines num: 1
106 Run time limit on kernels: No
107 Integrated GPU sharing Host Memory: Yes
108 Support host page-locked memory mapping: Yes
109 Alignment requirement for Surfaces: Yes
110 Device has ECC support: Disabled
111 Device supports Unified Addressing (UVA): Yes
112 Device PCI Domain ID: 0, Device PCI Bus ID: 0, Device PCI location ID: 0
113 Compute Mode: Default (multiple host threads can use ::cudaSetDevice() with device simultaneously)
114 Concurrent kernels: 1
117 [31-7-2018 9:8:25] SDK: Release NvMediaDevice
118 [31-7-2018 9:8:25] Driveworks SDK released
119 [31-7-2018 9:8:25] SDK: Release NvMedia2D
120 Happy autonomous driving!
122 @section dwx_hello_world_more Additional information
124 For more details see:
125 - @ref dwx_hello_world
126 - @ref core_mainsection