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

Function ihipArray3DGetDescriptor

hipamd/src/hip_memory.cpp:3827–3843  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3825}
3826
3827hipError_t ihipArray3DGetDescriptor(HIP_ARRAY3D_DESCRIPTOR* desc, hipArray_t array) {
3828 {
3829 amd::ScopedLock lock(hipArraySetLock);
3830 if (hip::hipArraySet.find(array) == hip::hipArraySet.end()) {
3831 return hipErrorInvalidHandle;
3832 }
3833 }
3834
3835 desc->Width = array->width;
3836 desc->Height = array->height;
3837 desc->Depth = array->depth;
3838 desc->Format = array->Format;
3839 desc->NumChannels = array->NumChannels;
3840 desc->Flags = array->flags;
3841
3842 return hipSuccess;
3843}
3844
3845hipError_t hipArrayGetInfo(hipChannelFormatDesc* desc, hipExtent* extent, unsigned int* flags,
3846 hipArray_t array) {

Callers 3

hipArrayGetInfoFunction · 0.85
hipArrayGetDescriptorFunction · 0.85
hipArray3DGetDescriptorFunction · 0.85

Calls 1

endMethod · 0.45

Tested by

no test coverage detected