| 15 | using namespace test; |
| 16 | |
| 17 | void ATLAS::SetUp() { |
| 18 | RandomState::reset(); |
| 19 | |
| 20 | // use card 0 |
| 21 | megcore_check(megcoreCreateDeviceHandle(&m_dev_handle, megcorePlatformAtlas, 0)); |
| 22 | |
| 23 | megcoreActivate(m_dev_handle); |
| 24 | megcoreComputingHandle_t comp_handle; |
| 25 | megcore_check(megcoreCreateComputingHandle(&comp_handle, m_dev_handle)); |
| 26 | m_handle_atlas = Handle::make(comp_handle); |
| 27 | megdnn_assert(m_handle_atlas); |
| 28 | } |
| 29 | |
| 30 | Handle* ATLAS::handle_naive() { |
| 31 | if (!m_handle_naive) |
nothing calls this directly
no test coverage detected