Skip to content

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