MCPcopy Create free account
hub / github.com/apache/arrow / setup_module

Function setup_module

python/pyarrow/tests/test_cuda_numba_interop.py:36–42  ·  view source on GitHub ↗
(module)

Source from the content-addressed store, hash-verified

34
35
36def setup_module(module):
37 np.random.seed(1234)
38 ctx1 = cuda.Context()
39 nb_ctx1 = ctx1.to_numba()
40 nb_ctx2 = nb_cuda.current_context()
41 ctx2 = cuda.Context.from_numba(nb_ctx2)
42 module.context_choices = [(ctx1, nb_ctx1), (ctx2, nb_ctx2)]
43
44
45def teardown_module(module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected