Back to FabImage Library website

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

FisFilter_EnableGPUProcessing


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

Header: FIL.h
Namespace: fis
Module: FoundationBasic

Resumes or suspends GPU OpenCL processing in filters.

Syntax

void fis::FisFilter_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 FisFilter_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 FisFilter_InitGPUProcessing.

Executing this filter before previously executed FisFilter_InitGPUProcessing has no effect.

See Also