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

Function sync_if_necessary

tests/Utils.h:566–574  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

564 */
565template <typename TensorType>
566inline void sync_if_necessary()
567{
568#ifdef ARM_COMPUTE_CL
569 if (opencl_is_available() && std::is_same<typename std::decay<TensorType>::type, arm_compute::CLTensor>::value)
570 {
571 CLScheduler::get().sync();
572 }
573#endif /* ARM_COMPUTE_CL */
574}
575
576/** Sync tensor if necessary.
577 *

Callers

nothing calls this directly

Calls 2

opencl_is_availableFunction · 0.85
syncMethod · 0.45

Tested by

no test coverage detected