This is an automated email from the ASF dual-hosted git repository.

tqchen pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git


The following commit(s) were added to refs/heads/main by this push:
     new a819115375 [FFI] Temp skip load_inline tests nonlinux (#18278)
a819115375 is described below

commit a819115375568e52f9d2d7376cdbb0a23346c3cb
Author: Tianqi Chen <[email protected]>
AuthorDate: Sun Sep 7 13:45:59 2025 -0400

    [FFI] Temp skip load_inline tests nonlinux (#18278)
    
    This PR temp skip load_inline tests on nonlinux before we
    enhance and improve for other platforms.
---
 ffi/pyproject.toml                   | 5 +++--
 ffi/tests/python/test_load_inline.py | 5 +++++
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/ffi/pyproject.toml b/ffi/pyproject.toml
index 430b47c33b..79cd958786 100644
--- a/ffi/pyproject.toml
+++ b/ffi/pyproject.toml
@@ -42,8 +42,9 @@ GitHub = "https://github.com/apache/tvm/ffi";
 
 [project.optional-dependencies]
 # setup tools is needed by torch jit for best perf
-torch = ["torch", "setuptools"]
-test = ["pytest", "numpy", "torch"]
+torch = ["torch", "setuptools", "ninja"]
+cpp = ["ninja"]
+test = ["pytest", "numpy", "torch", "ninja"]
 
 [project.scripts]
 tvm-ffi-config = "tvm_ffi.config:__main__"
diff --git a/ffi/tests/python/test_load_inline.py 
b/ffi/tests/python/test_load_inline.py
index f809cede59..c35ebd30e2 100644
--- a/ffi/tests/python/test_load_inline.py
+++ b/ffi/tests/python/test_load_inline.py
@@ -17,6 +17,7 @@
 
 import pytest
 import numpy
+import sys
 
 try:
     import torch
@@ -27,6 +28,7 @@ import tvm_ffi.cpp
 from tvm_ffi.module import Module
 
 
[email protected](not sys.platform.startswith("linux"), reason="need to 
support non-linux")
 def test_load_inline_cpp():
     mod: Module = tvm_ffi.cpp.load_inline(
         name="hello",
@@ -53,6 +55,7 @@ def test_load_inline_cpp():
     numpy.testing.assert_equal(x + 1, y)
 
 
[email protected](not sys.platform.startswith("linux"), reason="need to 
support non-linux")
 def test_load_inline_cpp_with_docstrings():
     mod: Module = tvm_ffi.cpp.load_inline(
         name="hello",
@@ -79,6 +82,7 @@ def test_load_inline_cpp_with_docstrings():
     numpy.testing.assert_equal(x + 1, y)
 
 
[email protected](not sys.platform.startswith("linux"), reason="need to 
support non-linux")
 def test_load_inline_cpp_multiple_sources():
     mod: Module = tvm_ffi.cpp.load_inline(
         name="hello",
@@ -121,6 +125,7 @@ def test_load_inline_cpp_multiple_sources():
     numpy.testing.assert_equal(x + 1, y)
 
 
[email protected](not sys.platform.startswith("linux"), reason="need to 
support non-linux")
 def test_load_inline_cpp_build_dir():
     mod: Module = tvm_ffi.cpp.load_inline(
         name="hello",

Reply via email to