Skip to content

Commit bf589f3

Browse files
authored
[CRT]Cleanup unused macros in crt_config.h.template (#14125)
This PR removes old macros in crt_config.h.template.
1 parent 77df6e8 commit bf589f3

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

cmake/utils/CRTConfig.cmake

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ function(generate_crt_config platform output_path)
2525
set(TVM_CRT_MAX_STRLEN_DLTYPE 10)
2626
set(TVM_CRT_MAX_STRLEN_FUNCTION_NAME 120)
2727
set(TVM_CRT_MAX_STRLEN_PARAM_NAME 80)
28-
set(TVM_CRT_MAX_FUNCTION_NAME_LENGTH_BYTES 30)
29-
set(TVM_CRT_PAGE_BITS 10)
30-
set(TVM_CRT_MAX_PAGES 300)
3128

3229
if("${platform}" STREQUAL "zephyr")
3330
set(TVM_CRT_MAX_PACKET_SIZE_BYTES 512)

src/runtime/crt/crt_config.h.template

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,7 @@
5454
/*! Maximum supported string length in parameter names */
5555
#define TVM_CRT_MAX_STRLEN_PARAM_NAME ${TVM_CRT_MAX_STRLEN_PARAM_NAME}
5656

57-
/*! Maximum length of a PackedFunc function name. */
58-
#define TVM_CRT_MAX_FUNCTION_NAME_LENGTH_BYTES ${TVM_CRT_MAX_FUNCTION_NAME_LENGTH_BYTES}
59-
6057
/*! Enable checks to enforce the stack allocator with a FIFO ordering. Off by default */
6158
// #define TVM_CRT_STACK_ALLOCATOR_ENABLE_FIFO_CHECK
6259

63-
/*! Log2 of the page size (bytes) for a virtual memory page. */
64-
#define TVM_CRT_PAGE_BITS ${TVM_CRT_PAGE_BITS}
65-
66-
/*! Number of pages on device. */
67-
#define TVM_CRT_MAX_PAGES ${TVM_CRT_MAX_PAGES}
68-
6960
#endif // TVM_RUNTIME_CRT_CRT_CONFIG_H_

0 commit comments

Comments
 (0)