Skip to content
Permalink
Browse files

Fix the issue where we don't propagate onnxifi run errors (#3755)

Summary:
Pull Request resolved: #3755

Previously we blindly return success when wait for the signal.

Reviewed By: jackm321

Differential Revision: D18392957

fbshipit-source-id: 05e9e2be37b0f157fcebedb53b60e0ec65d54fac
  • Loading branch information...
yinghai authored and facebook-github-bot committed Nov 8, 2019
1 parent 07c621c commit 01e89efedf19b88fdb781f40f52505346ccf308b
Showing with 1 addition and 3 deletions.
  1. +1 −3 lib/Onnxifi/onnxifiGlow.cpp
@@ -320,9 +320,7 @@ GLOW_ONNXIFI_LIBRARY_FUNCTION_WRAPPER(onnxWaitEvent)(onnxEvent event) {
return ONNXIFI_STATUS_INVALID_EVENT;
}

glowEvent->wait();

return ONNXIFI_STATUS_SUCCESS;
return glowEvent->wait();
}

/// Wait until an ONNXIFI \p event is signalled or until \p timeoutMs

0 comments on commit 01e89ef

Please sign in to comment.
You can’t perform that action at this time.