Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions ffi/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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__"
Expand Down
5 changes: 5 additions & 0 deletions ffi/tests/python/test_load_inline.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

import pytest
import numpy
import sys

try:
import torch
Expand All @@ -27,6 +28,7 @@
from tvm_ffi.module import Module


@pytest.mark.xfail(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",
Expand All @@ -53,6 +55,7 @@ def test_load_inline_cpp():
numpy.testing.assert_equal(x + 1, y)


@pytest.mark.xfail(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",
Expand All @@ -79,6 +82,7 @@ def test_load_inline_cpp_with_docstrings():
numpy.testing.assert_equal(x + 1, y)


@pytest.mark.xfail(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",
Expand Down Expand Up @@ -121,6 +125,7 @@ def test_load_inline_cpp_multiple_sources():
numpy.testing.assert_equal(x + 1, y)


@pytest.mark.xfail(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",
Expand Down
Loading