1. 23 10月, 2021 1 次提交
    • 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
  2. 22 9月, 2021 1 次提交
    • P
      support ernie-int8 test and prune op attribute test (#35890) · e8789c11
      Peihan 提交于
      * support ernie-int8 test and prune op attribute test
      
      * remove using and use namespace
      
      * remove macro and use shell instead
      
      * Revert "remove macro and use shell instead"
      
      This reverts commit 615964b149d7de7825b341936b42be22a4bc0091.
      
      * fix grammar error
      
      * fix shell error
      e8789c11