-
Notifications
You must be signed in to change notification settings - Fork 670
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[vulkan][spirv] reverse
tests fail on newer Android builds on Pixel 6
#12415
Comments
We currently do not have a better mechanism to disable this only on affected Vulkan targets. This is so that we can update our Pixel phones and use new Vulkan extensions. Issue: iree-org#12415
We currently do not have a better mechanism to disable this only on affected Vulkan targets. This is so that we can update our Pixel phones and use new Vulkan extensions. Issue: #12415
Minimized testcase: func.func @reverse_dim0() {
%input = util.unfoldable_constant dense<[[1.0, 2.0, 3.0],
[4.0, 5.0, 6.0]]> : tensor<2x3xf32>
%init = tensor.empty() : tensor<2x3xf32>
%0 = iree_linalg_ext.reverse
dimensions(dense<0> : tensor<1xi64>)
ins(%input : tensor<2x3xf32>)
outs(%init : tensor<2x3xf32>) : tensor<2x3xf32>
check.expect_almost_eq_const(
%0,
dense<[[4.0, 5.0, 6.0], [1.0, 2.0, 3.0]]> : tensor<2x3xf32>
) : tensor<2x3xf32>
return
} SPIR-V:
GLSL from spirv-cross (just for convenience): #version 450
layout(local_size_x = 64, local_size_y = 1, local_size_z = 1) in;
layout(set = 0, binding = 0, std430) buffer _resource_var_0_0_
{
float _m0[];
} _resource_var_0_0_1;
layout(set = 0, binding = 1, std430) buffer _resource_var_0_1_
{
float _m0[];
} _resource_var_0_1_1;
void main()
{
uint _30 = gl_WorkGroupID.x * 64u;
uint _31 = gl_NumWorkGroups.x * 64u;
uint _39;
_39 = gl_WorkGroupID.y;
uint _45;
for (;;)
{
if (int(_39) < int(2u))
{
_45 = _30;
uint _50;
for (;;)
{
if (int(_45) < int(3u))
{
_50 = gl_LocalInvocationID.x;
for (; int(_50) < int(3u); )
{
_resource_var_0_1_1._m0[(((_50 + (gl_LocalInvocationID.y * 4294967293u)) + (_39 * 4294967293u)) + _45) + 3u] = _resource_var_0_0_1._m0[((_50 + (_39 * 3u)) + (gl_LocalInvocationID.y * 3u)) + _45];
_50 += 64u;
continue;
}
_45 += _31;
continue;
}
else
{
break;
}
}
_39 += gl_NumWorkGroups.y;
continue;
}
else
{
break;
}
}
} |
Repro as an Amber script:
|
The minimized test cases (both IREE and Amber) also fail on Moto E w/ Adreno. |
The test passes with |
This is useful when debugging suspected out-of-bounds memory access issues. Issue: #12415
…12416) We currently do not have a better mechanism to disable this only on affected Vulkan targets. This is so that we can update our Pixel phones and use new Vulkan extensions. Issue: iree-org#12415
This is useful when debugging suspected out-of-bounds memory access issues. Issue: iree-org#12415
We currently do not have a better mechanism to disable this only on affected Vulkan targets. This is so that we can update our Pixel phones and use new Vulkan extensions. Issue: #12415
This is useful when debugging suspected out-of-bounds memory access issues. Issue: #12415
…12416) We currently do not have a better mechanism to disable this only on affected Vulkan targets. This is so that we can update our Pixel phones and use new Vulkan extensions. Issue: iree-org#12415
This is useful when debugging suspected out-of-bounds memory access issues. Issue: iree-org#12415
…12416) We currently do not have a better mechanism to disable this only on affected Vulkan targets. This is so that we can update our Pixel phones and use new Vulkan extensions. Issue: iree-org#12415
This is useful when debugging suspected out-of-bounds memory access issues. Issue: iree-org#12415
Might be able to close this after #17866 removed iree/tests/e2e/stablehlo_ops/BUILD.bazel Line 265 in 76cad82
|
Forking this from iree-org#17766 to just look at a single directory. * Moved Metal and ROCm tests from being exclusively defined in CMake to being defined (but then no-op'd) in Bazel * Taught the test function to insert `--iree-rocm-target-chip=${IREE_HIP_TEST_TARGET_CHIP}` (not happy that this is required though) * Merged test srcs down to a single `ALL_SRCS` glob for test suites that work across all configurations * Enabled previously disabled tests * Fixes iree-org#9583 * Fixes iree-org#12415 (maybe, might have to disable those tests on Android/Vulkan again) Signed-off-by: Lubo Litchev <[email protected]>
What happened?
The two reverse tests fail on Pixel 6 with newer Android builds. I first observed this on a build from ~July 2022 and confirmed this today on the newest build
230205.002
.These work fine on older builds used by the Pixel 6 Pro in the lab.
Steps to reproduce your issue
TQ1A.230205.002
What component(s) does this issue relate to?
Compiler
Version information
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: