You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2022/11/11 04:57:49 UTC

[GitHub] [tvm] junrushao commented on a diff in pull request #13307: [RUNTIME][ALIGNMENT] Configurable kAllocAlignment if needed

junrushao commented on code in PR #13307:
URL: https://github.com/apache/tvm/pull/13307#discussion_r1019833118


##########
CMakeLists.txt:
##########
@@ -463,6 +463,11 @@ if(USE_PIPELINE_EXECUTOR)
   list(APPEND RUNTIME_SRCS ${RUNTIME_PIPELINE_SRCS})
 endif(USE_PIPELINE_EXECUTOR)
 
+if(USE_KALLOC_ALIGNMENT)
+  message(STATUS "Build Alloc alignment set to ${USE_KALLOC_ALIGNMENT}")
+  add_definitions(-DKALLOC_ALIGNMENT=${USE_KALLOC_ALIGNMENT})

Review Comment:
   How about prefix the. macro with `TVM_`?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org