Skip to content

Commit 94e464d

Browse files
tqchenShiboXing
authored andcommitted
[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 issue
1 parent 31ecc57 commit 94e464d

File tree

14 files changed

+30
-919
lines changed

14 files changed

+30
-919
lines changed

python/tvm/_ffi/_ctypes/__init__.py

Lines changed: 0 additions & 17 deletions
This file was deleted.

python/tvm/_ffi/_ctypes/ndarray.py

Lines changed: 0 additions & 151 deletions
This file was deleted.

python/tvm/_ffi/_ctypes/object.py

Lines changed: 0 additions & 189 deletions
This file was deleted.

0 commit comments

Comments
 (0)