-
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
[ROCM] add custom op support, test=develop #36771
Conversation
Thanks for your contribution! |
@@ -401,15 +401,18 @@ def unix_custom_single_compiler(obj, src, ext, cc_args, extra_postargs, | |||
# with dict type is dangerous. | |||
src = os.path.abspath(src) | |||
cflags = copy.deepcopy(extra_postargs) | |||
print("0------------ cflags=", 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.
这个print提示是确定要保留的吗
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.
忘记删 debug code了,已删,谢谢!
try: | ||
original_compiler = self.compiler.compiler_so | ||
# nvcc compile CUDA source | ||
print("original_compiler=", original_compiler) |
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.
同上
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.
忘记删 debug code了,已删,谢谢!
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
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
* [ROCM] add custom op support, test=develop * remove debug codes, test=develop
PR types
New features
PR changes
Others
Describe
Revert PR #34050 add custom op support for ROCM.
Verification steps:
setup_cuda.py
https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/07_new_op/new_custom_op_cn.html
python setup_cuda.py install
Also unit test result on ROCM here: