CorTeX Core ABI 7
ToolTech Software · C++ library reference
Loading...
Searching...
No Matches
ctxCppProgram.h File Reference

Go to the source code of this file.

Classes

class  ctxCppProgram

Functions

gzBool ctxExportCppProgram (gzSerializeAdapter *adapter, ctxVirtualMachineProgram *program, const gzString &functionName, gzString *error=nullptr, gzUInt32 instructionsPerFunction=512)
 Export direct C++11 operations from CAL to a caller-owned Gizmo adapter.
gzBool ctxExportCppProgramSources (const gzString &directoryURL, ctxVirtualMachineProgram *program, const gzString &functionName, gzString *error=nullptr, gzUInt32 instructionsPerFunction=8192)
 Export an entry source and bounded chunk translation units to an existing Gizmo adapter URL directory.
ctxCppProgram * createCppProgram (const ctxProgramExecution &flags, ctxDetailedRegisterUse *register_use)

Function Documentation

◆ createCppProgram()

ctxCppProgram * createCppProgram ( const ctxProgramExecution & flags,
ctxDetailedRegisterUse * register_use )

References createCppProgram().

Referenced by createCppProgram().

◆ ctxExportCppProgram()

gzBool ctxExportCppProgram ( gzSerializeAdapter * adapter,
ctxVirtualMachineProgram * program,
const gzString & functionName,
gzString * error = nullptr,
gzUInt32 instructionsPerFunction = 512 )

Export direct C++11 operations from CAL to a caller-owned Gizmo adapter.

The host compiles the source and supplies live runtime banks and stack. Parameters remain runtime data. Chunk size bounds generated function size. No existing API layout or persisted format is changed.

References CTX_EXPORT, and ctxExportCppProgram().

Referenced by ctxExportCppProgram().

◆ ctxExportCppProgramSources()

gzBool ctxExportCppProgramSources ( const gzString & directoryURL,
ctxVirtualMachineProgram * program,
const gzString & functionName,
gzString * error = nullptr,
gzUInt32 instructionsPerFunction = 8192 )

Export an entry source and bounded chunk translation units to an existing Gizmo adapter URL directory.

Compile all files together. Parameters stay data. This limits native compiler memory for large CNNs without changing semantics.

References CTX_EXPORT, and ctxExportCppProgramSources().

Referenced by ctxExportCppProgramSources().