MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / Allocate

Method Allocate

tensorflow/stream_executor/host/host_gpu_executor.cc:60–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60DeviceMemoryBase HostExecutor::Allocate(uint64 size, int64 memory_space) {
61 CHECK_EQ(memory_space, 0);
62 return DeviceMemoryBase(new char[size], size);
63}
64
65void *HostExecutor::GetSubBuffer(DeviceMemoryBase *parent, uint64 offset_bytes,
66 uint64 size_bytes) {

Callers

nothing calls this directly

Calls 1

DeviceMemoryBaseClass · 0.50

Tested by

no test coverage detected