MCPcopy Create free account
hub / github.com/OAID/Tengine / InitializeDevice

Method InitializeDevice

driver/cpu/cpu_driver.cpp:34–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32namespace TEngine {
33
34bool CPUDriver::InitializeDevice(Device* device)
35{
36 CPUDevice* cpu_dev = dynamic_cast<CPUDevice*>(device);
37
38 cpu_dev->LaunchMaster();
39 cpu_dev->LaunchAider();
40
41 cpu_dev->BindDriver(this);
42 cpu_dev->dev_status = kDevStopped;
43
44 return true;
45}
46
47bool CPUDriver::ReleaseDevice(Device* device)
48{

Callers

nothing calls this directly

Calls 3

LaunchMasterMethod · 0.80
LaunchAiderMethod · 0.80
BindDriverMethod · 0.80

Tested by

no test coverage detected