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

Function megcoreGetPlatform

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

Source from the content-addressed store, hash-verified

23}
24
25megcoreStatus_t megcoreGetPlatform(
26 megcoreDeviceHandle_t handle, megcorePlatform_t* platform) {
27 megdnn_assert(handle);
28 *platform = handle->content->platform();
29 return megcoreSuccess;
30}
31
32megcoreStatus_t megcoreGetDeviceID(megcoreDeviceHandle_t handle, int* deviceID) {
33 megdnn_assert(handle);

Callers 15

TEST_FFunction · 0.85
TESTFunction · 0.85
TEST_FFunction · 0.85
AtlasComputingContextMethod · 0.85
getAtlasContextMethod · 0.85
ROCMComputingContextMethod · 0.85
getROCMContextMethod · 0.85
execMethod · 0.85
getCambriconContextMethod · 0.85
execMethod · 0.85
makeMethod · 0.85

Calls 1

platformMethod · 0.80

Tested by 3

TEST_FFunction · 0.68
TESTFunction · 0.68
TEST_FFunction · 0.68