Skip to content

Generalize pybind_ops module name #759

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 5 commits into from
Jul 10, 2025
Merged

Conversation

scotts
Copy link
Contributor

@scotts scotts commented Jul 8, 2025

Enables the name used for the pybind11 C++ module to be configured at compile time. Note that making this work requires making sure that the compile time name also matches the name we return dynamically at runtime; see the comments.

Right now, we're not taking advantage of this capability. We plan to in the near future.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jul 8, 2025
@facebook-github-bot
Copy link
Contributor

@scotts has imported this pull request. If you are a Meta employee, you can view this in D78027815.

@facebook-github-bot
Copy link
Contributor

@scotts has imported this pull request. If you are a Meta employee, you can view this in D78027815.

@scotts scotts marked this pull request as ready for review July 10, 2025 14:00
# Note that this value must match the value used as PYBIND_OPS_MODULE_NAME
# when we compile _core/pybind_ops.cpp. If the values do not match, we will
# not be able to import the C++ shared library as a Python module at
# runtime.
Copy link
Member

Choose a reason for hiding this comment

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

Maybe just add a comment clarifying that the ffmpeg_major_version is only required for the internal version of this util

@facebook-github-bot
Copy link
Contributor

@scotts has imported this pull request. If you are a Meta employee, you can view this in D78027815.

@scotts scotts merged commit 86e952f into pytorch:main Jul 10, 2025
43 of 46 checks passed
@scotts scotts deleted the pybind_ops_name branch July 10, 2025 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Meta Open Source bot.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants