| 168 | } |
| 169 | |
| 170 | bool deinit() |
| 171 | { |
| 172 | if (m_program) |
| 173 | { |
| 174 | clReleaseProgram(m_program); |
| 175 | m_program = nullptr; |
| 176 | } |
| 177 | |
| 178 | if (m_command_queue) |
| 179 | { |
| 180 | clReleaseCommandQueue(m_command_queue); |
| 181 | m_command_queue = nullptr; |
| 182 | } |
| 183 | |
| 184 | if (m_context) |
| 185 | { |
| 186 | clReleaseContext(m_context); |
| 187 | m_context = nullptr; |
| 188 | } |
| 189 | |
| 190 | m_device_id = nullptr; |
| 191 | |
| 192 | return true; |
| 193 | } |
| 194 | |
| 195 | cl_command_queue create_command_queue() |
| 196 | { |
no outgoing calls
no test coverage detected