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

fabtests/pytest/common.py: skip neuron to neuron tests on single node #8428

Merged
merged 1 commit into from
Jan 23, 2023

Conversation

wenduwan
Copy link
Contributor

Because both client and server utilize all Neuron cores, they cannot request -D neuron on the same node. Thus skip those tests.

Signed-off-by: Wenduo Wang [email protected]

Because both client and server utilize all Neuron cores, they cannot request
-D neuron on the same node. Thus skip those tests.

Signed-off-by: Wenduo Wang <[email protected]>
@wenduwan wenduwan requested a review from a team January 20, 2023 22:04
@@ -292,6 +292,9 @@ def prepare_base_command(self, command_type, executable,
pytest.skip("no cuda device")
elif host_memory_type == "neuron" and not has_neuron(host_ip):
pytest.skip("no neuron device")
elif (client_memory_type == server_memory_type == "neuron") and (
self._cmdline_args.server_id == self._cmdline_args.client_id):
pytest.skip("Neuron to Neuron tests require 2 nodes")
Copy link
Contributor

Choose a reason for hiding this comment

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

only "neuron to neuron" has this limitation?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right. The failure mode is that we cannot run 2 processes with -D neuron on the same node. The 1st process will occupy all Neuron cores, and the 2nd process will fail because there is no Neuron cores available.

@wzamazon wzamazon merged commit 0202c73 into ofiwg:main Jan 23, 2023
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