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 2021/12/08 07:40:18 UTC

[GitHub] [tvm] jhlee525 opened a new pull request #9677: fix default config path

jhlee525 opened a new pull request #9677:
URL: https://github.com/apache/tvm/pull/9677


   Currently, the logic for finding `config.cmake` in `CMakeLists.txt` looks like this
   
   ```
   if(EXISTS ${CMAKE_CURRENT_BINARY_DIR}/config.cmake)
     include(${CMAKE_CURRENT_BINARY_DIR}/config.cmake)
   else()
     if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/config.cmake)
       include(${CMAKE_CURRENT_SOURCE_DIR}/config.cmake)
     endif()
   endif()
   ```
   
   First, it searches from binary dir(usually ./build), then it goes to the source directory(./) if it does not exist. However, there is no config.cmake in the root directory, so I believe it does nothing.
   
   We can choose from various policies. For example, raising an error if not exist or ignoring to use `config.cmake`. I thought using the "sample" `cmake/config.cmake` is the most reasonable solution, I changed `CMakeLists.txt` to find from `./cmake` directory.
   
   It's my first time to commit in here, please let me know if there are any issues! 😄 


-- 
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



[GitHub] [tvm] tqchen commented on pull request #9677: fix default config path

Posted by GitBox <gi...@apache.org>.
tqchen commented on pull request #9677:
URL: https://github.com/apache/tvm/pull/9677#issuecomment-988914473


   Thanks @jhlee525 this is the intended behavior that we explicitly ask the user to copy the config.cmake to root or build before edit and update. The idea is that we do not want config to polute the git history. It would be good to add comments to explain this behavior


-- 
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