| 50 | } // namespace |
| 51 | |
| 52 | ClContext::ClContext(const AclContextOptions *options) |
| 53 | : IContext(Target::GpuOcl), _mlgo_heuristics(), _cl_ctx(), _cl_dev() |
| 54 | { |
| 55 | if (options != nullptr) |
| 56 | { |
| 57 | _mlgo_heuristics = populate_mlgo(options->kernel_config_file); |
| 58 | } |
| 59 | _cl_ctx = CLKernelLibrary::get().context(); |
| 60 | _cl_dev = CLKernelLibrary::get().get_device(); |
| 61 | } |
| 62 | |
| 63 | const mlgo::MLGOHeuristics &ClContext::mlgo() const |
| 64 | { |
nothing calls this directly
no test coverage detected