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

Function megcoreGetDeviceID

dnn/src/common/megcore/public_api/device.cpp:32–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32megcoreStatus_t megcoreGetDeviceID(megcoreDeviceHandle_t handle, int* deviceID) {
33 megdnn_assert(handle);
34 *deviceID = handle->content->device_id();
35 return megcoreSuccess;
36}
37
38megcoreStatus_t megcoreGetDeviceFlags(
39 megcoreDeviceHandle_t handle, unsigned int* flags) {

Callers 10

TEST_FFunction · 0.85
TESTFunction · 0.85
TEST_FFunction · 0.85
HandleImplMethod · 0.85
HandleImplMethod · 0.85
execMethod · 0.85
HandleImplMethod · 0.85
execMethod · 0.85
HandleImplMethod · 0.85
execMethod · 0.85

Calls 1

device_idMethod · 0.45

Tested by 3

TEST_FFunction · 0.68
TESTFunction · 0.68
TEST_FFunction · 0.68