Skip to content
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

error: call of overloaded 'TileAssignment(<brace-enclosed initializer list>)' is ambiguous with gcc 10 #18140

Open
elistevens opened this issue Oct 10, 2024 · 1 comment

Comments

@elistevens
Copy link

The issue reported in #3849 has crept back in. I'm trying to build commit d60579f54a0b6c37d1caf11dc3eb34488cf6922a (corresponding to jax 0.4.28) with gcc 10 (the instructions here https://github.com/openxla/xla/blob/79ca8d03c296ede04dc9a86ce9dde79ed909dda8/docs/developer_guide.md no longer mention gcc 10, so it's not clear what the right version to use is), and getting the same error: call of overloaded 'TileAssignment(<brace-enclosed initializer list>)' is ambiguous in the two fuctions here
https://github.com/openxla/xla/blob/main/xla/hlo/utils/hlo_sharding_util_test.cc#L1060 and here https://github.com/openxla/xla/blob/main/xla/hlo/utils/hlo_sharding_util_test.cc#L1075 (the line numbers are different on the older commit, but it's the same tests).

Updating the code to be TileAssignment((absl::Span<const int64_t>){4, 1}) seems to allow me to continue compiling.

@akuegel
Copy link
Member

akuegel commented Oct 11, 2024

The usage of absl::Span cast is apparently not needed anymore with gcc 13.0 and this fix:

#14255

Can you please check whether it works with gcc 13?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants