MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / set_device_id

Method set_device_id

lite/src/mge/network_impl.cpp:203–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201}
202
203void NetworkImplDft::set_device_id(int device_id) {
204 m_compnode_locator.device = device_id;
205 m_user_config->device_id = device_id;
206}
207
208void NetworkImplDft::set_stream_id(int stream_id) {
209 m_compnode_locator.stream = stream_id;

Callers 4

TESTFunction · 0.80
load_device_idFunction · 0.80
network.cppFile · 0.80
LITE_set_device_idFunction · 0.80

Calls

no outgoing calls

Tested by 2

TESTFunction · 0.64
load_device_idFunction · 0.64