TOpenCLProgram.LoadProgram Method

Overload List

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

Overload 1: void LoadProgram(TStringList SrcFileNames, String SourceHeader, String BuildOptions, Boolean RebuildAlways)

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 Dew.Math.TOpenCLDevice.Kernels list.

Overload 2: void LoadProgram(String aBinFileName, TStrings SourceCode, String SourceHeader, String BuildOptions, Boolean RebuildAlways)

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 Dew.Math.TOpenCLDevice.Kernels list.

Overload 3: void LoadProgram(String ResName, String SourceHeader, String BuildOptions, Boolean RebuildAlways)

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 Dew.Math.TOpenCLDevice.Kernels list.