You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

fixture.cpp 532 B

12345678910111213141516171819202122232425
  1. #include "test/x86/fixture.h"
  2. #include "test/common/memory_manager.h"
  3. #include "test/common/random_state.h"
  4. #include "test/common/utils.h"
  5. namespace megdnn {
  6. namespace test {
  7. void X86::TearDown() {
  8. m_handle.reset();
  9. m_fallback_handle.reset();
  10. MemoryManagerHolder::instance()->clear();
  11. }
  12. Handle* X86::fallback_handle() {
  13. if (!m_fallback_handle) {
  14. m_fallback_handle = create_cpu_handle(1);
  15. }
  16. return m_fallback_handle.get();
  17. }
  18. } // namespace test
  19. } // namespace megdnn
  20. // vim: syntax=cpp.doxygen