Repository navigation
Add SPMD config option to specify zero cost method for gather/scatter. - #14862
patrick-toulme wants to merge 1 commit into
Conversation
b633c22 to
7f83c21
Compare
|
@frgossen please review. Thank you. |
|
@frgossen friendly reminder! |
frgossen
left a comment
There was a problem hiding this comment.
Clang-format also fixed some formatting.
These PRs will be auto-formatted on import so those changes might disappear again. Generally, it will be easier to review if you don't change formatting.
Thanks for making this configurable!
…her/scatter. Imported from GitHub PR openxla/xla#14862 Issue #13304 In SPMD handling of gather/scatter the partition strategy is hardcoded to IndexParallel strategy. This is not optimal for all topology. This PR makes this option an SPMD config, but defaults to IndexParallel to maintain existing behavior. Clang-format also fixed some formatting. Tests were added and all tests pass. Copybara import of the project: -- 7f83c21573f24cd4e314b13ce2e349dd6194b451 by ptoulme-aws <[email protected]>: Add SPMD config option to specify zero cost method for gather/scatter. Merging this change closes #14862 FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#14862 from ptoulme-aws:gather_scatter_config 7f83c21573f24cd4e314b13ce2e349dd6194b451 PiperOrigin-RevId: 652473292
…her/scatter. Imported from GitHub PR openxla/xla#14862 Issue #13304 In SPMD handling of gather/scatter the partition strategy is hardcoded to IndexParallel strategy. This is not optimal for all topology. This PR makes this option an SPMD config, but defaults to IndexParallel to maintain existing behavior. Clang-format also fixed some formatting. Tests were added and all tests pass. Copybara import of the project: -- 7f83c21573f24cd4e314b13ce2e349dd6194b451 by ptoulme-aws <[email protected]>: Add SPMD config option to specify zero cost method for gather/scatter. Merging this change closes #14862 FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#14862 from ptoulme-aws:gather_scatter_config 7f83c21573f24cd4e314b13ce2e349dd6194b451 PiperOrigin-RevId: 652473292
…her/scatter. Imported from GitHub PR openxla/xla#14862 Issue #13304 In SPMD handling of gather/scatter the partition strategy is hardcoded to IndexParallel strategy. This is not optimal for all topology. This PR makes this option an SPMD config, but defaults to IndexParallel to maintain existing behavior. Clang-format also fixed some formatting. Tests were added and all tests pass. Copybara import of the project: -- 7f83c21573f24cd4e314b13ce2e349dd6194b451 by ptoulme-aws <[email protected]>: Add SPMD config option to specify zero cost method for gather/scatter. Merging this change closes #14862 FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#14862 from ptoulme-aws:gather_scatter_config 7f83c21573f24cd4e314b13ce2e349dd6194b451 PiperOrigin-RevId: 652473292
…her/scatter. Imported from GitHub PR #14862 Issue #13304 In SPMD handling of gather/scatter the partition strategy is hardcoded to IndexParallel strategy. This is not optimal for all topology. This PR makes this option an SPMD config, but defaults to IndexParallel to maintain existing behavior. Clang-format also fixed some formatting. Tests were added and all tests pass. Copybara import of the project: -- 7f83c21 by ptoulme-aws <[email protected]>: Add SPMD config option to specify zero cost method for gather/scatter. Merging this change closes #14862 FUTURE_COPYBARA_INTEGRATE_REVIEW=#14862 from ptoulme-aws:gather_scatter_config 7f83c21 PiperOrigin-RevId: 652514718
…her/scatter. Imported from GitHub PR openxla/xla#14862 Issue #13304 In SPMD handling of gather/scatter the partition strategy is hardcoded to IndexParallel strategy. This is not optimal for all topology. This PR makes this option an SPMD config, but defaults to IndexParallel to maintain existing behavior. Clang-format also fixed some formatting. Tests were added and all tests pass. Copybara import of the project: -- 7f83c21573f24cd4e314b13ce2e349dd6194b451 by ptoulme-aws <[email protected]>: Add SPMD config option to specify zero cost method for gather/scatter. Merging this change closes #14862 FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#14862 from ptoulme-aws:gather_scatter_config 7f83c21573f24cd4e314b13ce2e349dd6194b451 PiperOrigin-RevId: 652514718
Okay, I will not format any future changes. Thank you for reviewing. I see my PR is not merging due to ROCm and Windows Bazel build failures in copy-bara import to Tensorflow. I cannot view the ROCm failure. The Windows failure is on this target - tensorflow/tools/ci_build/builds/gen_win_out.exe. How do I debug this unless these builds are broken on TOT right now? |
…her/scatter. Imported from GitHub PR #14862 Issue #13304 In SPMD handling of gather/scatter the partition strategy is hardcoded to IndexParallel strategy. This is not optimal for all topology. This PR makes this option an SPMD config, but defaults to IndexParallel to maintain existing behavior. Clang-format also fixed some formatting. Tests were added and all tests pass. Copybara import of the project: -- 7f83c21 by ptoulme-aws <[email protected]>: Add SPMD config option to specify zero cost method for gather/scatter. Merging this change closes #14862 FUTURE_COPYBARA_INTEGRATE_REVIEW=#14862 from ptoulme-aws:gather_scatter_config 7f83c21 PiperOrigin-RevId: 652514718
…her/scatter. Imported from GitHub PR openxla/xla#14862 Issue #13304 In SPMD handling of gather/scatter the partition strategy is hardcoded to IndexParallel strategy. This is not optimal for all topology. This PR makes this option an SPMD config, but defaults to IndexParallel to maintain existing behavior. Clang-format also fixed some formatting. Tests were added and all tests pass. Copybara import of the project: -- 7f83c21573f24cd4e314b13ce2e349dd6194b451 by ptoulme-aws <[email protected]>: Add SPMD config option to specify zero cost method for gather/scatter. Merging this change closes #14862 FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#14862 from ptoulme-aws:gather_scatter_config 7f83c21573f24cd4e314b13ce2e349dd6194b451 PiperOrigin-RevId: 652514718
…her/scatter. Imported from GitHub PR openxla/xla#14862 Issue #13304 In SPMD handling of gather/scatter the partition strategy is hardcoded to IndexParallel strategy. This is not optimal for all topology. This PR makes this option an SPMD config, but defaults to IndexParallel to maintain existing behavior. Clang-format also fixed some formatting. Tests were added and all tests pass. Copybara import of the project: -- 7f83c21573f24cd4e314b13ce2e349dd6194b451 by ptoulme-aws <[email protected]>: Add SPMD config option to specify zero cost method for gather/scatter. Merging this change closes #14862 FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#14862 from ptoulme-aws:gather_scatter_config 7f83c21573f24cd4e314b13ce2e349dd6194b451 PiperOrigin-RevId: 652473292
FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#14862 from ptoulme-aws:gather_scatter_config 7f83c21573f24cd4e314b13ce2e349dd6194b451 PiperOrigin-RevId: 652312882
FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#14862 from ptoulme-aws:gather_scatter_config 7f83c21573f24cd4e314b13ce2e349dd6194b451 PiperOrigin-RevId: 652134750
FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#14862 from ptoulme-aws:gather_scatter_config 7f83c21573f24cd4e314b13ce2e349dd6194b451 PiperOrigin-RevId: 652312888
FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#14862 from ptoulme-aws:gather_scatter_config 7f83c21573f24cd4e314b13ce2e349dd6194b451 PiperOrigin-RevId: 652312889
FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#14862 from ptoulme-aws:gather_scatter_config 7f83c21573f24cd4e314b13ce2e349dd6194b451 PiperOrigin-RevId: 652135040
FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#14862 from ptoulme-aws:gather_scatter_config 7f83c21573f24cd4e314b13ce2e349dd6194b451 PiperOrigin-RevId: 650565685
FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#14862 from ptoulme-aws:gather_scatter_config 7f83c21573f24cd4e314b13ce2e349dd6194b451 PiperOrigin-RevId: 652312897
FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#14862 from ptoulme-aws:gather_scatter_config 7f83c21573f24cd4e314b13ce2e349dd6194b451 PiperOrigin-RevId: 651940791
FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#14862 from ptoulme-aws:gather_scatter_config 7f83c21573f24cd4e314b13ce2e349dd6194b451 PiperOrigin-RevId: 651940797
FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#14862 from ptoulme-aws:gather_scatter_config 7f83c21573f24cd4e314b13ce2e349dd6194b451 PiperOrigin-RevId: 652312894
…her/scatter. Imported from GitHub PR openxla/xla#14862 Issue #13304 In SPMD handling of gather/scatter the partition strategy is hardcoded to IndexParallel strategy. This is not optimal for all topology. This PR makes this option an SPMD config, but defaults to IndexParallel to maintain existing behavior. Clang-format also fixed some formatting. Tests were added and all tests pass. Copybara import of the project: -- 7f83c21573f24cd4e314b13ce2e349dd6194b451 by ptoulme-aws <[email protected]>: Add SPMD config option to specify zero cost method for gather/scatter. Merging this change closes #14862 PiperOrigin-RevId: 652736743
Issue #13304
In SPMD handling of gather/scatter the partition strategy is hardcoded to IndexParallel strategy. This is not optimal for all topology. This PR makes this option an SPMD config, but defaults to IndexParallel to maintain existing behavior.
Clang-format also fixed some formatting. Tests were added and all tests pass.