Browse Source

assign graph memory max size and variable memory max size adaptively

pull/1989/head
lichun 3 years ago
parent
commit
db6bf93008
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      tests/depends/runtime/src/runtime_stub.cc

+ 6
- 0
tests/depends/runtime/src/runtime_stub.cc View File

@@ -193,6 +193,12 @@ rtError_t rtMemGetInfo(size_t *free, size_t *total) {
return RT_ERROR_NONE;
}

rtError_t rtMemGetInfoEx(rtMemInfoType_t memInfoType, size_t *free, size_t *total) {
*free = 512UL * 1024UL * 1024UL;
*total = 1024UL * 1024UL * 1024UL;
return RT_ERROR_NONE;
}

rtError_t rtMemAllocManaged(void **ptr, uint64_t size, uint32_t flag) { return RT_ERROR_NONE; }

rtError_t rtMemFreeManaged(void *ptr) { return RT_ERROR_NONE; }


Loading…
Cancel
Save