Skip to content
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

[CRT]Cleanup unused macros in crt_config.h.template #14125

Merged
merged 1 commit into from
Feb 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions cmake/utils/CRTConfig.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ function(generate_crt_config platform output_path)
set(TVM_CRT_MAX_STRLEN_DLTYPE 10)
set(TVM_CRT_MAX_STRLEN_FUNCTION_NAME 120)
set(TVM_CRT_MAX_STRLEN_PARAM_NAME 80)
set(TVM_CRT_MAX_FUNCTION_NAME_LENGTH_BYTES 30)
set(TVM_CRT_PAGE_BITS 10)
set(TVM_CRT_MAX_PAGES 300)

if("${platform}" STREQUAL "zephyr")
set(TVM_CRT_MAX_PACKET_SIZE_BYTES 512)
Expand Down
9 changes: 0 additions & 9 deletions src/runtime/crt/crt_config.h.template
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,7 @@
/*! Maximum supported string length in parameter names */
#define TVM_CRT_MAX_STRLEN_PARAM_NAME ${TVM_CRT_MAX_STRLEN_PARAM_NAME}

/*! Maximum length of a PackedFunc function name. */
#define TVM_CRT_MAX_FUNCTION_NAME_LENGTH_BYTES ${TVM_CRT_MAX_FUNCTION_NAME_LENGTH_BYTES}

/*! Enable checks to enforce the stack allocator with a FIFO ordering. Off by default */
// #define TVM_CRT_STACK_ALLOCATOR_ENABLE_FIFO_CHECK

/*! Log2 of the page size (bytes) for a virtual memory page. */
#define TVM_CRT_PAGE_BITS ${TVM_CRT_PAGE_BITS}

/*! Number of pages on device. */
#define TVM_CRT_MAX_PAGES ${TVM_CRT_MAX_PAGES}

#endif // TVM_RUNTIME_CRT_CRT_CONFIG_H_