Back to Aurora Vision Library website

You are here: Start » Function Reference » All Functions » Configuration » AvsFilter_EnableGPUProcessing

AvsFilter_EnableGPUProcessing


This is Filter Equivalent. This function may be present in generated code, but should not be used in hand-written code.

Header: AVL.h
Namespace: avs
Module: FoundationBasic

Resumes or suspends GPU OpenCL processing in filters.

Syntax

void avs::AvsFilter_EnableGPUProcessing
(
	bool inEnable
)

Parameters

Name Type Default Description
Input value inEnable bool True True to resume, False to suspend GPU processing

Description

After first execution of AvsFilter_InitGPUProcessing processing of filters on OpenCL device is enabled and all OpenCL capable filters are by default always executed on such device. When performance of specific filter instances is not satisfactory processing on OpenCL device can be suspended resulting in execution of a filter back on main CPU.

To suspend OpenCL execution use this filter with inEnable input set to False, placed before problematic filters. OpenCL processing must be always resumed by another instance of this filter with inEnable input set to True placed after problematic filter. OpenCL processing is not resumed automatically, even after starting next iteration or on subsequent execution of AvsFilter_InitGPUProcessing.

Executing this filter before previously executed AvsFilter_InitGPUProcessing has no effect.

See Also