MCPcopy Create free account
hub / github.com/AdaptiveCpp/AdaptiveCpp / empty_view

Function empty_view

include/hipSYCL/sycl/buffer.hpp:378–386  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

376/// that needs to be updated by the runtime when accessed
377template <class T>
378tracked_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

Callers 1

BOOST_AUTO_TEST_CASEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected