| 92 | } |
| 93 | |
| 94 | void OpenclDevice::BuildPrograms() { |
| 95 | ocl::current_context().add_program(opencl::distribution_str, |
| 96 | "opencl_distribution"); |
| 97 | ocl::current_context().add_program(opencl::tensormath_str, |
| 98 | "opencl_tensor_math"); |
| 99 | ocl::current_context().add_program(opencl::im2col_str, "opencl_im2col"); |
| 100 | ocl::current_context().add_program(opencl::pooling_str, "opencl_pooling"); |
| 101 | } |
| 102 | |
| 103 | void OpenclDevice::DoExec(function<void(Context*)>&& fn, int executor) { |
| 104 | fn(&ctx_); |
nothing calls this directly
no outgoing calls
no test coverage detected