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 5a1798a commit 9597299Copy full SHA for 9597299
dpctl/tests/test_sycl_context.py
@@ -14,7 +14,7 @@
14
# See the License for the specific language governing permissions and
15
# limitations under the License.
16
17
-""" Defines unit test cases for the SyclContxt class.
+""" Defines unit test cases for the :class:`dpctl.SyclContext` class.
18
"""
19
20
import pytest
@@ -218,3 +218,10 @@ def test_invalid_capsule():
218
cap = create_invalid_capsule()
219
with pytest.raises(ValueError):
220
dpctl.SyclContext(cap)
221
+
222
223
+def test_multi_device_different_platforms():
224
+ devs = dpctl.get_devices() # all devices
225
+ if len(devs) > 1:
226
+ with pytest.raises(ValueError):
227
+ dpctl.SyclContext(devs)
0 commit comments