Searched refs:syncFd (Results 1 – 5 of 5) sorted by relevance
/packages/modules/NeuralNetworks/runtime/test/ |
D | TestGpuNnapi.cpp | 757 int syncFd = -1; in runInternal() local 764 ASSERT_EQ(mPfnVkGetFenceFdKHR(mDevice, &fenceGetFdInfo, &syncFd), VK_SUCCESS); in runInternal() 765 *outSyncFd = base::unique_fd(syncFd); in runInternal() 911 int syncFd = -1; in runInternal() local 912 finished.getSyncFenceFd(&syncFd); in runInternal() 913 if (syncFd == -1) { in runInternal() 916 *outSyncFd = base::unique_fd(syncFd); in runInternal() 978 void checkResults(base::unique_fd syncFd, double tolerance) { in checkResults() argument 985 syncFd.release(), /*rect=*/nullptr, &data), in checkResults()
|
D | TestValidation.cpp | 2331 int syncFd = -100; in TEST_F() local 2332 EXPECT_EQ(ANeuralNetworksEvent_getSyncFenceFd(nullptr, &syncFd), in TEST_F() 2334 EXPECT_EQ(syncFd, -1); in TEST_F() 2355 int syncFd = -100; in TEST_F() local 2356 EXPECT_EQ(ANeuralNetworksEvent_getSyncFenceFd(event, &syncFd), ANEURALNETWORKS_BAD_DATA); in TEST_F() 2357 EXPECT_EQ(syncFd, -1); in TEST_F() 2387 int syncFd = -100; in TEST_F() local 2388 int getSyncFdResult = ANeuralNetworksEvent_getSyncFenceFd(event1, &syncFd); in TEST_F() 2390 EXPECT_GE(syncFd, 0); in TEST_F() 2391 close(syncFd); in TEST_F() [all …]
|
/packages/modules/NeuralNetworks/runtime/ |
D | ExecutionBuilder.cpp | 873 for (int syncFd : waitFor) { in waitForSyncFences() local 874 if (syncFd > 0) { in waitForSyncFences() 875 auto r = syncWait(syncFd, -1); in waitForSyncFences() 877 VLOG(EXECUTION) << "syncWait failed, fd: " << syncFd; in waitForSyncFences() 895 auto [n, syncFd, callback] = in computeFencedInternal() 899 return {ANEURALNETWORKS_NO_ERROR, syncFd, callback}; in computeFencedInternal() 975 auto [stepN, syncFd, callback] = in computeFencedInternal() 979 syncFence.reset(syncFd); in computeFencedInternal() 982 if (syncFd >= 0) { in computeFencedInternal() 983 waitForFds = {syncFd}; in computeFencedInternal()
|
D | Manager.cpp | 1102 for (int syncFd : waitFor) { in executeFenced() local 1103 if (syncFd > 0) { in executeFenced() 1104 auto r = syncWait(syncFd, -1); in executeFenced() 1106 LOG(ERROR) << "sync wait failed, fd: " << syncFd; in executeFenced() 1248 for (int syncFd : waitFor) { in computeFenced() local 1249 if (syncFd > 0) { in computeFenced() 1250 auto r = syncWait(syncFd, -1); in computeFenced() 1252 LOG(ERROR) << "sync wait failed, fd: " << syncFd; in computeFenced()
|
/packages/modules/NeuralNetworks/runtime/include/ |
D | NeuralNetworksWrapper.h | 392 Event(const NnApiSupportLibrary* nnapi, int syncFd) : mNnApi(nnapi) { argument 395 Event(int syncFd) { 397 mValid = NNAPI_CALL(ANeuralNetworksEvent_createFromSyncFenceFd(syncFd, &mEvent)) ==
|