Skip to content

[IFRT] add ifrt-proxy server and client bindings #750

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

Merged
merged 4 commits into from
Feb 15, 2025
Merged

Conversation

mofeing
Copy link
Collaborator

@mofeing mofeing commented Feb 15, 2025

No description provided.

@mofeing mofeing added the IFRT label Feb 15, 2025
@mofeing mofeing requested a review from wsmoses February 15, 2025 12:38
Comment on lines 1433 to 1449
std::string tpu_library_path;
if (auto path = llvm::sys::Process::GetEnv(kEnvTpuLibraryPath)) {
tpu_library_path = *path;
} else if (tpu_path) {
tpu_library_path = std::string(tpu_path);
} else {
*error = "Could not find TPU path";
return nullptr;
}

const PJRT_Api *pluginLoad =
LoadPjrtPlugin("tpu", tpu_library_path.c_str(), error);
if (pluginLoad == nullptr)
return nullptr;
auto tpu_status = InitializePjrtPlugin("tpu", error);
if (tpu_status)
return nullptr;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

we need to test wether to load the TPU plugin here (on this function call), on call by the factory (inside the closure then) or even before

@mofeing mofeing merged commit cebf9eb into main Feb 15, 2025
30 of 33 checks passed
@mofeing mofeing deleted the ss/ifrt-proxy branch February 15, 2025 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants