We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7039c06 commit 054f8e7Copy full SHA for 054f8e7
paddle/fluid/platform/device_context.cc
@@ -254,9 +254,8 @@ NPUDeviceContext::~NPUDeviceContext() {
254
255
void NPUDeviceContext::Wait() const {
256
platform::RecordEvent record_event("NPUDeviceContext/wait");
257
- NPUDeviceGuard guard(place_.device);
258
VLOG(4) << "NPU context Wait";
259
- PADDLE_ENFORCE_NPU_SUCCESS(aclrtSynchronizeDevice());
+ stream_->Wait();
260
}
261
262
aclrtStream NPUDeviceContext::stream() const { return stream_->raw_stream(); }
0 commit comments