MCPcopy Create free account
hub / github.com/RenderKit/embree / alignedSYCLFree

Function alignedSYCLFree

common/sys/alloc.cpp:91–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89 }
90
91 void alignedSYCLFree(sycl::context* context, void* ptr)
92 {
93 assert(context);
94 if (ptr) {
95 sycl::usm::alloc type = sycl::get_pointer_type(ptr, *context);
96 if (type == sycl::usm::alloc::host || type == sycl::usm::alloc::device || type == sycl::usm::alloc::shared)
97 sycl::free(ptr,*context);
98 else {
99 alignedFree(ptr);
100 }
101 }
102 }
103
104#endif
105

Callers 1

freeMethod · 0.50

Calls 1

alignedFreeFunction · 0.85

Tested by

no test coverage detected