Commit 805bfbe
authored
PODVector: Add
Register `PODVector_{real,int,uint64}_default` as aliases that resolve
to `_std` on CPU builds and `_arena` on GPU builds, matching the C++
`Gpu::DeviceVector<T>` type per platform.
For other containers like PC & MF we an just use the default arena, but
PODVector is implemented a bit special, relying on a `std::allocator`
instead of the default arena on CPU.
This helps to write CPU/GPU agnostic interfaces, e.g., in
BLAST-ImpactX/impactx#1305_default Platform Aliases (#540)1 parent 5fabb44 commit 805bfbe
1 file changed
+29
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
35 | 45 | | |
36 | 46 | | |
37 | 47 | | |
| |||
40 | 50 | | |
41 | 51 | | |
42 | 52 | | |
43 | | - | |
44 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
45 | 61 | | |
46 | | - | |
| 62 | + | |
47 | 63 | | |
48 | 64 | | |
49 | 65 | | |
| |||
151 | 167 | | |
152 | 168 | | |
153 | 169 | | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
154 | 180 | | |
155 | 181 | | |
156 | 182 | | |
| |||
0 commit comments