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

support gpu spmd #5

Merged
merged 2 commits into from
Dec 27, 2023

Conversation

mars1248
Copy link

@mars1248 mars1248 commented Dec 20, 2023

During gpu training, each gpu corresponds to a process, so each gpu can only get its own device information for executing subgraphs, so it is necessary to modify the underlying logic of open xla to support local execute.
Using the original logic would result in a coredump when the result of the computation is retrieved.

@@ -2881,6 +2881,7 @@ PjRtStreamExecutorLoadedExecutable::Execute(
auto& statusor = results[i];
if (!statusor.ok()) {
if (returned_futures.has_value()) {
VLOG(0) << "returned_futures clear";
Copy link

Choose a reason for hiding this comment

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

Should remove the LOG or use VLOG(3) for debug?

num_partitions());
}

VLOG(1) << "Executing computation " << name()
Copy link

Choose a reason for hiding this comment

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

VLOG(3)?

<< " num_partitions=" << num_partitions()
<< " num_addressable_devices=" << num_addressable_devices;
TF_ASSIGN_OR_RETURN(
auto result,

This comment was marked as resolved.

@wbmc wbmc merged commit 9225332 into intelligent-machine-learning:main Dec 27, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants