Home
last modified time | relevance | path

Searched refs:Allocation (Results 1 – 25 of 527) sorted by relevance

12345678910>>...22

/external/executorch/backends/vulkan/runtime/vk_api/memory/
DAllocation.h26 struct Allocation final {
27 explicit Allocation();
29 explicit Allocation(
47 Allocation(const Allocation&) noexcept;
51 Allocation& operator=(const Allocation&) = delete;
53 Allocation(Allocation&&) noexcept;
54 Allocation& operator=(Allocation&&) noexcept;
56 ~Allocation();
DAllocation.cpp28 Allocation::Allocation() in Allocation() function in vkcompute::vkapi::Allocation
31 Allocation::Allocation( in Allocation() function in vkcompute::vkapi::Allocation
40 Allocation::Allocation(const Allocation& other) noexcept in Allocation() function in vkcompute::vkapi::Allocation
45 Allocation::Allocation(Allocation&& other) noexcept in Allocation() function in vkcompute::vkapi::Allocation
52 Allocation& Allocation::operator=(Allocation&& other) noexcept { in operator =()
64 Allocation::~Allocation() { in ~Allocation()
/external/deqp/external/vulkancts/framework/vulkan/
DvkMemUtil.hpp55 class Allocation class
58 virtual ~Allocation(void);
80 Allocation(VkDeviceMemory memory, VkDeviceSize offset, void *hostPtr);
88 void flushAlloc(const DeviceInterface &vkd, VkDevice device, const Allocation &alloc);
89 void invalidateAlloc(const DeviceInterface &vkd, VkDevice device, const Allocation &alloc);
153 …virtual de::MovePtr<Allocation> allocate(const VkMemoryAllocateInfo &allocInfo, VkDeviceSize align…
154 virtual de::MovePtr<Allocation> allocate(const VkMemoryRequirements &memRequirements,
172 de::MovePtr<Allocation> allocate(const VkMemoryAllocateInfo &allocInfo, VkDeviceSize alignment);
173 …de::MovePtr<Allocation> allocate(const VkMemoryRequirements &memRequirements, MemoryRequirement re…
182 de::MovePtr<Allocation> allocateExtended(const InstanceInterface &vki, const DeviceInterface &vkd,
[all …]
DvkMemUtil.cpp43 typedef de::SharedPtr<Allocation> AllocationSp;
91 Allocation::Allocation(VkDeviceMemory memory, VkDeviceSize offset, void *hostPtr) in Allocation() function in vk::Allocation
98 Allocation::~Allocation(void) in ~Allocation()
102 void flushAlloc(const DeviceInterface &vkd, VkDevice device, const Allocation &alloc) in flushAlloc()
107 void invalidateAlloc(const DeviceInterface &vkd, VkDevice device, const Allocation &alloc) in invalidateAlloc()
173 class SimpleAllocation : public Allocation
185 : Allocation(*mem, offset, hostPtr ? hostPtr->get() : nullptr) in SimpleAllocation()
212 MovePtr<Allocation> SimpleAllocator::allocate(const VkMemoryAllocateInfo &allocInfo, VkDeviceSize a… in allocate()
229 return MovePtr<Allocation>(new SimpleAllocation(mem, hostPtr, static_cast<size_t>(offset))); in allocate()
232 MovePtr<Allocation> SimpleAllocator::allocate(const VkMemoryRequirements &memReqs, MemoryRequiremen… in allocate()
[all …]
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/core/src/main/java/com/google/android/exoplayer2/upstream/
DDefaultAllocator.java34 private final Allocation[] singleAllocationReleaseHolder;
39 private @NullableType Allocation[] availableAllocations;
69 this.availableAllocations = new Allocation[initialAllocationCount + AVAILABLE_EXTRA_CAPACITY]; in DefaultAllocator()
74 availableAllocations[i] = new Allocation(initialAllocationBlock, allocationOffset); in DefaultAllocator()
79 singleAllocationReleaseHolder = new Allocation[1]; in DefaultAllocator()
97 public synchronized Allocation allocate() {
99 Allocation allocation;
104 allocation = new Allocation(new byte[individualAllocationSize], 0);
116 public synchronized void release(Allocation allocation) { in release()
122 public synchronized void release(Allocation[] allocations) { in release()
[all …]
DAllocator.java29 Allocation allocate(); in allocate()
36 void release(Allocation allocation); in release()
43 void release(Allocation[] allocations); in release()
/external/swiftshader/third_party/marl/include/marl/
Dmemory.h58 struct Allocation { struct
117 virtual Allocation allocate(const Allocation::Request&) = 0;
121 virtual void free(const Allocation&) = 0;
164 Allocation allocation; in operator()
168 allocation.request.usage = Allocation::Usage::Create; in operator()
177 Allocation::Request request; in create()
180 request.usage = Allocation::Usage::Create; in create()
191 Allocation alloc; in destroy()
195 alloc.request.usage = Allocation::Usage::Create; in destroy()
210 Allocation::Request request; in make_unique_n()
[all …]
/external/swiftshader/src/System/
DMemory.cpp53 struct Allocation struct
80 size_t size = bytes + sizeof(Allocation) + alignment; in allocate()
91 …aligned = (unsigned char *)((uintptr_t)(block + sizeof(Allocation) + alignment - 1) & -(intptr_t)a… in allocate()
92 Allocation *allocation = (Allocation *)(aligned - sizeof(Allocation)); in allocate()
118 Allocation *allocation = (Allocation *)(aligned - sizeof(Allocation)); in freeMemory()
/external/angle/src/common/
DPoolAlloc.cpp31 class Allocation class
34 Allocation(size_t size, unsigned char *mem, Allocation *prev = 0) in Allocation() function in angle::Allocation
113 Allocation *mPrevAlloc; // prior allocation in the chain
120 static constexpr size_t HeaderSize() { return sizeof(Allocation); } in HeaderSize()
153 Allocation *lastAllocation;
253 void Allocation::checkGuardBlock(unsigned char *blockMem, in checkGuardBlock()
365 Allocation::AllocationSize(currentPagePtr, numBytes, mAlignment, &preAllocationPadding); in allocate()
387 allocationSize = Allocation::AllocationSize(reinterpret_cast<uint8_t *>(mPageHeaderSkip), in allocate()
410 Allocation::AllocationSize(currentPagePtr, numBytes, mAlignment, &preAllocationPadding); in allocate()
458 Allocation::AllocationSize(currentPagePtr, numBytes, mAlignment, &preAllocationPadding); in allocateNewPage()
[all …]
/external/caliper/caliper/src/main/java/com/google/caliper/worker/
DAllocationStats.java40 private final ImmutableMultiset<Allocation> allocations;
48 this(allocationCount, allocationSize, reps, ImmutableMultiset.<Allocation>of()); in AllocationStats()
55 AllocationStats(Collection<Allocation> allocations, int reps) { in AllocationStats()
56 this(allocations.size(), Allocation.getTotalSize(allocations), reps, in AllocationStats()
61 Multiset<Allocation> allocations) { in AllocationStats()
85 for (Entry<Allocation> entry : baseline.allocations.entrySet()) { in minus()
129 for (Entry<Allocation> entry : allocations.entrySet()) { in toMeasurements()
182 private final Multiset<Allocation> additions;
183 private final Multiset<Allocation> removals;
189 Multiset<Allocation> additions, in Delta()
[all …]
DAllocation.java33 final class Allocation { class
42 static long getTotalSize(Collection<Allocation> allocations) { in getTotalSize()
44 for (Allocation allocation : allocations) { in getTotalSize()
54 Allocation(String description, long size, List<StackTraceElement> location) { in Allocation() method in Allocation
65 if (obj instanceof Allocation) { in equals()
66 Allocation other = (Allocation) obj; in equals()
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/core/src/main/java/com/google/android/exoplayer2/upstream/
DDefaultAllocator.java38 private @NullableType Allocation[] availableAllocations;
68 this.availableAllocations = new Allocation[initialAllocationCount + AVAILABLE_EXTRA_CAPACITY]; in DefaultAllocator()
73 availableAllocations[i] = new Allocation(initialAllocationBlock, allocationOffset); in DefaultAllocator()
95 public synchronized Allocation allocate() {
97 Allocation allocation;
102 allocation = new Allocation(new byte[individualAllocationSize], 0);
114 public synchronized void release(Allocation allocation) { in release()
148 Allocation lowAllocation = Assertions.checkNotNull(availableAllocations[lowIndex]); in trim()
152 Allocation highAllocation = Assertions.checkNotNull(availableAllocations[highIndex]); in trim()
/external/deqp/external/vulkancts/modules/vulkan/api/
DvktApiBufferAndImageAllocationUtil.hpp36 class Allocation;
57 de::MovePtr<Allocation> &memory) const = 0;
66 de::MovePtr<Allocation> &memory) const; // override
75 de::MovePtr<Allocation> &memory) const; // override
87 de::MovePtr<Allocation> &memory,
96 de::MovePtr<Allocation> &memory,
105 de::MovePtr<Allocation> &memory,
/external/perfetto/src/profiling/memory/
Dbookkeeping.h182 const Allocation& alloc = addr_and_allocation.second; in GetAllocations()
211 struct Allocation { struct
212 Allocation(uint64_t size, in Allocation() function
220 Allocation() = default;
221 Allocation(const Allocation&) = delete;
222 Allocation(Allocation&& other) noexcept { in Allocation() argument
230 ~Allocation() { SetCallstackAllocations(nullptr); } in ~Allocation() argument
284 void AddToCallstackAllocations(uint64_t ts, const Allocation& alloc) { in AddToCallstackAllocations()
320 void SubtractFromCallstackAllocations(const Allocation& alloc) { in SubtractFromCallstackAllocations()
340 std::map<uint64_t /* allocation address */, Allocation> allocations_;
/external/tensorflow/tensorflow/lite/
Dallocation.h31 class Allocation {
33 virtual ~Allocation() {} in ~Allocation()
51 Allocation(ErrorReporter* error_reporter, Type type) in Allocation() function
61 class MMAPAllocation : public Allocation {
105 class FileCopyAllocation : public Allocation {
119 class MemoryAllocation : public Allocation {
Dmodel_builder.h124 std::unique_ptr<Allocation> allocation,
138 std::unique_ptr<Allocation> allocation,
162 const Allocation* allocation() const { return allocation_.get(); } in allocation()
189 std::unique_ptr<Allocation> allocation,
204 std::unique_ptr<Allocation> allocation_;
/external/renderscript-intrinsics-replacement-toolkit/test-app/src/main/java/com/google/android/renderscript_test/
DIntrinsicConvolve.kt20 import android.renderscript.Allocation
46 val inputAllocation = Allocation.createTyped(context, arrayType) in intrinsicConvolve()
47 val outAllocation = Allocation.createTyped(context, arrayType) in intrinsicConvolve()
76 val inputAllocation = Allocation.createFromBitmap(context, bitmap) in intrinsicConvolve()
77 val outAllocation = Allocation.createTyped(context, inputAllocation.type) in intrinsicConvolve()
101 inputAllocation: Allocation?, in invokeConvolveKernel()
103 outAllocation: Allocation? in invokeConvolveKernel()
DIntrinsicHistogram.kt20 import android.renderscript.Allocation
45 val inputAllocation = Allocation.createTyped(context, arrayType) in intrinsicHistogram()
47 Allocation.createSized( in intrinsicHistogram()
79 val inputAllocation = Allocation.createFromBitmap(context, bitmap) in intrinsicHistogram()
83 Allocation.createSized( in intrinsicHistogram()
121 val inputAllocation = Allocation.createTyped(context, arrayType) in intrinsicHistogramDot()
123 Allocation.createSized(context, Element.I32(context), 256) in intrinsicHistogramDot()
164 val inputAllocation = Allocation.createFromBitmap(context, bitmap) in intrinsicHistogramDot()
167 Allocation.createSized(context, Element.I32(context), 256) in intrinsicHistogramDot()
DIntrinsicLut3d.kt20 import android.renderscript.Allocation
49 val inputAllocation = Allocation.createTyped(context, arrayType) in intrinsicLut3d()
50 val outAllocation = Allocation.createTyped(context, arrayType) in intrinsicLut3d()
60 val cubeAllocation = Allocation.createTyped(context, cubeType) in intrinsicLut3d()
92 val inputAllocation = Allocation.createFromBitmap(context, bitmap) in intrinsicLut3d()
94 val outAllocation = Allocation.createTyped(context, inputAllocation.type) in intrinsicLut3d()
103 val cubeAllocation = Allocation.createTyped(context, cubeType) in intrinsicLut3d()
/external/tensorflow/tensorflow/compiler/xla/service/
Dmemory_space_assignment.h503 class Allocation; variable
537 class Allocation {
541 Allocation(HloPosition defining_position, MemorySpace memory_space, in Allocation() function
552 virtual ~Allocation() = default;
576 absl::flat_hash_set<const Allocation*>& needed_allocations) const;
580 absl::flat_hash_set<const Allocation*>& needed_allocations) const;
606 bool operator==(const Allocation& other) const;
627 class CopyAllocation : public Allocation {
629 CopyAllocation(const Allocation& prev_allocation, MemorySpace memory_space,
633 : Allocation(/*defining_position=*/{nullptr, {}}, memory_space, chunk,
[all …]
/external/pigweed/pw_allocator/public/pw_allocator/
Dtest_harness.h75 struct Allocation : public IntrusiveList<Allocation>::Item { struct
78 explicit Allocation(Layout layout_) : layout(layout_) {} in Allocation() argument
169 Allocation* RemoveAllocation(size_t index);
175 IntrusiveList<Allocation> allocations_;
/external/swiftshader/src/Reactor/
DExecutableMemory.cpp61 struct Allocation struct
88 unsigned char *block = new unsigned char[bytes + sizeof(Allocation) + alignment]; in allocateRaw()
93 …aligned = (unsigned char *)((uintptr_t)(block + sizeof(Allocation) + alignment - 1) & -(intptr_t)a… in allocateRaw()
94 Allocation *allocation = (Allocation *)(aligned - sizeof(Allocation)); in allocateRaw()
259 Allocation *allocation = (Allocation *)(aligned - sizeof(Allocation)); in deallocate()
/external/deqp/external/vulkancts/modules/vulkan/pipeline/
DvktPipelineMakeUtil.cpp44 MovePtr<Allocation> bindImageDedicated(const InstanceInterface &vki, const DeviceInterface &vkd, in bindImageDedicated()
48 MovePtr<Allocation> alloc(allocateDedicated(vki, vkd, physDevice, device, image, requirement)); in bindImageDedicated()
53 MovePtr<Allocation> bindBufferDedicated(const InstanceInterface &vki, const DeviceInterface &vkd, in bindBufferDedicated()
57 MovePtr<Allocation> alloc(allocateDedicated(vki, vkd, physDevice, device, buffer, requirement)); in bindBufferDedicated()
/external/ComputeLibrary/tests/framework/instruments/
DOpenCLMemoryUsage.h66 struct Allocation struct
68 Allocation() = default;
69 Allocation(size_t alloc_size) in Allocation() function
76 std::map<cl_mem, Allocation> _allocations;
/external/pigweed/pw_allocator/
Dtest_harness.cc44 return std::max(alignment, alignof(TestHarness::Allocation)); in AlignmentFromLShift()
101 static constexpr size_t kMinSize = sizeof(TestHarness::Allocation); in GenerateSize()
139 Allocation* old = RemoveAllocation(r.index); in HandleRequest()
148 Allocation* old = RemoveAllocation(r.index); in HandleRequest()
179 constexpr Layout min_layout = Layout::Of<Allocation>(); in AddAllocation()
192 auto* allocation = ::new (bytes) Allocation(layout); in AddAllocation()
198 TestHarness::Allocation* TestHarness::RemoveAllocation(size_t index) { in RemoveAllocation()

12345678910>>...22