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.h 746 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #pragma once
  2. #include <gtest/gtest.h>
  3. #include "megdnn/handle.h"
  4. #include "test/common/utils.h"
  5. #include "test/cpu/fixture.h"
  6. #include <memory>
  7. namespace megdnn {
  8. namespace test {
  9. class NAIVE : public ::testing::Test {
  10. public:
  11. void SetUp() override;
  12. void TearDown() override;
  13. Handle* handle() { return m_handle.get(); }
  14. private:
  15. std::unique_ptr<Handle> m_handle;
  16. };
  17. class NAIVE_MULTI_THREADS : public ::testing::Test {
  18. public:
  19. void SetUp() override;
  20. void TearDown() override;
  21. Handle* handle() { return m_handle.get(); }
  22. private:
  23. std::unique_ptr<Handle> m_handle;
  24. };
  25. class NAIVE_BENCHMARK_MULTI_THREADS : public ::testing::Test {};
  26. } // namespace test
  27. } // namespace megdnn
  28. // vim: syntax=cpp.doxygen