MCPcopy Create free account
hub / github.com/ROCm/AMDMIGraphX / preallocate

Method preallocate

src/targets/gpu/allocation_model.cpp:39–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39operation gpu_allocation_model::preallocate(const shape& s, const std::string& id) const
40{
41 return make_op("hip::hip_allocate_memory", {{"shape", to_value(s)}, {"id", id}});
42}
43
44std::string gpu_allocation_model::copy() const { return "hip::copy"; }
45

Callers 1

applyMethod · 0.45

Calls 2

make_opFunction · 0.50
to_valueFunction · 0.50

Tested by

no test coverage detected