Commit 94e464d
[FFI] Phase out ctypes fallback in favor of cython (apache#17714)
* [FFI] Phase out ctypes fallback in favor of cython
In the past we maintained both ctypes fallback and cython path for our FFI.
One reason was cython was not that widely available then.
The situation has changed, so this PR removes the ctypes fallback
so we can focus on building cython based core for FFI.
Notably, the cython core still leverages ctypes, especially for
some of the features that do not need fast path, and primarily
uses cython to speedup core FFI features with fast path.
With cython, we can get most FFI costs down to level
of roughtly 1e-6 sec, which aligns with most of the costs like
overhead of a numpy operation.
* fix lint
* Fix the dso loading issue1 parent 31ecc57 commit 94e464d
File tree
14 files changed
+30
-919
lines changed- python/tvm
- _ffi
- _ctypes
- _cy2
- runtime
- tests
- lint
- python
- runtime
- tvmscript
14 files changed
+30
-919
lines changedThis file was deleted.
This file was deleted.
This file was deleted.
0 commit comments