MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / create_context

Function create_context

src/c/AclContext.cpp:58–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58arm_compute::IContext *create_context(AclTarget target, const AclContextOptions *options)
59{
60 ARM_COMPUTE_UNUSED(options);
61
62 switch (target)
63 {
64#ifdef ARM_COMPUTE_CPU_ENABLED
65 case AclCpu:
66 return create_backend_ctx<arm_compute::cpu::CpuContext>(options);
67#endif /* ARM_COMPUTE_CPU_ENABLED */
68#ifdef ARM_COMPUTE_OPENCL_ENABLED
69 case AclGpuOcl:
70 return create_backend_ctx<arm_compute::gpu::opencl::ClContext>(options);
71#endif /* ARM_COMPUTE_OPENCL_ENABLED */
72 default:
73 return nullptr;
74 }
75 return nullptr;
76}
77} // namespace
78
79extern "C" AclStatus AclCreateContext(AclContext *external_ctx, AclTarget target, const AclContextOptions *options)

Callers 1

AclCreateContextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected