Skip to content
Closed
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
31 changes: 31 additions & 0 deletions test/xpu/dynamo/test_backends_xpu.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Owner(s): ["module: dynamo"]
import sys
import unittest

import torch
import torch._dynamo
import torch._dynamo.backends
import torch._dynamo.test_case

sys.path.insert(0, "../../../../test/dynamo")

from test_backends import TestOptimizations
from torch.testing._internal.common_device_type import instantiate_device_type_tests


class TestOptimizationsXPU(TestOptimizations):
# Skip test_aot_cudagraphs because cudagraph is not supported on XPU
# Feature gap in xpugraph: XPUGraph is not fully supported
# See https://github.com/intel/torch-xpu-ops/issues/3594
@unittest.skip("xpugraph feature gap: XPUGraph is not fully supported")
def test_aot_cudagraphs(self, device):
pass


instantiate_device_type_tests(TestOptimizationsXPU, globals(), only_for="xpu", allow_xpu=True)


if __name__ == "__main__":
from torch._dynamo.test_case import run_tests

run_tests()
26 changes: 26 additions & 0 deletions test/xpu/dynamo/test_cudagraphs_expandable_segments_xpu.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Owner(s): ["module: cuda graphs"]
# This file is a placeholder for the XPU equivalent of test_cudagraphs_expandable_segments.py.
# All tests are skipped because cudagraph (XPUGraph) is not fully supported on XPU.
# Feature gap in xpugraph: XPUGraph is not fully supported
# See https://github.com/intel/torch-xpu-ops/issues/3594

import sys
import unittest

import torch
import torch._dynamo.test_case

sys.path.insert(0, "../../../../test/dynamo")

from test_cudagraphs import TestAotCudagraphs


@unittest.skip("xpugraph feature gap: XPUGraph is not fully supported on XPU")
class TestAotCudagraphsExpandableSegmentsXPU(TestAotCudagraphs):
pass


if __name__ == "__main__":
from torch._dynamo.test_case import run_tests

run_tests()
26 changes: 26 additions & 0 deletions test/xpu/dynamo/test_cudagraphs_xpu.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Owner(s): ["module: cuda graphs"]
# This file is a placeholder for the XPU equivalent of test_cudagraphs.py.
# All tests are skipped because cudagraph (XPUGraph) is not fully supported on XPU.
# Feature gap in xpugraph: XPUGraph is not fully supported
# See https://github.com/intel/torch-xpu-ops/issues/3594

import sys
import unittest

import torch
import torch._dynamo.test_case

sys.path.insert(0, "../../../../test/dynamo")

from test_cudagraphs import TestAotCudagraphs


@unittest.skip("xpugraph feature gap: XPUGraph is not fully supported on XPU")
class TestAotCudagraphsXPU(TestAotCudagraphs):
pass


if __name__ == "__main__":
from torch._dynamo.test_case import run_tests

run_tests()
Loading