File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
# Data Parallel Control (dpctl)
2
2
#
3
- # Copyright 2020-2022 Intel Corporation
3
+ # Copyright 2020-2023 Intel Corporation
4
4
#
5
5
# Licensed under the Apache License, Version 2.0 (the "License");
6
6
# you may not use this file except in compliance with the License.
@@ -69,8 +69,8 @@ def test_is_in_device_context_inside_nested_device_ctxt_cpu():
69
69
n = cpu .max_compute_units
70
70
n_half = n // 2
71
71
try :
72
- d0 , d1 = cpu .create_subdevices (partition = [n_half , n - n_half ])
73
- except Exception :
72
+ d0 , d1 = cpu .create_sub_devices (partition = [n_half , n - n_half ])
73
+ except dpctl . SyclSubDeviceCreationError :
74
74
pytest .skip ("Could not create subdevices" )
75
75
assert 0 == dpctl .get_num_activated_queues ()
76
76
with dpctl .device_context (d0 ):
You can’t perform that action at this time.
0 commit comments