-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Restructure device context #4593
Restructure device context #4593
Conversation
cmake/configure.cmake
Outdated
add_definitions(-DPADDLE_ONLY_CPU) | ||
add_definitions(-DHPPL_STUB_FUNC) | ||
|
||
list(APPEND CMAKE_CXX_SOURCE_FILE_EXTENSIONS cu) | ||
else() | ||
add_definitions(-DPADDLE_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.
We now have -DPADDLE_WITH_GPU
already, please merge the latest develop branch first.
|
||
virtual void Wait() const {} | ||
}; | ||
|
||
class CPUDeviceContext : public DeviceContext { |
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.
Since we use boost::variant instead of instead of inheritance, we should remove derivation.
Since you haven't replied for a long time, we have closed this issue/pr. |
Fixes #4581