You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
height
Height of the image, in components. Only defined if the geometry is 2D or higher.
depth
Depth of the image, in components. Only defined if geometry is HSA_EXT_IMAGE_GEOMETRY_3D. A depth of 0 is same as a depth of 1.
array_size
Number of images in the image array. Only defined if geometry is HSA_EXT_IMAGE_GEOMETRY_1DA, HSA_EXT_IMAGE_GEOMETRY_2DA, or HSA_EXT_IMAGE_GEOMETRY_2DADEPTH.
It seems that ROCR-Runtime and ROCclr both have issues:
ROCR-Runtime checks for depth != 0 incorrectly because "A depth of 0 is same as a depth of 1."
The runtime prints this message to stderr:
https://github.com/RadeonOpenCompute/ROCR-Runtime/blob/master/src/image/hsa_ext_image.cpp#L81
According to HSA specs (http://www.hsafoundation.com/html/Content/Runtime/Topics/03_Extensions/hsa_ext_image_descriptor_t.htm):
It seems that ROCR-Runtime and ROCclr both have issues:
ROCR-Runtime checks for depth != 0 incorrectly because "A depth of 0 is same as a depth of 1."
ROCclr sets height, depth, array_size to 1 (https://github.com/ROCm-Developer-Tools/ROCclr/blob/main/device/rocm/rocmemory.cpp#L959)
However, it's unclear what "defined" means here: 1) incorrect values should be ignored 2) fields can have any values.
The text was updated successfully, but these errors were encountered: