DriveWorks SDK Reference
4.0.0 Release
For Test and Development only

samples/hello_world/README.md
Go to the documentation of this file.
1 # Copyright (c) 2021-2022, NVIDIA CORPORATION. All rights reserved.
2 
3 @page dwx_hello_world_sample Hello World Sample
4 @tableofcontents
5 
6 @section dwx_hello_world_description Description
7 
8 The Hello World sample application shows how to initialize the NVIDIA<sup>&reg;</sup> DriveWorks SDK
9 context and access GPU properties. This sample application prints the DriveWorks version and
10 GPU properties.
11 
12 @section dwx_hello_world_running Running the Sample
13 
14 The command line for the sample application is:
15 
16  ./sample_hello_world
17 
18 @section dwx_hello_world_output Output
19 
20 The sample application prints the following information on console:
21 
22  ./sample_hello_world
23  *************************************************
24  Welcome to Driveworks SDK
25  [27-07-2021 01:50:42] Platform: Detected DDPX - Tegra A
26  [27-07-2021 01:50:42] TimeSource: monotonic epoch time offset is 1626982515910358
27  [27-07-2021 01:50:42] PTP Time is available from NVPPS Driver
28  [27-07-2021 01:50:42] Platform: number of GPU devices detected 2
29  [27-07-2021 01:50:42] Platform: currently selected GPU device discrete ID 0
30  [27-07-2021 01:50:42] Context::mountResourceCandidateDataPath resource FAILED to mount from '/usr/local/driveworks-4.0/bin/data/': VirtualFileSystem: Failed to mount '/usr/local/driveworks-4.0/bin/data/[.pak]'
31  [27-07-2021 01:50:42] Context::findDataRootInPathWalk data/DATA_ROOT found at: /usr/local/driveworks-4.0/bin/../data
32  [27-07-2021 01:50:42] Context::mountResourceCandidateDataPath VirtualFileSystem mounted from '/usr/local/driveworks-4.0/bin/../data/'
33  [27-07-2021 01:50:42] SDK: Resources mounted from /usr/local/driveworks-4.0/bin/../data/
34  [27-07-2021 01:50:42] SDK: Create NvMediaDevice
35  [27-07-2021 01:50:42] SDK: Create NvMedia2D
36  [27-07-2021 01:50:42] egl::Display: found 2 EGL devices
37  [27-07-2021 01:50:42] egl::Display: use drm device: drm-nvdc
38  [27-07-2021 01:50:43] Initialize DriveWorks SDK v4.0.-1-experimental
39  [27-07-2021 01:50:43] Experimental Release build with GNU 7.3.1 from no-gitversion-build against Drive PDK v5.1.15.2
40  Context of Driveworks SDK successfully initialized.
41  Version: 4.0.-1
42  GPU devices detected: 2
43  [27-07-2021 01:50:43] Platform: currently selected GPU device discrete ID 0
44  ----------------------------------------------
45  Device: 0, Graphics Device
46  CUDA Driver Version / Runtime Version : 10.2 / 10.2
47  CUDA Capability Major/Minor version number: 7.5
48  Total amount of global memory in MBytes:7679.94
49  Memory Clock rate Khz: 1440000
50  Memory Bus Width bits: 256
51  L2 Cache Size: 4194304
52  Maximum 1D Texture Dimension Size (x): 131072
53  Maximum 2D Texture Dimension Size (x,y): 131072, 65536
54  Maximum 3D Texture Dimension Size (x,y,z): 16384, 16384, 16384
55  Maximum Layered 1D Texture Size, (x): 32768 num: 2048
56  Maximum Layered 2D Texture Size, (x,y): 32768, 32768 num: 2048
57  Total amount of constant memory bytes: 65536
58  Total amount of shared memory per block bytes: 49152
59  Total number of registers available per block: 65536
60  Warp size: 32
61  Maximum number of threads per multiprocessor: 1024
62  Maximum number of threads per block: 1024
63  Max dimension size of a thread block (x,y,z): 1024,1024,64
64  Max dimension size of a grid size (x,y,z): 2147483647,65535,65535
65  Maximum memory pitch bytes: 2147483647
66  Texture alignment bytes: 512
67  Concurrent copy and kernel execution: Yes, copy engines num: 3
68  Run time limit on kernels: No
69  Integrated GPU sharing Host Memory: No
70  Support host page-locked memory mapping: Yes
71  Alignment requirement for Surfaces: Yes
72  Device has ECC support: Disabled
73  Device supports Unified Addressing (UVA): Yes
74  Device PCI Domain ID: 1, Device PCI Bus ID: 1, Device PCI location ID: 0
75  Compute Mode: Default (multiple host threads can use ::cudaSetDevice() with device simultaneously)
76  Concurrent kernels: 1
77  Concurrent memory: 0
78 
79  [27-07-2021 01:50:43] Platform: currently selected GPU device integrated ID 1
80  ----------------------------------------------
81  Device: 1, Xavier
82  CUDA Driver Version / Runtime Version : 10.2 / 10.2
83  CUDA Capability Major/Minor version number: 7.2
84  Total amount of global memory in MBytes:28409.2
85  Memory Clock rate Khz: 1109000
86  Memory Bus Width bits: 256
87  L2 Cache Size: 524288
88  Maximum 1D Texture Dimension Size (x): 131072
89  Maximum 2D Texture Dimension Size (x,y): 131072, 65536
90  Maximum 3D Texture Dimension Size (x,y,z): 16384, 16384, 16384
91  Maximum Layered 1D Texture Size, (x): 32768 num: 2048
92  Maximum Layered 2D Texture Size, (x,y): 32768, 32768 num: 2048
93  Total amount of constant memory bytes: 65536
94  Total amount of shared memory per block bytes: 49152
95  Total number of registers available per block: 65536
96  Warp size: 32
97  Maximum number of threads per multiprocessor: 2048
98  Maximum number of threads per block: 1024
99  Max dimension size of a thread block (x,y,z): 1024,1024,64
100  Max dimension size of a grid size (x,y,z): 2147483647,65535,65535
101  Maximum memory pitch bytes: 2147483647
102  Texture alignment bytes: 512
103  Concurrent copy and kernel execution: Yes, copy engines num: 1
104  Run time limit on kernels: No
105  Integrated GPU sharing Host Memory: Yes
106  Support host page-locked memory mapping: Yes
107  Alignment requirement for Surfaces: Yes
108  Device has ECC support: Disabled
109  Device supports Unified Addressing (UVA): Yes
110  Device PCI Domain ID: 0, Device PCI Bus ID: 0, Device PCI location ID: 0
111  Compute Mode: Default (multiple host threads can use ::cudaSetDevice() with device simultaneously)
112  Concurrent kernels: 1
113  Concurrent memory: 0
114 
115  [27-07-2021 01:50:43] Releasing Driveworks SDK Context
116  [27-07-2021 01:50:43] SDK: Release NvMediaDevice
117  [27-07-2021 01:50:43] SDK: Release NvMedia2D
118  Happy autonomous driving!
119 
120 @section dwx_hello_world_more Additional information
121 
122 For more details see:
123 - @ref dwx_hello_world
124 - @ref core_mainsection