TOpenCLProgram.LoadProgram Method

Overload List

#SignatureDescription
1procedure LoadProgram(const SrcFileNames: TStringList; const SourceHeader: string; const BuildOptions: string; RebuildAlways: Boolean);Loads programs stored in SrcFileNames, adds SourceHeader, sets BuildOptions and compiles.
2procedure LoadProgram(const aBinFileName: string; const SourceCode: TStrings; const SourceHeader: string; const BuildOptions: string; RebuildAlways: Boolean);Loads programs stored in the SourceCode, adds SourceHeader, sets BuildOptions and compiles.
3procedure LoadProgram(const ResName: string; const SourceHeader: string; const BuildOptions: string; RebuildAlways: Boolean);Loads programs stored in the resource defined with ResName, adds SourceHeader, sets BuildOptions and compiles.

Overload 1: procedure LoadProgram(const SrcFileNames: TStringList; const SourceHeader: string; const BuildOptions: string; RebuildAlways: Boolean);

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

#NameTypeDescription
1SrcFileNamesTStringList
2SourceHeaderstring
3BuildOptionsstring
4RebuildAlwaysBoolean

Result: stored in self (calling object)

Remarks:

If the program to be build is already found, the binary version is loaded directly saving valuable startup time for future runs. Set RebuildAlways to True to request unconditial recompile. When a driver change or hardware change is detected the programs will be automatically rebuild ignoring the value of RebuildAlways. All Kernels in the Open CL source code are automatically added to the TOpenCLDevice.Kernels list.

Overload 2: procedure LoadProgram(const aBinFileName: string; const SourceCode: TStrings; const SourceHeader: string; const BuildOptions: string; RebuildAlways: Boolean);

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

#NameTypeDescription
1aBinFileNamestring
2SourceCodeTStrings
3SourceHeaderstring
4BuildOptionsstring
5RebuildAlwaysBoolean

Result: stored in self (calling object)

Remarks:

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.

Overload 3: procedure LoadProgram(const ResName: string; const SourceHeader: string; const BuildOptions: string; RebuildAlways: Boolean);

Loads programs stored in the resource defined with ResName, adds SourceHeader, sets BuildOptions and compiles.

#NameTypeDescription
1ResNamestring
2SourceHeaderstring
3BuildOptionsstring
4RebuildAlwaysBoolean

Result: stored in self (calling object)

Remarks:

If the program to be build is already found, the binary version is loaded directly saving valuable startup time for future runs. Set RebuildAlways to True to request unconditial recompile. When a driver change or hardware change is detected the programs will be automatically rebuild ignoring the value of RebuildAlways. All Kernels in the Open CL source code are automatically added to the TOpenCLDevice.Kernels list.