File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -42,8 +42,9 @@ GitHub = "https://github.com/apache/tvm/ffi"
4242
4343[project .optional-dependencies ]
4444# setup tools is needed by torch jit for best perf
45- torch = [" torch" , " setuptools" ]
46- test = [" pytest" , " numpy" , " torch" ]
45+ torch = [" torch" , " setuptools" , " ninja" ]
46+ cpp = [" ninja" ]
47+ test = [" pytest" , " numpy" , " torch" , " ninja" ]
4748
4849[project .scripts ]
4950tvm-ffi-config = " tvm_ffi.config:__main__"
Original file line number Diff line number Diff line change 1717
1818import pytest
1919import numpy
20+ import sys
2021
2122try :
2223 import torch
2728from tvm_ffi .module import Module
2829
2930
31+ @pytest .mark .xfail (not sys .platform .startswith ("linux" ), reason = "need to support non-linux" )
3032def test_load_inline_cpp ():
3133 mod : Module = tvm_ffi .cpp .load_inline (
3234 name = "hello" ,
@@ -53,6 +55,7 @@ def test_load_inline_cpp():
5355 numpy .testing .assert_equal (x + 1 , y )
5456
5557
58+ @pytest .mark .xfail (not sys .platform .startswith ("linux" ), reason = "need to support non-linux" )
5659def test_load_inline_cpp_with_docstrings ():
5760 mod : Module = tvm_ffi .cpp .load_inline (
5861 name = "hello" ,
@@ -79,6 +82,7 @@ def test_load_inline_cpp_with_docstrings():
7982 numpy .testing .assert_equal (x + 1 , y )
8083
8184
85+ @pytest .mark .xfail (not sys .platform .startswith ("linux" ), reason = "need to support non-linux" )
8286def test_load_inline_cpp_multiple_sources ():
8387 mod : Module = tvm_ffi .cpp .load_inline (
8488 name = "hello" ,
@@ -121,6 +125,7 @@ def test_load_inline_cpp_multiple_sources():
121125 numpy .testing .assert_equal (x + 1 , y )
122126
123127
128+ @pytest .mark .xfail (not sys .platform .startswith ("linux" ), reason = "need to support non-linux" )
124129def test_load_inline_cpp_build_dir ():
125130 mod : Module = tvm_ffi .cpp .load_inline (
126131 name = "hello" ,
You can’t perform that action at this time.
0 commit comments