Searched refs:syncFence (Results 1 – 10 of 10) sorted by relevance
/packages/modules/NeuralNetworks/common/types/src/ |
D | Types.cpp | 130 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
|
D | Validation.cpp | 1133 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/ |
D | CanonicalPreparedModel.cpp | 208 [](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/ |
D | Manager.cpp | 660 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()
|
D | ExecutionBuilder.cpp | 948 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/ |
D | ShimPreparedModel.cpp | 292 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/ |
D | Types.h | 955 static Result<SyncFence> create(SharedHandle syncFence); 976 explicit SyncFence(SharedHandle syncFence);
|
D | Validation.h | 67 Result<Version> validate(const SyncFence& syncFence);
|
/packages/modules/NeuralNetworks/tools/api/ |
D | Types.t | 214 static Result<SyncFence> create(SharedHandle syncFence); 235 explicit SyncFence(SharedHandle syncFence);
|
/packages/modules/NeuralNetworks/driver/sample_aidl/ |
D | SampleDriverAidl.cpp | 600 executionResult->syncFence = ndk::ScopedFileDescriptor(); in executeFenced()
|