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

Function megcoreGetDeviceFlags

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

Source from the content-addressed store, hash-verified

36}
37
38megcoreStatus_t megcoreGetDeviceFlags(
39 megcoreDeviceHandle_t handle, unsigned int* flags) {
40 megdnn_assert(handle);
41 *flags = handle->content->flags();
42 return megcoreSuccess;
43}
44
45megcoreStatus_t megcoreGetMemAlignment(
46 megcoreDeviceHandle_t handle, size_t* memAlignmentInBytes) {

Callers 3

TEST_FFunction · 0.85
TESTFunction · 0.85
TEST_FFunction · 0.85

Calls 1

flagsMethod · 0.45

Tested by 3

TEST_FFunction · 0.68
TESTFunction · 0.68
TEST_FFunction · 0.68