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

Function cleanSlate

test/arrayfire_test.cpp:838–856  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

836}
837
838void cleanSlate() {
839 const size_t step_bytes = 1024;
840
841 size_t alloc_bytes, alloc_buffers;
842 size_t lock_bytes, lock_buffers;
843
844 af::deviceGC();
845
846 af::deviceMemInfo(&alloc_bytes, &alloc_buffers, &lock_bytes, &lock_buffers);
847
848 ASSERT_EQ(0u, alloc_buffers);
849 ASSERT_EQ(0u, lock_buffers);
850 ASSERT_EQ(0u, alloc_bytes);
851 ASSERT_EQ(0u, lock_bytes);
852
853 af::setMemStepSize(step_bytes);
854
855 ASSERT_EQ(af::getMemStepSize(), step_bytes);
856}
857
858template<typename inType, typename outType>
859void readTestsFromFile(const std::string &FileName,

Callers 10

TESTFunction · 0.85
TYPED_TESTFunction · 0.85
TESTFunction · 0.85
threading.cppFile · 0.85
TESTFunction · 0.85
TESTFunction · 0.85
memAllocArrayScopeTestFunction · 0.85
memAllocPtrScopeTestFunction · 0.85
TESTFunction · 0.85
solve_dense.cppFile · 0.85

Calls 4

deviceGCFunction · 0.85
deviceMemInfoFunction · 0.85
setMemStepSizeFunction · 0.50
getMemStepSizeFunction · 0.50

Tested by

no test coverage detected