-
Notifications
You must be signed in to change notification settings - Fork 5.9k
[CustomOp] Support to specific extra_cflags and exctra_cuda_flags independently #31059
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Thanks for your contribution! |
…into custom_op_flags
chenwhql
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, can polish details in next PR
| name(str): generated shared library file name. | ||
| sources(list[str]): custom op source files name with .cc/.cu suffix. | ||
| extra_cflag(list[str]): additional flags used to compile CPP files. By default | ||
| extra_cxx_cflags(list[str]): additional flags used to compile CPP files. By default |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extra_cxx_cflags(list[str], optional), others same
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我在英文文档的PR里会统一修改
| extra_include_paths=paddle_includes, # add for Coverage CI | ||
| extra_cflags=extra_compile_args, # add for Coverage CI | ||
| extra_cxx_cflags=extra_compile_args, | ||
| extra_cuda_cflags=extra_compile_args, # add for Coverage CI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only cc test may not need extra_cuda_cflags
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我在英文文档的PR里会统一修改
| extra_include_paths=paddle_includes, # add for Coverage CI | ||
| extra_cflags=extra_compile_args, # add for Coverage CI | ||
| extra_cxx_cflags=extra_compile_args, # add for Coverage CI | ||
| extra_cuda_cflags=extra_compile_args, # add for Coverage CI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我在英文文档的PR里会统一修改
zhwesky2010
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…ependently (PaddlePaddle#31059) * split cxx/nvcc compile flags * enhance input argument check * rename extra_cflags into extrac_cxx_flags * add name checking in setup * fix test_dispatch failed * fix word typo and rm usless import statement * refine import statement * fix unittest failed * fix cuda flags error
PR types
New features
PR changes
APIs
Describe
What's New?
extra_cflagsandexctra_cuda_flagsindependently.nameargument insetupAPI and not allow using"module"as suffix inname.