Skip to content

Conversation

zlsh80826
Copy link
Collaborator

@zlsh80826 zlsh80826 commented Apr 26, 2022

PR types

Others

PR changes

Others

Describe

修改 CMake 腳本使其支持 Linux 上的 Ninja 編譯

  • 取代原先 $(nproc) 的用法, 改為透過 CMake ProcessorCount 取得機器上核心數, 並用 NPROC 變數紀錄使用, 以避開 Ninja 不支持 $(var) 語法的問題
  • 移除 gflagsExternalProjectAdd 中利用 $(MAKE) 顯式調用 BUILD_COMMAND, INSTALL_COMMAND 的用法。 ExternalProjectAdd 預設會用 cmake --build . 來編譯 external project
  • 顯式指定 rocksdbBYPRODUCTS, 說明可參考這裡
  • 利用 add_custom_targetps.pb.h, ps.pb.cc 新增 target, 並且補齊 afs_wrapper 對於 ps.pb.h依賴, 因為 afs_wrapper.cc 會 include ps.pb.h

@paddle-bot-old
Copy link

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@paddle-bot-old paddle-bot-old bot added contributor External developers status: proposed labels Apr 26, 2022
@zlsh80826 zlsh80826 changed the title [WIP] Revise CMake scripts for ninja-build Revise CMake scripts for ninja-build Apr 26, 2022
@zlsh80826 zlsh80826 changed the title Revise CMake scripts for ninja-build Revise CMake scripts for Linux ninja-build Apr 27, 2022
@zlsh80826 zlsh80826 changed the title Revise CMake scripts for Linux ninja-build Revise CMake scripts to support ninja on Linux May 2, 2022
@paddle-bot-old
Copy link

paddle-bot-old bot commented May 4, 2022

Sorry to inform you that 8723e9e's CIs have passed for more than 7 days. To prevent PR conflicts, you need to re-run all CIs manually.

@zlsh80826 zlsh80826 force-pushed the zlsh80826-ninja-build branch from 8723e9e to 1c3ec6f Compare May 14, 2022 07:45
@zlsh80826 zlsh80826 force-pushed the zlsh80826-ninja-build branch from 2f94bb4 to 4ea407c Compare May 16, 2022 08:34
@gglin001
Copy link
Contributor

hi, any update for this PR? seems it does not work for current develop branch

@luotao1
Copy link
Contributor

luotao1 commented Aug 1, 2022

Since #44210 is merged, could we close this PR? @zlsh80826

@luotao1 luotao1 self-assigned this Aug 8, 2022
@paddle-bot-old paddle-bot-old bot removed the contributor External developers label Oct 17, 2022
@zlsh80826
Copy link
Collaborator Author

Since #44210 is merged, close this PR.

@paddle-bot
Copy link

paddle-bot bot commented Nov 22, 2022

很抱歉,经过我们的反复讨论,你的PR暂未达到合入标准,请阅读飞桨原生算子开发规范,你可以重新提交新的PR,我们先将此PR关闭,感谢你的贡献。
Sorry to inform you that through our discussion, your PR fails to meet the merging standard (Reference: Paddle Custom Operator Design Doc). You can also submit an new one. Thank you.

@zlsh80826 zlsh80826 mentioned this pull request Dec 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants