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

[API][OPENCL] add opencl tune api for user. test=develop #4016

Merged
merged 1 commit into from
Jul 30, 2020

Conversation

ysh329
Copy link
Contributor

@ysh329 ysh329 commented Jul 29, 2020

状态:等待review

主要内容

  1. Config新增API set_opencl_tune,可以让用户是否选择打开或关闭auto tune。虽然性能更好,但第一次跑会tune花较长时间;
  2. demo中增加如何使用的代码,前提是gpu;
  3. 默认关闭。因为第一次跑会tune花较长时间。

PS:对于比较弱的机器,还有只跑一次推理的场景,就可能不太适合开。所以交给用户选择,后续关于高通的kernel tune策略还需要进一步分析。

Copy link
Collaborator

@xiebaiyuan xiebaiyuan left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@Superjomn Superjomn left a comment

Choose a reason for hiding this comment

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

LGTM

@ysh329 ysh329 merged commit 1d0f70a into PaddlePaddle:develop Jul 30, 2020
@ysh329 ysh329 deleted the add-api-fortune branch July 30, 2020 03:01
@ysh329 ysh329 added the OpenCL label Aug 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants