MCPcopy Create free account
hub / github.com/ROCm/clr / hipMalloc

Function hipMalloc

hipamd/src/hip_memory.cpp:776–780  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

774}
775
776hipError_t hipMalloc(void** ptr, size_t sizeBytes) {
777 HIP_INIT_API(hipMalloc, ptr, sizeBytes);
778 CHECK_STREAM_CAPTURE_SUPPORTED();
779 HIP_RETURN_DURATION(ihipMalloc(ptr, sizeBytes, 0), ReturnPtrValue(ptr));
780}
781
782hipError_t hipHostMalloc(void** ptr, size_t sizeBytes, unsigned int flags) {
783 HIP_INIT_API(hipHostMalloc, ptr, sizeBytes, flags);

Calls 2

ihipMallocFunction · 0.85
ReturnPtrValueFunction · 0.85

Tested by

no test coverage detected