Home
last modified time | relevance | path

Searched refs:syncFd (Results 1 – 5 of 5) sorted by relevance

/packages/modules/NeuralNetworks/runtime/test/
DTestGpuNnapi.cpp748 int syncFd = -1; in runInternal() local
755 ASSERT_EQ(mPfnVkGetFenceFdKHR(mDevice, &fenceGetFdInfo, &syncFd), VK_SUCCESS); in runInternal()
756 *outSyncFd = base::unique_fd(syncFd); in runInternal()
902 int syncFd = -1; in runInternal() local
903 finished.getSyncFenceFd(&syncFd); in runInternal()
904 if (syncFd == -1) { in runInternal()
907 *outSyncFd = base::unique_fd(syncFd); in runInternal()
968 void checkResults(base::unique_fd syncFd) { in checkResults() argument
975 syncFd.release(), /*rect=*/nullptr, &data), in checkResults()
DTestValidation.cpp2269 int syncFd = -100; in TEST_F() local
2270 EXPECT_EQ(ANeuralNetworksEvent_getSyncFenceFd(nullptr, &syncFd), in TEST_F()
2272 EXPECT_EQ(syncFd, -1); in TEST_F()
2293 int syncFd = -100; in TEST_F() local
2294 EXPECT_EQ(ANeuralNetworksEvent_getSyncFenceFd(event, &syncFd), ANEURALNETWORKS_BAD_DATA); in TEST_F()
2295 EXPECT_EQ(syncFd, -1); in TEST_F()
2325 int syncFd = -100; in TEST_F() local
2326 int getSyncFdResult = ANeuralNetworksEvent_getSyncFenceFd(event1, &syncFd); in TEST_F()
2328 EXPECT_GE(syncFd, 0); in TEST_F()
2329 close(syncFd); in TEST_F()
[all …]
/packages/modules/NeuralNetworks/runtime/
DExecutionBuilder.cpp834 for (int syncFd : waitFor) { in waitForSyncFences() local
835 if (syncFd > 0) { in waitForSyncFences()
836 auto r = syncWait(syncFd, -1); in waitForSyncFences()
838 VLOG(EXECUTION) << "syncWait failed, fd: " << syncFd; in waitForSyncFences()
856 auto [n, syncFd, callback] = in computeFencedInternal()
860 return {ANEURALNETWORKS_NO_ERROR, syncFd, callback}; in computeFencedInternal()
936 auto [stepN, syncFd, callback] = in computeFencedInternal()
940 syncFence.reset(syncFd); in computeFencedInternal()
943 if (syncFd >= 0) { in computeFencedInternal()
944 waitForFds = {syncFd}; in computeFencedInternal()
DManager.cpp1052 for (int syncFd : waitFor) { in executeFenced() local
1053 if (syncFd > 0) { in executeFenced()
1054 auto r = syncWait(syncFd, -1); in executeFenced()
1056 LOG(ERROR) << "sync wait failed, fd: " << syncFd; in executeFenced()
1196 for (int syncFd : waitFor) { in computeFenced() local
1197 if (syncFd > 0) { in computeFenced()
1198 auto r = syncWait(syncFd, -1); in computeFenced()
1200 LOG(ERROR) << "sync wait failed, fd: " << syncFd; in computeFenced()
/packages/modules/NeuralNetworks/runtime/include/
DNeuralNetworksWrapper.h379 Event(const NnApiSupportLibrary* nnapi, int syncFd) : mNnApi(nnapi) { argument
382 Event(int syncFd) {
384 mValid = NNAPI_CALL(ANeuralNetworksEvent_createFromSyncFenceFd(syncFd, &mEvent)) ==