Home
last modified time | relevance | path

Searched refs:allocate (Results 1 – 25 of 1362) sorted by relevance

12345678910>>...55

/external/toolchain-utils/crosperf/
Dmachine_image_manager_unittest.py163 self.assertTrue(mim.allocate(duts[0]) == labels[0])
164 self.assertTrue(mim.allocate(duts[0]) == labels[1])
165 self.assertTrue(mim.allocate(duts[0]) is None)
168 self.assertTrue(mim.allocate(duts[1]) == labels[1])
186 self.assertTrue(mim.allocate(duts[3]).name == 'l3')
243 self.assertTrue(mim.allocate(mim.duts_[2]) == mim.labels_[0])
244 self.assertTrue(mim.allocate(mim.duts_[3]) == mim.labels_[2])
245 self.assertTrue(mim.allocate(mim.duts_[0]) == mim.labels_[1])
246 self.assertTrue(mim.allocate(mim.duts_[1]) == mim.labels_[2])
247 self.assertTrue(mim.allocate(mim.duts_[3]) == mim.labels_[1])
[all …]
/external/eigen/unsupported/test/
Dcxx11_tensor_of_float16_cuda.cu30 float* d_float = (float*)gpu_device.allocate(num_elem * sizeof(float)); in test_cuda_numext()
31 bool* d_res_half = (bool*)gpu_device.allocate(num_elem * sizeof(bool)); in test_cuda_numext()
32 bool* d_res_float = (bool*)gpu_device.allocate(num_elem * sizeof(bool)); in test_cuda_numext()
70 float* d_float = (float*)gpu_device.allocate(num_elem * sizeof(float)); in test_cuda_conversion()
71 Eigen::half* d_half = (Eigen::half*)gpu_device.allocate(num_elem * sizeof(Eigen::half)); in test_cuda_conversion()
72 float* d_conv = (float*)gpu_device.allocate(num_elem * sizeof(float)); in test_cuda_conversion()
105 float* d_float = (float*)gpu_device.allocate(num_elem * sizeof(float)); in test_cuda_unary()
106 float* d_res_half = (float*)gpu_device.allocate(num_elem * sizeof(float)); in test_cuda_unary()
107 float* d_res_float = (float*)gpu_device.allocate(num_elem * sizeof(float)); in test_cuda_unary()
142 float* d_float1 = (float*)gpu_device.allocate(num_elem * sizeof(float)); in test_cuda_elementwise()
[all …]
Dcxx11_tensor_reduction_sycl.cpp39 …float* gpu_in_data = static_cast<float*>(sycl_device.allocate(in.dimensions().TotalSize()*sizeof(f… in test_full_reductions_sycl()
40 float* gpu_out_data =(float*)sycl_device.allocate(sizeof(float)); in test_full_reductions_sycl()
74 …float* gpu_in_data = static_cast<float*>(sycl_device.allocate(in.dimensions().TotalSize()*sizeof(f… in test_first_dim_reductions_sycl()
75 …float* gpu_out_data = static_cast<float*>(sycl_device.allocate(redux_gpu.dimensions().TotalSize()*… in test_first_dim_reductions_sycl()
112 …float* gpu_in_data = static_cast<float*>(sycl_device.allocate(in.dimensions().TotalSize()*sizeof(f… in test_last_dim_reductions_sycl()
113 …float* gpu_out_data = static_cast<float*>(sycl_device.allocate(redux_gpu.dimensions().TotalSize()*… in test_last_dim_reductions_sycl()
/external/libcxx/test/std/experimental/memory/memory.resource/memory.resource.public/
Dallocate.pass.cpp42 std::is_same<decltype(M.allocate(0, 0)), void*>::value in main()
46 std::is_same<decltype(M.allocate(0)), void*>::value in main()
52 ! noexcept(M.allocate(0, 0)) in main()
56 ! noexcept(M.allocate(0)) in main()
63 void* p = M.allocate(s, a); in main()
69 p = M.allocate(s); in main()
80 M2.allocate(42); in main()
/external/grpc-grpc-java/alts/src/test/java/io/grpc/alts/internal/
DAltsTsiHandshakerTest.java107 ByteBuffer transportBuffer = ByteBuffer.allocate(TRANSPORT_BUFFER_SIZE); in processBytesFromPeerFalseStart()
113 ByteBuffer transportBuffer = ByteBuffer.allocate(TRANSPORT_BUFFER_SIZE); in processBytesFromPeerStartServer()
114 ByteBuffer outputFrame = ByteBuffer.allocate(OUT_FRAME_SIZE); in processBytesFromPeerStartServer()
127 ByteBuffer transportBuffer = ByteBuffer.allocate(TRANSPORT_BUFFER_SIZE); in processBytesFromPeerStartServerEmptyOutput()
128 ByteBuffer emptyOutputFrame = ByteBuffer.allocate(0); in processBytesFromPeerStartServerEmptyOutput()
142 ByteBuffer transportBuffer = ByteBuffer.allocate(TRANSPORT_BUFFER_SIZE); in processBytesFromPeerStartServerFinished()
143 ByteBuffer outputFrame = ByteBuffer.allocate(OUT_FRAME_SIZE); in processBytesFromPeerStartServerFinished()
155 ByteBuffer transportBuffer = ByteBuffer.allocate(TRANSPORT_BUFFER_SIZE); in processBytesFromPeerNoBytesConsumed()
156 ByteBuffer emptyOutputFrame = ByteBuffer.allocate(0); in processBytesFromPeerNoBytesConsumed()
172 ByteBuffer transportBuffer = ByteBuffer.allocate(TRANSPORT_BUFFER_SIZE); in processBytesFromPeerClientNext()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/AMDGPU/
Dinlineasm-illegal-type.ll5 ; GCN: error: couldn't allocate output register for constraint 's'
6 ; GCN: error: couldn't allocate input reg for constraint 's'
13 ; GCN: error: couldn't allocate output register for constraint 'v'
14 ; GCN: error: couldn't allocate input reg for constraint 'v'
21 ; GCN: error: couldn't allocate output register for constraint 's'
22 ; GCN: error: couldn't allocate input reg for constraint 's'
29 ; SICI: error: couldn't allocate output register for constraint 's'
30 ; SICI: error: couldn't allocate input reg for constraint 's'
38 ; SICI: error: couldn't allocate output register for constraint 'v'
39 ; SICI: error: couldn't allocate input reg for constraint 'v'
[all …]
/external/tensorflow/tensorflow/core/kernels/
Deigen_benchmark.h52 static_cast<Scalar*>(device_.allocate(BufferSize(input_dims))); in SpatialConvolution()
54 static_cast<Scalar*>(device_.allocate(BufferSize(filter_dims))); in SpatialConvolution()
56 static_cast<Scalar*>(device_.allocate(BufferSize(output_dims))); in SpatialConvolution()
92 static_cast<Scalar*>(device_.allocate(BufferSize(filter_dims))); in SpatialConvolutionBackwardInput()
94 static_cast<Scalar*>(device_.allocate(BufferSize(output_dims))); in SpatialConvolutionBackwardInput()
96 static_cast<Scalar*>(device_.allocate(BufferSize(input_dims))); in SpatialConvolutionBackwardInput()
133 static_cast<Scalar*>(device_.allocate(BufferSize(input_dims))); in SpatialConvolutionBackwardKernel()
135 static_cast<Scalar*>(device_.allocate(BufferSize(output_dims))); in SpatialConvolutionBackwardKernel()
137 static_cast<Scalar*>(device_.allocate(BufferSize(filter_dims))); in SpatialConvolutionBackwardKernel()
188 static_cast<Scalar*>(device_.allocate(BufferSize(input_dims))); in CuboidConvolution()
[all …]
/external/libcxx/test/std/utilities/memory/allocator.traits/allocator.traits.members/
Dallocate_hint.pass.cpp31 value_type* allocate(std::size_t n) in allocate() function
43 value_type* allocate(std::size_t n) in allocate() function
48 value_type* allocate(std::size_t n, const void* p) in allocate() function
62 …assert(std::allocator_traits<A<int> >::allocate(a, 10, nullptr) == reinterpret_cast<int*>(static_c… in main()
68 …assert(std::allocator_traits<Alloc >::allocate(a, 10, nullptr) == reinterpret_cast<VT*>(static_cas… in main()
73 …assert(std::allocator_traits<B<int> >::allocate(b, 11, nullptr) == reinterpret_cast<int*>(static_c… in main()
79 …assert(std::allocator_traits<Alloc >::allocate(b, 11, nullptr) == reinterpret_cast<VT*>(static_cas… in main()
Dallocate.fail.cpp33 value_type* allocate(std::size_t n) in allocate() function
38 value_type* allocate(std::size_t n, const void* p) in allocate() function
49 …std::allocator_traits<A<int> >::allocate(a, 10); // expected-error {{ignoring return valu… in main()
50 …std::allocator_traits<A<int> >::allocate(a, 10, nullptr); // expected-error {{ignoring return valu… in main()
/external/swiftshader/third_party/subzero/unittest/AssemblerX8632/
DX87.cpp92 const uint32_t T1 = allocate##MemorySize(); \ in TEST_F()
94 const uint32_t T2 = allocate##MemorySize(); \ in TEST_F()
96 const uint32_t T3 = allocate##MemorySize(); \ in TEST_F()
98 const uint32_t T4 = allocate##MemorySize(); \ in TEST_F()
100 const uint32_t T5 = allocate##MemorySize(); \ in TEST_F()
102 const uint32_t T6 = allocate##MemorySize(); \ in TEST_F()
104 const uint32_t T7 = allocate##MemorySize(); \ in TEST_F()
107 const uint32_t N7 = allocate##MemorySize(); \ in TEST_F()
109 const uint32_t N6 = allocate##MemorySize(); \ in TEST_F()
111 const uint32_t N5 = allocate##MemorySize(); \ in TEST_F()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Support/
DArrayRecyclerTest.cpp56 Object *A1 = DUT.allocate(Cap, Allocator); in TEST()
60 Object *A2 = DUT.allocate(Cap, Allocator); in TEST()
64 Object *A3 = DUT.allocate(Cap, Allocator); in TEST()
84 Object *A2x = DUT.allocate(Cap, Allocator); in TEST()
93 Object *A3x = DUT.allocate(Cap, Allocator); in TEST()
95 Object *A1x = DUT.allocate(Cap, Allocator); in TEST()
97 Object *A2y = DUT.allocate(Cap, Allocator); in TEST()
101 Object *A4 = DUT.allocate(Cap, Allocator); in TEST()
/external/llvm/unittests/Support/
DArrayRecyclerTest.cpp56 Object *A1 = DUT.allocate(Cap, Allocator); in TEST()
60 Object *A2 = DUT.allocate(Cap, Allocator); in TEST()
64 Object *A3 = DUT.allocate(Cap, Allocator); in TEST()
84 Object *A2x = DUT.allocate(Cap, Allocator); in TEST()
93 Object *A3x = DUT.allocate(Cap, Allocator); in TEST()
95 Object *A1x = DUT.allocate(Cap, Allocator); in TEST()
97 Object *A2y = DUT.allocate(Cap, Allocator); in TEST()
101 Object *A4 = DUT.allocate(Cap, Allocator); in TEST()
/external/libcxx/test/std/utilities/allocator.adaptor/allocator.adaptor.members/
Dallocate_size_hint.pass.cpp30 assert(a.allocate(10, (const void*)0) == (int*)10); in main()
37 assert(a.allocate(10, (const void*)10) == (int*)10); in main()
44 assert(a.allocate(10, (const void*)20) == (int*)10); in main()
52 assert(a.allocate(10, (const void*)0) == (int*)0); in main()
59 assert(a.allocate(10, (const void*)10) == (int*)10); in main()
66 assert(a.allocate(10, (const void*)20) == (int*)20); in main()
/external/swiftshader/src/OpenGL/compiler/
DPoolAlloc.h154 void* allocate(size_t numBytes);
281 void* allocate(size_type n) { in allocate() function
282 return getAllocator().allocate(n); in allocate()
284 void* allocate(size_type n, const void*) { in allocate() function
285 return getAllocator().allocate(n); in allocate()
289 pointer allocate(size_type n) { in allocate() function
290 return reinterpret_cast<pointer>(getAllocator().allocate(n * sizeof(T))); in allocate()
292 pointer allocate(size_type n, const void*) { in allocate() function
293 return reinterpret_cast<pointer>(getAllocator().allocate(n * sizeof(T))); in allocate()
/external/replicaisland/src/com/replica/replicaisland/
DPhysicsComponent.java75 Vector2 newVelocity = vectorPool.allocate(currentVelocity); in update()
135 Vector2 collisionNormal = vectorPool.allocate(opposingNormal); in resolveCollision()
139 Vector2 relativeVelocity = vectorPool.allocate(velocity); in resolveCollision()
154 Vector2 entity1Adjust = vectorPool.allocate(collisionNormal); in resolveCollision()
174 Vector2 collisionNormal = vectorPool.allocate(opposingNormal); in resolveCollision()
177 Vector2 entity1Velocity = vectorPool.allocate(velocity); in resolveCollision()
180 Vector2 entity2Velocity = vectorPool.allocate(otherVelocity); in resolveCollision()
183 Vector2 relativeVelocity = vectorPool.allocate(entity1Velocity); in resolveCollision()
199 Vector2 entity1Adjust = vectorPool.allocate(collisionNormal); in resolveCollision()
DDrawableFactory.java45 return mBitmapPool.allocate(); in allocateDrawableBitmap()
49 return mTiledBackgroundVertexGridPool.allocate(); in allocateTiledBackgroundVertexGrid()
53 return mScrollableBitmapPool.allocate(); in allocateScrollableBitmap()
91 public DrawableBitmap allocate() { in allocate() method in DrawableFactory.DrawableBitmapPool
92 DrawableBitmap result = super.allocate(); in allocate()
/external/libcxx/test/std/experimental/memory/memory.polymorphic.allocator.class/memory.polymorphic.allocator.mem/
Dallocate.pass.cpp38 auto ret = a.allocate(N); in testForSizeAndAlign()
58 a.allocate(maxSize); in testAllocForSizeThrows()
68 a.allocate(sizeTypeMax); in testAllocForSizeThrows()
76 a.allocate(overSize); in testAllocForSizeThrows()
88 static_assert(std::is_same<decltype(a.allocate(0)), int*>::value, ""); in main()
89 static_assert(!noexcept(a.allocate(0)), ""); in main()
/external/e2fsprogs/tests/f_unshare_blocks_no_space/
Dexpect.128 clone_file: Could not allocate block in ext2 filesystem returned from clone_file_block
29 Couldn't clone file: Could not allocate block in ext2 filesystem
40 clone_file: Could not allocate block in ext2 filesystem returned from clone_file_block
41 Couldn't clone file: Could not allocate block in ext2 filesystem
52 clone_file: Could not allocate block in ext2 filesystem returned from clone_file_block
53 Couldn't clone file: Could not allocate block in ext2 filesystem
64 clone_file: Could not allocate block in ext2 filesystem returned from clone_file_block
65 Couldn't clone file: Could not allocate block in ext2 filesystem
76 clone_file: Could not allocate block in ext2 filesystem returned from clone_file_block
77 Couldn't clone file: Could not allocate block in ext2 filesystem
[all …]
/external/clang/test/CodeGenCXX/
Dsections.cpp62 __declspec(allocate("read_flag_section")) int unreferenced = 0;
63 extern __declspec(allocate("read_flag_section")) int referenced = 42;
68 __declspec(allocate("no_section_attributes")) int implicitly_read_write = 42;
72 __declspec(allocate("long_section")) long long_var = 42;
76 __declspec(allocate("short_section")) short short_var = 42;
/external/clang/test/Rewriter/
Dobjc-modern-metadata-visibility.mm27 // CHECK: __declspec(allocate(".objc_ivar$B")) extern "C" __declspec(dllimport) unsigned long OBJC_…
28 // CHECK: __declspec(allocate(".objc_ivar$B")) extern "C" unsigned long OBJC_IVAR_$_Sub$PrivateIvar;
29 // CHECK: __declspec(allocate(".objc_ivar$B")) extern "C" __declspec(dllimport) unsigned long OBJC_…
31 // CHECK: __declspec(allocate(".objc_ivar$B")) extern "C" __declspec(dllexport) unsigned long int O…
32 // CHECK: __declspec(allocate(".objc_ivar$B")) extern "C" __declspec(dllexport) unsigned long int O…
33 // CHECK: __declspec(allocate(".objc_ivar$B")) extern "C" unsigned long int OBJC_IVAR_$_Sub$Private…
/external/compiler-rt/lib/asan/
Dasan_win_dynamic_runtime_thunk.cc66 __declspec(allocate(".CRT$XTW")) void* before_global_dtors = 0;
67 __declspec(allocate(".CRT$XTY")) void* after_global_dtors = 0;
81 __declspec(allocate(".CRT$XID"))
96 __declspec(allocate(".CRT$XCAB")) int (*__asan_seh_interceptor)() =
/external/swiftshader/third_party/subzero/src/
DIceInstX86Base.h267 return new (Func->allocate<InstX86FakeRMW>())
294 return new (Func->allocate<InstX86GetIP>()) InstX86GetIP(Func, Dest); in create()
350 return new (Func->allocate<InstX86Label>()) InstX86Label(Func, Target); in create()
384 return new (Func->allocate<InstX86Br>()) in create()
391 return new (Func->allocate<InstX86Br>()) in create()
402 return new (Func->allocate<InstX86Br>()) in create()
411 return new (Func->allocate<InstX86Br>()) in create()
461 return new (Func->allocate<InstX86Jmp>()) InstX86Jmp(Func, Target); in create()
483 return new (Func->allocate<InstX86Call>()) in create()
1142 return new (Func->allocate<InstX86Bswap>()) InstX86Bswap(Func, SrcDest); in create()
[all …]
/external/skia/src/gpu/
DGrMemoryPool.h47 void* allocate(size_t size);
138 std::unique_ptr<Op> allocate(OpArgs&&... opArgs) { in allocate() function
139 char* mem = (char*) fMemoryPool.allocate(sizeof(Op)); in allocate()
143 void* allocate(size_t size) { in allocate() function
144 return fMemoryPool.allocate(size); in allocate()
/external/skqp/src/gpu/
DGrMemoryPool.h47 void* allocate(size_t size);
138 std::unique_ptr<Op> allocate(OpArgs&&... opArgs) { in allocate() function
139 char* mem = (char*) fMemoryPool.allocate(sizeof(Op)); in allocate()
143 void* allocate(size_t size) { in allocate() function
144 return fMemoryPool.allocate(size); in allocate()
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/utils/
DSeekableInMemoryByteChannelTest.java41 ByteBuffer readBuffer = ByteBuffer.allocate(testData.length); in shouldReadContentsProperly()
55 ByteBuffer readBuffer = ByteBuffer.allocate(testData.length + 1); in shouldReadContentsWhenBiggerBufferSupplied()
69 ByteBuffer readBuffer = ByteBuffer.allocate(4); in shouldReadDataFromSetPosition()
84 ByteBuffer readBuffer = ByteBuffer.allocate(testData.length); in shouldSignalEOFWhenPositionAtTheEnd()
100 c.read(ByteBuffer.allocate(1)); in shouldThrowExceptionOnReadingClosedChannel()
122 …ByteBuffer expectedData = ByteBuffer.allocate(testData.length + 5).put(testData, 0, 5).put(testDat… in shouldWriteDataProperlyAfterPositionSet()
141 c.write(ByteBuffer.allocate(1)); in shouldThrowExceptionOnWritingToClosedChannel()

12345678910>>...55