Commit 497d53f
GPU stream implementation for ONNX runtime (#14117)
* Initial set of bug.fixes and cosmetic changes
* Please consider the following formatting changes
* Adjusting eval sizes. Makes code neater and avoids some calculations
* Adding separate functions. Now the host process only needs one instance and one initialization
* First version of CCDB implementation
* Working CCDB API calls (tested with test-ccdb)
* Improve fetching, but have to pass settings by value, not const ref
* Using const ref and moving CCDB calls to host initialization
* Simplifications and renaming
* Please consider the following formatting changes
* First version of GPU stream implementation. Still needs testing.
* Fixes
* Please consider the following formatting changes
* Adding the lane variable. This PR will in any case conflict with #14069
* Compiles on EPNs. Need to add shadow processors next. But for this, I will merge #14069 to have the changes in GPUChainTrackingClusterizer.
* Adding shadow instance. Not sure if this correctly allocates GPU memory using AllocateRegisteredMemory
* This runs, but will eventually fill up the VRAM. Need to include a mem clean
* Found the stream allocation issue. Now starting optimizations
* Improve readability and adapt for some comments
* Fixing memory assignment issue. Reconstruction runs through with FP32 networks
* Major reworkings to add FP16 support
* Bug-fixes
* Improved data filling speeds by factor 3
* Limiting threads for ONNX evaluation
* Bug-fix for correct thread assignment and input data filling
* Minor changes
* Adding I** inference, potentally needed for CNN + FC inference
* CCDB fetching of NNs ported to GPUWorkflowSpec
* Adjusting CPU threads and ORT copmile definitions
* About 10x speed-up due to explicit io binding
* Changes for synchronization and consistency. No performance loss.
* Please consider the following formatting changes
* Fixing warnings (errors due to size_t)
* Fixing linker issues
* Adding volatile memory allocation and MockedOrtAllocator. Removing print statements and time measurements
* Please consider the following formatting changes
* Circumvent "unused result" warning and build failure
* Adjust for comments
* Please consider the following formatting changes
* Fixing build flags
---------
Co-authored-by: ALICE Action Bot <alibuild@cern.ch>1 parent 8ffe167 commit 497d53f
File tree
27 files changed
+1301
-439
lines changed- Common/ML
- include/ML
- 3rdparty
- src
- Detectors/TPC/calibration
- include/TPCCalibration
- src
- GPU
- GPUTracking
- Base
- cuda
- hip
- Definitions
- Global
- TPCClusterFinder
- Workflow
- include/GPUWorkflow
- src
27 files changed
+1301
-439
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | 12 | | |
27 | 13 | | |
28 | 14 | | |
29 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
882 | 882 | | |
883 | 883 | | |
884 | 884 | | |
885 | | - | |
| 885 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
29 | 36 | | |
30 | 37 | | |
31 | 38 | | |
| |||
36 | 43 | | |
37 | 44 | | |
38 | 45 | | |
39 | | - | |
| 46 | + | |
40 | 47 | | |
41 | | - | |
42 | | - | |
43 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
44 | 61 | | |
| 62 | + | |
45 | 63 | | |
46 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
47 | 92 | | |
48 | 93 | | |
49 | 94 | | |
| |||
53 | 98 | | |
54 | 99 | | |
55 | 100 | | |
56 | | - | |
| 101 | + | |
57 | 102 | | |
58 | 103 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
| 104 | + | |
| 105 | + | |
67 | 106 | | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
| 107 | + | |
| 108 | + | |
72 | 109 | | |
73 | | - | |
| 110 | + | |
74 | 111 | | |
75 | 112 | | |
76 | | - | |
| 113 | + | |
77 | 114 | | |
78 | 115 | | |
79 | 116 | | |
80 | 117 | | |
81 | 118 | | |
82 | 119 | | |
83 | | - | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
84 | 123 | | |
85 | 124 | | |
86 | 125 | | |
87 | | - | |
88 | | - | |
| 126 | + | |
| 127 | + | |
89 | 128 | | |
90 | 129 | | |
| 130 | + | |
91 | 131 | | |
92 | 132 | | |
93 | 133 | | |
| |||
0 commit comments