| 1257 | } |
| 1258 | |
| 1259 | hipError_t hipMalloc3DArray(hipArray_t* array, const hipChannelFormatDesc* desc, hipExtent extent, |
| 1260 | unsigned int flags) { |
| 1261 | HIP_INIT_API(hipMalloc3DArray, array, desc, extent, flags); |
| 1262 | if (array == nullptr || desc == nullptr) { |
| 1263 | return hipErrorInvalidValue; |
| 1264 | } |
| 1265 | CHECK_STREAM_CAPTURE_SUPPORTED(); |
| 1266 | HIP_ARRAY3D_DESCRIPTOR allocateArray = {extent.width, |
| 1267 | extent.height, |
| 1268 | extent.depth, |
| 1269 | hip::getArrayFormat(*desc), |
| 1270 | hip::getNumChannels(*desc), |
| 1271 | flags}; |
| 1272 | if (!hip::CheckArrayFormat(*desc)) { |
| 1273 | return hipErrorInvalidValue; |
| 1274 | } |
| 1275 | |
| 1276 | HIP_RETURN(ihipArrayCreate(array, &allocateArray, 0)); |
| 1277 | } |
| 1278 | |
| 1279 | hipError_t hipHostGetFlags(unsigned int* flagsPtr, void* hostPtr) { |
| 1280 | HIP_INIT_API(hipHostGetFlags, flagsPtr, hostPtr); |
nothing calls this directly
no test coverage detected