MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / TEST_F

Function TEST_F

test/memory.cpp:863–873  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

861};
862
863TEST_F(MemoryManagerApi, E2ETest1D) {
864 size_t aSize = 8;
865
866 array a = af::array(aSize, af::dtype::f32);
867 ASSERT_EQ(payload->table.size(), 1);
868
869 ASSERT_EQ(payload->table[a.device<float>()], aSize * sizeof(float));
870 ASSERT_EQ(payload->lastNdims, 1);
871 ASSERT_EQ(payload->lastDims, af::dim4(aSize));
872 ASSERT_EQ(payload->lastElementSize, 4);
873}
874
875TEST_F(MemoryManagerApi, E2ETest2D) {
876 size_t aSize = 8;

Callers

nothing calls this directly

Calls 4

randuFunction · 0.85
arrayClass · 0.50
dim4Class · 0.50
syncFunction · 0.50

Tested by

no test coverage detected