Home
last modified time | relevance | path

Searched refs:syncFence (Results 1 – 10 of 10) sorted by relevance

/packages/modules/NeuralNetworks/common/types/src/
DTypes.cpp130 Result<SyncFence> SyncFence::create(SharedHandle syncFence) { in create() argument
131 if (!validate(syncFence).ok()) { in create()
134 return SyncFence(std::move(syncFence)); in create()
137 SyncFence::SyncFence(SharedHandle syncFence) : mSyncFence(std::move(syncFence)) {} in SyncFence() argument
DValidation.cpp1133 Result<Version> validateSyncFence(const SyncFence& syncFence) { in validateSyncFence() argument
1135 if (!syncFence.hasFd()) { in validateSyncFence()
1138 NN_RET_CHECK_GE(syncFence.getFd(), 0); in validateSyncFence()
1910 Result<Version> validate(const SyncFence& syncFence) { in validate() argument
1911 return validateSyncFence(syncFence); in validate()
/packages/modules/NeuralNetworks/driver/sample/
DCanonicalPreparedModel.cpp208 [](const SyncFence& syncFence) { return !syncFence.getSharedHandle(); })) { in executeFenced() argument
217 for (const auto& syncFence : waitFor) { in executeFenced() local
218 if (syncFence.syncWait({}) != SyncFence::FenceState::SIGNALED) { in executeFenced()
/packages/modules/NeuralNetworks/runtime/
DManager.cpp660 SyncFence syncFence = SyncFence::createAsSignaled(); in executeFenced() local
673 std::tie(syncFence, executeFencedInfoCallback) = std::move(result).value(); in executeFenced()
699 if (syncFence.hasFd()) { in executeFenced()
700 syncFenceFd = dup(syncFence.getFd()); in executeFenced()
806 SyncFence syncFence = SyncFence::createAsSignaled(); in computeFenced() local
817 std::tie(syncFence, executeFencedInfoCallback) = std::move(result).value(); in computeFenced()
841 if (syncFence.hasFd()) { in computeFenced()
842 syncFenceFd = dup(syncFence.getFd()); in computeFenced()
DExecutionBuilder.cpp948 base::unique_fd syncFence; in computeFencedInternal() local
957 int n = mPlan->next(controller, &executor, nullptr, nullptr, syncFence.get()); in computeFencedInternal()
971 return {ANEURALNETWORKS_NO_ERROR, syncFence.release(), executeFencedInfoCallback}; in computeFencedInternal()
979 syncFence.reset(syncFd); in computeFencedInternal()
1012 uint64_t timeoutDurationAfterFence, int* syncFence) { in computeFenced() argument
1013 CHECK(syncFence != nullptr); in computeFenced()
1039 std::tie(result, *syncFence, mFencedExecutionCallback) = in computeFenced()
/packages/modules/NeuralNetworks/shim_and_sl/
DShimPreparedModel.cpp292 int syncFence = -1; in executeFencedInternal() local
293 fencedExecutionResult->syncFence = ndk::ScopedFileDescriptor( in executeFencedInternal()
294 (e.getSyncFenceFd(&syncFence) == Result::NO_ERROR) ? syncFence : -1); in executeFencedInternal()
/packages/modules/NeuralNetworks/common/types/include/nnapi/
DTypes.h955 static Result<SyncFence> create(SharedHandle syncFence);
976 explicit SyncFence(SharedHandle syncFence);
DValidation.h67 Result<Version> validate(const SyncFence& syncFence);
/packages/modules/NeuralNetworks/tools/api/
DTypes.t214 static Result<SyncFence> create(SharedHandle syncFence);
235 explicit SyncFence(SharedHandle syncFence);
/packages/modules/NeuralNetworks/driver/sample_aidl/
DSampleDriverAidl.cpp600 executionResult->syncFence = ndk::ScopedFileDescriptor(); in executeFenced()