-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[microTVM] additional refactoring for enabling USE_MICRO in more builds #13909
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
67d948b
b840717
46a18ad
f46b47a
d5d5184
5224bda
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -112,7 +112,7 @@ int TVMDeviceAllocDataSpaceWithScope(DLDevice dev, int ndim, const int64_t* shap | |
|
|
||
| int TVMDeviceFreeDataSpace(DLDevice dev, void* ptr) { return TVMPlatformMemoryFree(ptr, dev); } | ||
|
|
||
| static bool IsContiguous(const DLTensor* arr) { | ||
| TVM_ATTRIBUTE_UNUSED static bool IsContiguous(const DLTensor* arr) { | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you clarify why this was needed? was it for eliminating the warning?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| if (arr->strides == NULL) return true; | ||
| int64_t expected_stride = 1; | ||
| for (int32_t i = arr->ndim; i != 0; --i) { | ||
|
|
@@ -632,12 +632,12 @@ release_and_return : { | |
| } | ||
|
|
||
| // Default implementation, overridden by the platform runtime. | ||
| __attribute__((weak)) tvm_crt_error_t TVMPlatformGenerateRandom(uint8_t* buffer, size_t num_bytes) { | ||
| TVM_WEAK tvm_crt_error_t TVMPlatformGenerateRandom(uint8_t* buffer, size_t num_bytes) { | ||
| return kTvmErrorFunctionCallNotImplemented; | ||
| } | ||
|
|
||
| // Default implementation, overridden by the platform runtime. | ||
| __attribute__((weak)) tvm_crt_error_t TVMPlatformBeforeMeasurement() { return kTvmErrorNoError; } | ||
| TVM_WEAK tvm_crt_error_t TVMPlatformBeforeMeasurement() { return kTvmErrorNoError; } | ||
|
|
||
| // Default implementation, overridden by the platform runtime. | ||
| __attribute__((weak)) tvm_crt_error_t TVMPlatformAfterMeasurement() { return kTvmErrorNoError; } | ||
| TVM_WEAK tvm_crt_error_t TVMPlatformAfterMeasurement() { return kTvmErrorNoError; } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why the
SYSTEMhere?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it needs a header in that directory to build those files that are in TVM_CRT_SOURCES, it's the same pattern used in other .cmake and CmakeLists.txt