Skip to content

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

Closed
@elistevens

Description

@elistevens

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.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions