Home
last modified time | relevance | path

Searched refs:pools (Results 1 – 25 of 82) sorted by relevance

1234

/hardware/interfaces/neuralnetworks/aidl/utils/src/
DUtils.cpp116 auto pools = NN_TRY(clone(request.pools)); in clone() local
120 .pools = std::move(pools), in clone()
125 auto pools = NN_TRY(clone(model.pools)); in clone() local
130 .pools = std::move(pools), in clone()
DBurst.cpp199 memoryIdentifierTokens.reserve(requestInShared.pools.size()); in execute()
200 holds.reserve(requestInShared.pools.size()); in execute()
201 for (const auto& memoryPool : requestInShared.pools) { in execute()
212 CHECK_EQ(requestInShared.pools.size(), memoryIdentifierTokens.size()); in execute()
282 memoryIdentifierTokens.reserve(requestInShared.pools.size()); in createReusableExecution()
283 holds.reserve(requestInShared.pools.size()); in createReusableExecution()
284 for (const auto& memoryPool : requestInShared.pools) { in createReusableExecution()
295 CHECK_EQ(requestInShared.pools.size(), memoryIdentifierTokens.size()); in createReusableExecution()
/hardware/interfaces/neuralnetworks/1.1/utils/src/
DConversions.cpp123 auto pools = NN_TRY(unvalidatedConvert(model.pools)); in unvalidatedConvert() local
127 .pools = std::move(pools), in unvalidatedConvert()
242 auto pools = NN_TRY(unvalidatedConvert(model.pools)); in unvalidatedConvert() local
249 .pools = std::move(pools), in unvalidatedConvert()
/hardware/interfaces/neuralnetworks/1.0/vts/functional/
DGeneratedTestHarness.cpp94 hidl_vec<hidl_memory> pools; in createModel() local
96 hidl_vec_push_back(&pools, nn::allocateSharedMemory(constRefSize)); in createModel()
97 CHECK_NE(pools[0].size(), 0u); in createModel()
100 sp<IMemory> mappedMemory = mapMemory(pools[0]); in createModel()
121 .pools = std::move(pools)}; in createModel()
/hardware/interfaces/neuralnetworks/1.1/vts/functional/
DGeneratedTestHarness.cpp101 hidl_vec<hidl_memory> pools; in createModel() local
103 hidl_vec_push_back(&pools, nn::allocateSharedMemory(constRefSize)); in createModel()
104 CHECK_NE(pools[0].size(), 0u); in createModel()
107 sp<IMemory> mappedMemory = mapMemory(pools[0]); in createModel()
128 .pools = std::move(pools), in createModel()
/hardware/interfaces/neuralnetworks/aidl/vts/functional/
DValidateRequest.cpp139 const std::vector<int64_t> slots(request.pools.size(), -1); in validate()
195 const std::vector<int64_t> slots(request.pools.size(), -1); in validate()
266 slots.reserve(request.pools.size()); in validateBurst()
267 for (const auto& pool : request.pools) { in validateBurst()
278 for (size_t i = 0; i < request.pools.size(); ++i) { in validateBurst()
288 if (request.pools.size() > 0) { in validateBurst()
289 slots = std::vector<int64_t>(request.pools.size() - 1, -1); in validateBurst()
294 slots = std::vector<int64_t>(request.pools.size() + 1, -1); in validateBurst()
DMemoryDomainTests.cpp241 std::vector<RequestMemoryPool> createRequestMemoryPools(const Args&... pools) { in createRequestMemoryPools() argument
245 (memoryPools.push_back(utils::clone(pools).value()), ...); in createRequestMemoryPools()
985 const std::vector<int64_t> slots(request.pools.size(), -1); in executeBurst()
1019 .pools = createRequestMemoryPools(sharedMemory, badDeviceMemory1)}, in TEST_P()
1024 .pools = createRequestMemoryPools(sharedMemory, badDeviceMemory2)}, in TEST_P()
1029 .pools = createRequestMemoryPools(sharedMemory, badDeviceMemory1)}, in TEST_P()
1034 .pools = createRequestMemoryPools(sharedMemory, badDeviceMemory2)}, in TEST_P()
1056 .pools = createRequestMemoryPools(sharedMemory, deviceMemory)}, in TEST_P()
1061 .pools = createRequestMemoryPools(sharedMemory, deviceMemory)}, in TEST_P()
1087 .pools = createRequestMemoryPools(sharedMemory1, sharedMemory2, sharedMemory3, in TEST_P()
[all …]
DUtils.cpp254 std::vector<RequestMemoryPool> pools; in createRequest() local
255 pools.push_back(RequestMemoryPool::make<RequestMemoryPool::Tag::pool>( in createRequest()
257 pools.push_back(RequestMemoryPool::make<RequestMemoryPool::Tag::pool>( in createRequest()
271 return {.inputs = std::move(inputs), .outputs = std::move(outputs), .pools = std::move(pools)}; in createRequest()
/hardware/interfaces/neuralnetworks/1.0/utils/src/
DConversions.cpp316 auto pools = NN_TRY(unvalidatedConvert(model.pools)); in unvalidatedConvert() local
320 .pools = std::move(pools), in unvalidatedConvert()
336 auto memories = NN_TRY(unvalidatedConvert(request.pools)); in unvalidatedConvert()
337 std::vector<Request::MemoryPool> pools; in unvalidatedConvert() local
338 pools.reserve(memories.size()); in unvalidatedConvert()
339 std::move(memories.begin(), memories.end(), std::back_inserter(pools)); in unvalidatedConvert()
346 .pools = std::move(pools), in unvalidatedConvert()
595 auto pools = NN_TRY(unvalidatedConvert(model.pools)); in unvalidatedConvert() local
602 .pools = std::move(pools), in unvalidatedConvert()
633 auto pools = NN_TRY(unvalidatedConvert(request.pools)); in unvalidatedConvert() local
[all …]
/hardware/interfaces/neuralnetworks/1.2/vts/functional/
DValidateBurst.cpp255 keys.reserve(request.pools.size()); in validateBurstSerialization()
256 std::transform(request.pools.begin(), request.pools.end(), std::back_inserter(keys), in validateBurstSerialization()
258 const std::vector<int32_t> slots = callback->getSlots(request.pools, keys); in validateBurstSerialization()
292 std::vector<intptr_t> keys(request.pools.size()); in validateBurstFmqLength()
294 keys[i] = reinterpret_cast<intptr_t>(&request.pools[i]); in validateBurstFmqLength()
381 keys.reserve(request.pools.size()); in validateBurstSanitized()
382 std::transform(request.pools.begin(), request.pools.end(), std::back_inserter(keys), in validateBurstSanitized()
384 const std::vector<int32_t> slots = callback->getSlots(request.pools, keys); in validateBurstSanitized()
DGeneratedTestHarness.cpp134 hidl_vec<hidl_memory> pools = {}; in createModel() local
136 hidl_vec_push_back(&pools, nn::allocateSharedMemory(constRefSize)); in createModel()
137 CHECK_NE(pools[0].size(), 0u); in createModel()
140 sp<IMemory> mappedMemory = mapMemory(pools[0]); in createModel()
161 .pools = std::move(pools), in createModel()
268 std::vector<intptr_t> keys(request.pools.size()); in EvaluatePreparedModel()
270 keys[i] = reinterpret_cast<intptr_t>(&request.pools[i]); in EvaluatePreparedModel()
DValidateRequest.cpp104 std::vector<intptr_t> keys(request.pools.size()); in validate()
106 keys[i] = reinterpret_cast<intptr_t>(&request.pools[i]); in validate()
118 if (request.pools.size() > 0) { in validate()
/hardware/interfaces/neuralnetworks/1.3/vts/functional/
DValidateBurst.cpp261 keys.reserve(request.pools.size()); in validateBurstSerialization()
262 std::transform(request.pools.begin(), request.pools.end(), std::back_inserter(keys), in validateBurstSerialization()
264 const std::vector<int32_t> slots = callback->getSlots(request.pools, keys); in validateBurstSerialization()
298 std::vector<intptr_t> keys(request.pools.size()); in validateBurstFmqLength()
300 keys[i] = reinterpret_cast<intptr_t>(&request.pools[i]); in validateBurstFmqLength()
387 keys.reserve(request.pools.size()); in validateBurstSanitized()
388 std::transform(request.pools.begin(), request.pools.end(), std::back_inserter(keys), in validateBurstSanitized()
390 const std::vector<int32_t> slots = callback->getSlots(request.pools, keys); in validateBurstSanitized()
DMemoryDomainTests.cpp972 .pools = {sharedMemory, badDeviceMemory1}}, in TEST_P()
977 .pools = {sharedMemory, badDeviceMemory2}}, in TEST_P()
982 .pools = {sharedMemory, badDeviceMemory1}}, in TEST_P()
987 .pools = {sharedMemory, badDeviceMemory2}}, in TEST_P()
1009 .pools = {sharedMemory, deviceMemory}}, in TEST_P()
1014 .pools = {sharedMemory, deviceMemory}}, in TEST_P()
1040 .pools = {sharedMemory1, sharedMemory2, sharedMemory3, deviceMemory}}, in TEST_P()
1047 .pools = {sharedMemory1, sharedMemory2, sharedMemory3, deviceMemory}}, in TEST_P()
1067 .pools = {sharedMemory, deviceMemory}}, in TEST_P()
1076 .pools = {sharedMemory, deviceMemory}}, in TEST_P()
[all …]
DGeneratedTestHarness.cpp297 hidl_vec<hidl_memory> pools = {}; in createModel() local
299 hidl_vec_push_back(&pools, nn::allocateSharedMemory(constRefSize)); in createModel()
300 CHECK_NE(pools[0].size(), 0u); in createModel()
303 sp<IMemory> mappedMemory = mapMemory(pools[0]); in createModel()
315 .pools = std::move(pools), in createModel()
440 hidl_vec<Request::MemoryPool> pools(kDeviceMemoryBeginIndex + mBuffers.size()); in createRequest() local
450 pools[kInputPoolIndex].hidlMemory(mInputMemory->getHidlMemory()); in createRequest()
451 pools[kOutputPoolIndex].hidlMemory(mOutputMemory->getHidlMemory()); in createRequest()
453 pools[kDeviceMemoryBeginIndex + i].token(tokens[i]); in createRequest()
467 .inputs = std::move(inputs), .outputs = std::move(outputs), .pools = std::move(pools)}; in createRequest()
[all …]
DValidateRequest.cpp112 std::vector<intptr_t> keys(request10.pools.size()); in validate()
114 keys[i] = reinterpret_cast<intptr_t>(&request10.pools[i]); in validate()
126 if (request10.pools.size() > 0) { in validate()
/hardware/interfaces/neuralnetworks/1.3/utils/src/
DConversions.cpp195 auto pools = NN_TRY(unvalidatedConvert(model.pools)); in unvalidatedConvert() local
201 .pools = std::move(pools), in unvalidatedConvert()
247 auto pools = NN_TRY(unvalidatedConvert(request.pools)); in unvalidatedConvert() local
251 .pools = std::move(pools), in unvalidatedConvert()
565 auto pools = NN_TRY(unvalidatedConvert(model.pools)); in unvalidatedConvert() local
571 .pools = std::move(pools), in unvalidatedConvert()
617 auto pools = NN_TRY(unvalidatedConvert(request.pools)); in unvalidatedConvert() local
621 .pools = std::move(pools), in unvalidatedConvert()
/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/chapters/VK_KHR_performance_query/
Dfeatures.adoc20 supports performance counter query pools.
23 implementation supports using multiple performance query pools in a
/hardware/interfaces/neuralnetworks/1.2/utils/src/
DBurst.cpp333 .inputs = requestInShared.inputs, .outputs = requestInShared.outputs, .pools = {}}; in execute()
339 slots.reserve(requestInShared.pools.size()); in execute()
340 holds.reserve(requestInShared.pools.size()); in execute()
341 for (const auto& memoryPool : requestInShared.pools) { in execute()
380 .inputs = requestInShared.inputs, .outputs = requestInShared.outputs, .pools = {}}; in createReusableExecution()
386 slots.reserve(requestInShared.pools.size()); in createReusableExecution()
387 holds.reserve(requestInShared.pools.size()); in createReusableExecution()
388 for (const auto& memoryPool : requestInShared.pools) { in createReusableExecution()
/hardware/interfaces/neuralnetworks/aidl/android/hardware/neuralnetworks/
DRequest.aidl53 RequestMemoryPool[] pools;
/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/1/android/hardware/neuralnetworks/
DRequest.aidl39 android.hardware.neuralnetworks.RequestMemoryPool[] pools;
/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/3/android/hardware/neuralnetworks/
DRequest.aidl39 android.hardware.neuralnetworks.RequestMemoryPool[] pools;
/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/current/android/hardware/neuralnetworks/
DRequest.aidl39 android.hardware.neuralnetworks.RequestMemoryPool[] pools;
/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/4/android/hardware/neuralnetworks/
DRequest.aidl39 android.hardware.neuralnetworks.RequestMemoryPool[] pools;
/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/2/android/hardware/neuralnetworks/
DRequest.aidl39 android.hardware.neuralnetworks.RequestMemoryPool[] pools;

1234