• H
    New Paddle-CINN Compile PR (#36584) · ab732884
    Huihuang Zheng 提交于
    This PR added some changes to match the CINN change for compilation. It also tried to fix JiangCheng's Problem in PR: https://github.com/PaddlePaddle/Paddle/pull/36100
    
    These changes include:
    1. Set `CINN_GIT_TAG` to a newer tag
    2. CINN now just `make cinnapi -j`
    3. We have to add `-DPY_VERSION=${PY_VERSION} -DWITH_TESTING=ON` to CINN cmake args
    4. For CINN's third party dependencies, we could just include headers without target_link_libraries
    5. Moved `cinn.cmake` from `paddle/cmake` to `paddle/cmake/external` to match old style. External folder contains `lite`, which is the same level of `cinn`
    6. CINN added `-DNAMESPACE=cinn_gflags` in `gflags.cmake` to have different gflag namespaces between CINN and Paddle. It solved re-define problem.
    7. Change namespace of `::google::` in gflags to `::GFLAGS_NAMESPACE`
    ab732884
test_LeViT.cc 7.1 KB