TOpenCLProgram::LoadProgram Method

Overload List

#SignatureDescription
1void LoadProgram(tStringList *SrcFileNames, const DewString &SourceHeader, const DewString &BuildOptions, bool RebuildAlways = false);Loads programs stored in SrcFileNames, adds SourceHeader, sets BuildOptions and compiles.
2void LoadProgram(const DewString &ResName, const DewString &SourceHeader, const DewString &BuildOptions, bool RebuildAlways = false);Loads programs stored in the resource defined with ResName, adds SourceHeader, sets BuildOptions and compiles.
3void LoadProgram(const DewString &aBinFileName, tStrings *SourceCode, const DewString &SourceHeader, const DewString &BuildOptions, bool RebuildAlways = false);Loads programs stored in the SourceCode, adds SourceHeader, sets BuildOptions and compiles.

Overload 1: void LoadProgram(tStringList *SrcFileNames, const DewString &SourceHeader, const DewString &BuildOptions, bool RebuildAlways = false);

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

#NameTypeDescription
1SrcFileNamestStringList *
2SourceHeaderconst DewString &
3BuildOptionsconst DewString &
4RebuildAlways = falsebool
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.

Declared in Dew::Math::TOpenCLProgram · Dew.Math/clMtxVec.h · Cross-compiler

Overload 2: void LoadProgram(const DewString &ResName, const DewString &SourceHeader, const DewString &BuildOptions, bool RebuildAlways = false);

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

#NameTypeDescription
1ResNameconst DewString &
2SourceHeaderconst DewString &
3BuildOptionsconst DewString &
4RebuildAlways = falsebool
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.

Declared in Dew::Math::TOpenCLProgram · Dew.Math/clMtxVec.h · Cross-compiler

Overload 3: void LoadProgram(const DewString &aBinFileName, tStrings *SourceCode, const DewString &SourceHeader, const DewString &BuildOptions, bool RebuildAlways = false);

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

#NameTypeDescription
1aBinFileNameconst DewString &
2SourceCodetStrings *
3SourceHeaderconst DewString &
4BuildOptionsconst DewString &
5RebuildAlways = falsebool
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.

Declared in Dew::Math::TOpenCLProgram · Dew.Math/clMtxVec.h · Cross-compiler