SetActiveEngineOptions
Syntax
Definition:
METHOD SetActiveEngineOptions : BOOL
VAR_INPUT
sEngineOptions : T_MaxString;
END_VAR
Inputs
Name |
Type |
Description |
---|---|---|
sEngineOptions |
T_MaxString |
|
Return value
BOOL
Input is a JSON-String with the following Key-Value-Pairs:
Key | Value | Defaut-Value* |
allow_FPU | TRUE / FALSE | TRUE |
Allow_SSE3 | TRUE / FALSE | TRUE |
Allow_AVX | TRUE / FALSE | TRUE |
Allow_FMA | TRUE / FALSE | TRUE |
Allow_AVX_512F | TRUE / FALSE | TRUE |
*Default-Values: The library uses as default the maximum performance. Hence, all available SIMD-extensions provided by the target PC’s CPU are set to TRUE by default.
Sample Code to disable FMA and allow AVX (all others will be left unaltered):
fbPredict : FB_MllPrediction;
EngineOpts : T_MaxString := '{ "allow_AVX":"true", "allow_FMA":"false" }';
fbPredict.SetActiveEngineOptions(EngineOpts);