MCPcopy Create free account
hub / github.com/apache/singa / BuildPrograms

Method BuildPrograms

src/core/device/opencl_device.cc:94–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94void 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
103void OpenclDevice::DoExec(function<void(Context*)>&& fn, int executor) {
104 fn(&ctx_);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected