| 1215 | } |
| 1216 | |
| 1217 | hipError_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 | |
| 1231 | hipError_t hipMallocArray(hipArray_t* array, const hipChannelFormatDesc* desc, size_t width, |
nothing calls this directly
no test coverage detected