File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -185,7 +185,7 @@ def factory():
185
185
assert not dpctl .nested_context_factories
186
186
187
187
188
- @pytest .mark .skipif (not has_gpu (), reason = "No OpenCL GPU queues available" )
188
+ @pytest .mark .skipif (not has_cpu (), reason = "No OpenCL CPU queues available" )
189
189
def test_device_context_activates_nested_context ():
190
190
in_context = False
191
191
factory_called = False
@@ -206,13 +206,14 @@ def factory(_):
206
206
assert not factory_called
207
207
assert not in_context
208
208
209
- with dpctl .device_context ("opencl:gpu :0" ):
209
+ with dpctl .device_context ("opencl:cpu :0" ):
210
210
assert factory_called
211
211
assert in_context
212
212
213
213
assert not in_context
214
214
215
215
216
+ @pytest .mark .skipif (not has_cpu (), reason = "No OpenCL CPU queues available" )
216
217
@pytest .mark .parametrize (
217
218
"factory, exception, match" ,
218
219
[
@@ -225,5 +226,5 @@ def test_nested_context_factory_exception_if_wrong_factory(
225
226
):
226
227
with pytest .raises (exception , match = match ):
227
228
with _register_nested_context_factory (factory ):
228
- with dpctl .device_context ("opencl:gpu :0" ):
229
+ with dpctl .device_context ("opencl:cpu :0" ):
229
230
pass
You can’t perform that action at this time.
0 commit comments