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

Method alloc

include/hipSYCL/common/allocation_map.hpp:78–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76
77 template<class T>
78 static T* alloc(int count) {
79 return static_cast<T*>(UntypedAllocatorT::allocate(sizeof(T) * count));
80 }
81
82 static void free(void* ptr) {
83 UntypedAllocatorT::deallocate(ptr);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected