Skip to content

Conversation

@Chapaman
Copy link
Contributor

do_shard_jit_apply was not defined yet. Also, compiler function shard_jit passes a mesh to prepare_options, which is now accepting it.

Comment on lines 184 to 186
defp prepare_options(fun, _mesh, opts) do # This is a placeholder for sharding implementation
prepare_options(fun, opts)
end
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This a placeholder for what exactly? I think we could just not pass the mesh and reuse the same prepare_options directly

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This a placeholder for what exactly? I think we could just not pass the mesh and reuse the same prepare_options directly

You're right! No need to pass mesh to prepare_options. maintaining it as arity /2 only

@polvalente polvalente merged commit 7591682 into elixir-nx:main Dec 26, 2025
9 checks passed
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

Successfully merging this pull request may close these issues.

2 participants