Skip to content

Remove StandaloneExtensionPybind11.cpp FT update as does not work with python 3.8 and old pybind11 #122697

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 1 commit into from
Jan 13, 2025

Conversation

vfdev-5
Copy link
Contributor

@vfdev-5 vfdev-5 commented Jan 13, 2025

Description:

  • Remove StandaloneExtensionPybind11.cpp FT update as does not work with python 3.8 and old pybind11

This should also fix the failing toy.test: #122684 (comment)

cc @jpienaar

@llvmbot llvmbot added the mlir label Jan 13, 2025
@llvmbot
Copy link
Member

llvmbot commented Jan 13, 2025

@llvm/pr-subscribers-mlir

Author: vfdev (vfdev-5)

Changes

Description:

  • Remove StandaloneExtensionPybind11.cpp FT update as does not work with python 3.8 and old pybind11

This should also fix the failing toy.test: #122684 (comment)

cc @jpienaar


Full diff: https://github.com/llvm/llvm-project/pull/122697.diff

1 Files Affected:

  • (modified) mlir/examples/standalone/python/StandaloneExtensionPybind11.cpp (+1-3)
diff --git a/mlir/examples/standalone/python/StandaloneExtensionPybind11.cpp b/mlir/examples/standalone/python/StandaloneExtensionPybind11.cpp
index dd3c4c2945cca8..397db4c20e7432 100644
--- a/mlir/examples/standalone/python/StandaloneExtensionPybind11.cpp
+++ b/mlir/examples/standalone/python/StandaloneExtensionPybind11.cpp
@@ -12,11 +12,9 @@
 #include "Standalone-c/Dialects.h"
 #include "mlir/Bindings/Python/PybindAdaptors.h"
 
-namespace py = pybind11;
-
 using namespace mlir::python::adaptors;
 
-PYBIND11_MODULE(_standaloneDialectsPybind11, m, py::mod_gil_not_used()) {
+PYBIND11_MODULE(_standaloneDialectsPybind11, m) {
   //===--------------------------------------------------------------------===//
   // standalone dialect
   //===--------------------------------------------------------------------===//

@jpienaar jpienaar merged commit ce8c64f into llvm:main Jan 13, 2025
10 checks passed
kazutakahirata pushed a commit to kazutakahirata/llvm-project that referenced this pull request Jan 13, 2025
…h python 3.8 and old pybind11 (llvm#122697)

Description:
- Remove StandaloneExtensionPybind11.cpp FT update as does not work with
python 3.8 and old pybind11

This should also fix the failing toy.test:
llvm#122684 (comment)

cc @jpienaar
@vfdev-5 vfdev-5 deleted the free-threading-support-2 branch January 15, 2025 10:13
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.

3 participants