Skip to content

Conversation

@Aurelius84
Copy link
Contributor

@Aurelius84 Aurelius84 commented Aug 27, 2021

PR types

Others

PR changes

Others

Describe

Polish DeviceEvent interface and Remove #ifdef in InterpreterCore

What's New?

  • 优化了DeviceEvent的构造方式,支持Place单参数构造,支持额外的flag参数控制CUDA/HIP event行为
  • 优化header管理机制,新增device_event.h头文件,应用模块仅需 #include 此文件即可
  • 移除了interpretercore.cc中的 #indef PADDLE_WITH_CUDA分支宏,实现应用层对底层设备的屏蔽
  • 新增了 CPUDeviceEvent 类和接口

@paddle-bot-old
Copy link

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

Copy link
Contributor

@wanghuancoder wanghuancoder left a comment

Choose a reason for hiding this comment

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

LGTM

@Aurelius84 Aurelius84 merged commit 48bf7cb into PaddlePaddle:develop Aug 27, 2021
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