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

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

Pascal
procedure LoadProgram(const SrcFileNames: TStringList; 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. 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.

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