Commit 12a4f1e
enhances the CUDA benchmarking and add memtrace (#453)
* docs: Revise GPU README to enhance clarity on eBPF observability challenges and bpftime's unified approach
* docs: Update installation instructions to include new CUDA/GPU attach support and additional build options
* docs: Update NVBit installation instructions and streamline Makefile for auto-download
* docs: Update Makefile and README examples for CUDA benchmarks and correct paths
* Add CUDA vector addition benchmark with eBPF and NVBit instrumentation
- Introduced a new benchmark for CUDA vector addition that utilizes eBPF and NVBit for performance monitoring.
- Created Makefile for building the benchmark and its components.
- Implemented eBPF program (cuda_probe.bpf.c) to trace CUDA kernel invocations.
- Developed userspace loader (cuda_probe.c) to load and attach the eBPF program.
- Added NVBit instrumentation (nvbit_vec_add.cu) to measure kernel execution time.
- Included vector addition kernel (vec_add.cu) for benchmarking.
- Updated README.md with instructions for building and running the benchmark.
- Added mem_trace example to trace CUDA kernel invocations using eBPF.
- Created Makefile and README.md for mem_trace example.
- Implemented eBPF program (mem_trace.bpf.c) to monitor CUDA kernel invocations.
- Developed userspace loader (mem_trace.c) for the mem_trace example.
- Added vector addition kernel (vec_add.cu) for the mem_trace example.
* feat: Add CUDA benchmark runner script for performance comparison
* Update benchmark/gpu/run_cuda_bench.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>1 parent edf049a commit 12a4f1e
File tree
23 files changed
+948
-341
lines changed- benchmark
- cuda
- gpu
- example/gpu
- cuda-counter-gpu-array
- cuda-counter-gpu-ringbuf
- cuda-counter
- mem_trace
23 files changed
+948
-341
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
| 30 | + | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
| 115 | + | |
129 | 116 | | |
130 | 117 | | |
131 | 118 | | |
| |||
153 | 140 | | |
154 | 141 | | |
155 | 142 | | |
156 | | - | |
| 143 | + | |
157 | 144 | | |
158 | 145 | | |
159 | 146 | | |
| |||
180 | 167 | | |
181 | 168 | | |
182 | 169 | | |
183 | | - | |
| 170 | + | |
184 | 171 | | |
185 | 172 | | |
186 | 173 | | |
| |||
This file was deleted.
File renamed without changes.
Lines changed: 24 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
85 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
86 | 88 | | |
87 | 89 | | |
88 | 90 | | |
| |||
92 | 94 | | |
93 | 95 | | |
94 | 96 | | |
95 | | - | |
96 | | - | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
97 | 107 | | |
98 | | - | |
99 | | - | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
100 | 114 | | |
101 | 115 | | |
102 | 116 | | |
| |||
166 | 180 | | |
167 | 181 | | |
168 | 182 | | |
169 | | - | |
| 183 | + | |
170 | 184 | | |
171 | 185 | | |
172 | 186 | | |
173 | | - | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
174 | 190 | | |
175 | 191 | | |
176 | 192 | | |
| |||
0 commit comments