MCPcopy Create free account
hub / github.com/ashvardanian/StringZilla / module_to_device

Function module_to_device

python/stringzillas.c:1861–1866  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1859 "GPU kernel execution. Useful for testing slice handling after re-allocation.";
1860
1861static PyObject *module_to_device(PyObject *self, PyObject *strs_obj) {
1862 if (!try_swap_to_unified_allocator(strs_obj)) return NULL;
1863
1864 Py_INCREF(strs_obj);
1865 return strs_obj;
1866}
1867
1868static void stringzillas_cleanup(PyObject *m) {
1869 sz_unused_(m);

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…