We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b40d357 commit e54aaa0Copy full SHA for e54aaa0
dpctl/tests/test_sycl_platform.py
@@ -17,6 +17,8 @@
17
"""Defines unit test cases for the SyclPlatform class.
18
"""
19
20
+import sys
21
+
22
import pytest
23
from helper import has_sycl_platforms
24
@@ -88,12 +90,16 @@ def check_repr(platform):
88
90
89
91
92
def check_default_context(platform):
93
+ if "linux" not in sys.platform:
94
+ return
95
r = platform.default_context
96
assert type(r) is dpctl.SyclContext
97
98
99
def check_equal_and_hash(platform):
100
assert platform == platform
101
102
103
default_ctx = platform.default_context
104
for d in default_ctx.get_devices():
105
assert platform == d.sycl_platform
0 commit comments