Commit d5e7844
Add Send/Sync impls for DirectPtxModule and DirectCooperativeKernel
CUDA module and function handles are context-bound and thread-safe
since CUDA 4.0+. This was the only CUDA wrapper type in the crate
missing these impls, preventing downstream use in async runtimes
that require Send+Sync state (e.g. axum/tokio servers).
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 8a706b9 commit d5e7844
1 file changed
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
159 | 167 | | |
160 | 168 | | |
161 | 169 | | |
| |||
173 | 181 | | |
174 | 182 | | |
175 | 183 | | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
176 | 193 | | |
177 | 194 | | |
178 | 195 | | |
| |||
0 commit comments