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
{{ message }}
Repository navigation
convolution 1D and 3D cases doesn't work in Linalg on tensors path #5150
Describe the bug
The conv test in suite check_vulkan-spirv_vulkan_wgmem doesn't work in Linalg on tensors path. This blocks the migration to setting Linalg on tensors on by default.
Oh, I think the reason is that we only plumb conv 2d cases. This is not related to UseWorkgroupMemory.
The test cases in conv.mlir contain conv_1d and conv_3d. I think we can delete them and disable all conv_1d/3d cases? Once we need them, we can add more support and test around them.
changed the title [-]convolution doesn't work with UseWorkgroupMemory in Linalg on tensors path[/-][+]convolution 1D and 3D cases doesn't work in Linalg on tensors path[/+]on Mar 18, 2021
I guess it is working on CPU side. For GPU side, we will have to fix some kernel launch config. Otherwise , you will hit workloadPerWorkgroup size greater than 3 not handled in materializeStaticLaunchInformation again.
I tried with similar fix on 1d and 3d conv cases, but it did not work. I will de-prioritize the fix or just remove the support for 1d/3d cases in Linalg on tensors.
Activity
hanhanW commentedon Mar 18, 2021
Oh, I think the reason is that we only plumb conv 2d cases. This is not related to UseWorkgroupMemory.
The test cases in conv.mlir contain conv_1d and conv_3d. I think we can delete them and disable all conv_1d/3d cases? Once we need them, we can add more support and test around them.
[-]convolution doesn't work with UseWorkgroupMemory in Linalg on tensors path[/-][+]convolution 1D and 3D cases doesn't work in Linalg on tensors path[/+]hanhanW commentedon Mar 18, 2021
I verified that it is working if I removed 1d and 3d cases.
antiagainst commentedon Mar 18, 2021
+1 to remove. We can add this later when we have a concrete use case for it.
MaheshRavishankar commentedon Mar 18, 2021
Could we take a second and see what it would take to add support for them. It will expose some technical debt places.
MaheshRavishankar commentedon Mar 23, 2021
@hanhanW these should work now. Either way, this issue can be closed. We dont have conv_2d specific logic in dispatch region creation anymore.
hanhanW commentedon Mar 25, 2021
I guess it is working on CPU side. For GPU side, we will have to fix some kernel launch config. Otherwise , you will hit
workloadPerWorkgroup size greater than 3 not handledin materializeStaticLaunchInformation again.E.g.,
https://github.com/google/iree/blob/d496bc9d53e918c0362ddd498ded750eba6050f3/iree/compiler/Conversion/LinalgToSPIRV/KernelDispatchUtils.cpp#L666-L686
I tried with similar fix on 1d and 3d conv cases, but it did not work. I will de-prioritize the fix or just remove the support for 1d/3d cases in Linalg on tensors.
MaheshRavishankar commentedon Mar 25, 2021
Sounds good! THanks for looking into it!
Set IREE codegen to Linalg on tensors by default.
Set IREE codegen to Linalg on tensors by default.
Set IREE codegen to Linalg on tensors by default. (#5375)
antiagainst commentedon Aug 27, 2021
This is obsolete; conv 1D/3D are supported right now. Closing it.