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

Function hipArrayCreate

hipamd/src/hip_memory.cpp:1217–1228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1215}
1216
1217hipError_t hipArrayCreate(hipArray_t* array, const HIP_ARRAY_DESCRIPTOR* pAllocateArray) {
1218 HIP_INIT_API(hipArrayCreate, array, pAllocateArray);
1219 if (pAllocateArray == nullptr) {
1220 return hipErrorInvalidValue;
1221 }
1222 CHECK_STREAM_CAPTURE_SUPPORTED();
1223 HIP_ARRAY3D_DESCRIPTOR desc = {
1224 pAllocateArray->Width, pAllocateArray->Height, 0, /* Depth */
1225 pAllocateArray->Format, pAllocateArray->NumChannels, hipArrayDefault /* Flags */};
1226
1227 HIP_RETURN(ihipArrayCreate(array, &desc, 0));
1228}
1229
1230
1231hipError_t hipMallocArray(hipArray_t* array, const hipChannelFormatDesc* desc, size_t width,

Callers

nothing calls this directly

Calls 1

ihipArrayCreateFunction · 0.85

Tested by

no test coverage detected