| 9 | namespace atlas { |
| 10 | |
| 11 | HandleImpl::HandleImpl(megcoreComputingHandle_t comp_handle) |
| 12 | : HandleImplHelper(comp_handle, HandleType::ATLAS) { |
| 13 | // Get megcore device handle |
| 14 | megcoreDeviceHandle_t dev_handle; |
| 15 | megcoreGetDeviceHandle(comp_handle, &dev_handle); |
| 16 | |
| 17 | int dev_id; |
| 18 | megcoreGetDeviceID(dev_handle, &dev_id); |
| 19 | m_device_id = dev_id; |
| 20 | megcore::getAtlasContext(comp_handle, &m_megcore_context); |
| 21 | } |
| 22 | |
| 23 | HandleImpl::~HandleImpl() noexcept = default; |
| 24 |
nothing calls this directly
no test coverage detected