-
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
Add DPADDLE_WITH_CUDA for GCC #35448
Conversation
Thanks for your contribution! |
@@ -433,6 +433,9 @@ def unix_custom_single_compiler(obj, src, ext, cc_args, extra_postargs, | |||
# See https://stackoverflow.com/questions/34571583/understanding-gcc-5s-glibcxx-use-cxx11-abi-or-the-new-abi | |||
add_compile_flag(['-D_GLIBCXX_USE_CXX11_ABI=1'], cflags) | |||
|
|||
if not is_cuda_file(src): |
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.
- windows需要加判断吗
- 如果用户仅编译cc文件,也会添加这个宏吗
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.
windows也添加了。这里只会对Extension中联合编译了 .cu 文件时,才会对编译.cc文件额外添加PADDLE_WITH_CUDA
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
* Add DPADDLE_WITH_CUDA for GCC * polish code
PR types
Others
PR changes
Others
Describe
Add DPADDLE_WITH_CUDA for GCC