You are here: Symbol Reference > clMtxVec Namespace > Classes > TOpenCLProgram Class > public > LoadProgram Method > TOpenCLProgram.LoadProgram Method (string, TStrings, string, string, boolean)
MtxVec VCL
ContentsIndex
PreviousUpNext
TOpenCLProgram.LoadProgram Method (string, TStrings, string, string, boolean)

Loads programs stored in the SourceCode, adds SourceHeader, sets BuildOptions and compiles.

Pascal
procedure LoadProgram(const aBinFileName: string; const SourceCode: TStrings; const SourceHeader: string; const BuildOptions: string; RebuildAlways: boolean = false); overload;

If the program to be build is already found, the binary version is loaded directly saving valuable startup time for future runs. aBinFileName identifies the name of the binary file in which the compiler will save the result. Set RebuildAlways to True to request unconditial recompile. All Kernels in the Open CL source code are automatically added to the TOpenCLDevice.Kernels list.

Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!