Home
last modified time | relevance | path

Searched refs:syncFenceFd (Results 1 – 3 of 3) sorted by relevance

/frameworks/ml/nn/runtime/
DNeuralNetworks.cpp1479 int ANeuralNetworksEvent_createFromSyncFenceFd(int syncFenceFd, ANeuralNetworksEvent** event) { in ANeuralNetworksEvent_createFromSyncFenceFd() argument
1484 if (syncFenceFd <= 0) { in ANeuralNetworksEvent_createFromSyncFenceFd()
1486 << syncFenceFd; in ANeuralNetworksEvent_createFromSyncFenceFd()
1490 std::unique_ptr<SyncFenceEvent> e = std::make_unique<SyncFenceEvent>(syncFenceFd, nullptr); in ANeuralNetworksEvent_createFromSyncFenceFd()
1495 int ANeuralNetworksEvent_getSyncFenceFd(const ANeuralNetworksEvent* event, int* syncFenceFd) { in ANeuralNetworksEvent_getSyncFenceFd() argument
1496 if (syncFenceFd == nullptr) { in ANeuralNetworksEvent_getSyncFenceFd()
1500 *syncFenceFd = -1; in ANeuralNetworksEvent_getSyncFenceFd()
1507 *syncFenceFd = e->getSyncFenceFd(/*shouldDup*/ true); in ANeuralNetworksEvent_getSyncFenceFd()
1508 if (*syncFenceFd <= 0) { in ANeuralNetworksEvent_getSyncFenceFd()
1510 *syncFenceFd = -1; in ANeuralNetworksEvent_getSyncFenceFd()
[all …]
DManager.cpp514 int syncFenceFd = -1; in executeFenced() local
516 syncFenceFd = dup(syncFence.getNativeHandle()->data[0]); in executeFenced()
517 if (syncFenceFd < 0) { in executeFenced()
526 if (syncFenceFd > 0) { in executeFenced()
527 auto r = syncWait(syncFenceFd, -1); in executeFenced()
529 LOG(ERROR) << "syncWait failed, fd: " << syncFenceFd; in executeFenced()
530 return {ANEURALNETWORKS_OP_FAILED, syncFenceFd, nullptr, timing}; in executeFenced()
544 return {ANEURALNETWORKS_NO_ERROR, syncFenceFd, executeFencedCallback, timing}; in executeFenced()
/frameworks/ml/nn/driver/sample/
DSampleDriver.cpp673 int syncFenceFd = fenceHandle.getNativeHandle()->data[0]; in executeFenced() local
674 if (syncWait(syncFenceFd, -1) != FenceState::SIGNALED) { in executeFenced()