TOpenCLKernelList.Find Method

function Find(const KernelName: string; var Idx: integer): boolean;

Searches for and returns the index of the kernel with KernelName.

#NameTypeDescription
1KernelNamestring
2Idxinteger

Returns: boolean

Remarks:

Returns true, if the kernel with KernelName exists and the Idx parameter will contain the index in the list on the output.