Skip to content
Snippets Groups Projects
Commit 28cc13d9 authored by Timothy Smith's avatar Timothy Smith
Browse files

actually we do need get_queue because sometimes we want both the context and...

actually we do need get_queue because sometimes we want both the context and the queue in the same test
parent 4e43c147
No related branches found
No related tags found
1 merge request!38Session scoped contexts and queues
Pipeline #19970 failed
......@@ -68,7 +68,7 @@ def pytest_generate_tests(metafunc):
@pytest.fixture(scope="session")
def queue(ctx_factory):
return cl.CommandQueue(ctx_factory())
return u.get_queue(ctx_factory)
# vim: foldmethod=marker
......@@ -79,6 +79,9 @@ def expand_to_n(pair, n):
# }}}
def get_queue(ctx_factory):
return cl.CommandQueue(ctx_factory())
# {{{ program / kernel
_WENO_PRG = {}
......
......@@ -22,7 +22,7 @@ def roe_eigensystem(state_pair, frozen_metrics, direction):
ndim = frozen_metrics.shape[0]
prg = u.get_weno_program_with_root_kernel("roe_eigensystem")
queue = cl.CommandQueue(cl._csc())
queue = u.get_queue(cl._csc)
R_dev = u.empty_array_on_device(queue, nvars, nvars)
R_inv_dev = u.empty_array_on_device(queue, nvars, nvars)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment