MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / malloc

Function malloc

paddle/fluid/framework/data_feed.h:451–455  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

449 T* data() { return cu_buffer; }
450 uint64_t size() { return buf_size; }
451 void malloc(uint64_t size) {
452 buf_size = size;
453 CUDA_CHECK(
454 cudaMalloc(reinterpret_cast<void**>(&cu_buffer), size * sizeof(T)));
455 }
456 void free() {
457 if (cu_buffer != NULL) {
458 CUDA_CHECK(cudaFree(cu_buffer));

Callers 15

allocBufferMethod · 0.85
ConvertDataByTypeFunction · 0.85
gpc_mallocFunction · 0.85
Array2PolyFunction · 0.85
PointVec2PolyFunction · 0.85
CopyDataFunction · 0.85
ContiguousKernelFunction · 0.85
Array2PolyFunction · 0.85
PointVec2PolyFunction · 0.85
operator()Method · 0.85
AllocateFunction · 0.85
bufferRequestedFunction · 0.85

Calls

no outgoing calls

Tested by 3

TESTFunction · 0.68
AllocateImplMethod · 0.68
AllocateImplMethod · 0.68