-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
[CustomOp] Support to specific extra_cflags and exctra_cuda_flags independently #31059
Conversation
Thanks for your contribution! |
…into custom_op_flags
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
@@ -561,14 +555,14 @@ def load(name, | |||
Args: | |||
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里会统一修改
@@ -30,7 +30,8 @@ | |||
name='dispatch_op', | |||
sources=['dispatch_test_op.cc'], | |||
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里会统一修改
@@ -34,7 +34,8 @@ | |||
name='multi_out_jit', | |||
sources=['multi_out_test_op.cc'], | |||
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里会统一修改
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_cflags
andexctra_cuda_flags
independently.name
argument insetup
API and not allow using"module"
as suffix inname
.