Skip to content
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

[PTEN] Update gpu_context. #39359

Merged
merged 4 commits into from
Feb 8, 2022
Merged

Conversation

jiweibo
Copy link
Contributor

@jiweibo jiweibo commented Feb 7, 2022

PR types

Others

PR changes

Others

Describe

update gpu_context cudnn_workspace_handle interface.

patch for gpu_context #39305

TODO:
cudnn_workspace_handle接口,暂时为了保证向后兼容,接口返回类型未修改,未来验证性能正确性问题后,改为返回指针。

@paddle-bot-old
Copy link

paddle-bot-old bot commented Feb 7, 2022

Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@@ -10,7 +10,7 @@ add_subdirectory(funcs)
set_property(GLOBAL PROPERTY PTEN_KERNELS "")

set(COMMON_KERNEL_DEPS dense_tensor sparse_coo_tensor sparse_csr_tensor kernel_context kernel_factory arg_map_context convert_utils lod_utils)
set(COMMON_KERNEL_DEPS ${COMMON_KERNEL_DEPS} eigen_function blas math_function)
set(COMMON_KERNEL_DEPS ${COMMON_KERNEL_DEPS} eigen_function blas math_function im2col vol2col)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这两个依赖应该是有极少数kernel需要吧,建议添加具体kernel时,再增加依赖,通过kernel_library(***_kernel DEPS ...),先不添加为公共依赖

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@phlrain phlrain self-requested a review February 8, 2022 07:39
@jiweibo jiweibo merged commit 24103cb into PaddlePaddle:develop Feb 8, 2022
@jiweibo jiweibo deleted the gpu_context_2 branch February 10, 2022 02:23
@jiweibo jiweibo mentioned this pull request Feb 10, 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.

3 participants