| 376 | /// that needs to be updated by the runtime when accessed |
| 377 | template <class T> |
| 378 | tracked_descriptor<T> empty_view(T *ptr, device dev, |
| 379 | management_mode m = no_ownership) { |
| 380 | tracked_descriptor<T> d; |
| 381 | bool is_owned = (m == take_ownership) ? true : false; |
| 382 | |
| 383 | d.desc = descriptor<T>{ptr, dev, is_owned}; |
| 384 | d.is_recent = false; |
| 385 | return d; |
| 386 | } |
| 387 | |
| 388 | /// Construct an allocation descriptor for an allocation |
| 389 | /// already holding live data that is up-to-date and does |
no outgoing calls
no test coverage detected