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

[backend] add environ to overwrite passed backend #47

Merged
merged 5 commits into from
Oct 11, 2024
Merged

[backend] add environ to overwrite passed backend #47

merged 5 commits into from
Oct 11, 2024

Conversation

botbw
Copy link
Collaborator

@botbw botbw commented Oct 1, 2024

No description provided.

csrc/backend.cpp Outdated
throw std::runtime_error("Unsupported backend: " + backend);

if (default_backend.size() > 0) { // priority 1: environ is set
std::cout << "[backend] backend is overwritten by environ TENSORNVME_BACKEND from " << backend << " to " << default_backend << std::endl;
Copy link
Member

Choose a reason for hiding this comment

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

can we print it only when TENSORNVME_DEBUG=1?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Added here 2136188 (#47)

@ver217 ver217 merged commit ebc660e into main Oct 11, 2024
1 check passed
@ver217 ver217 deleted the environ branch October 11, 2024 05:51
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