BNNSGraphCompileOptionsSetTargetSingleThread(_:_:)
Sets the option for the compiled graph to execute on a single thread.
Declaration
func BNNSGraphCompileOptionsSetTargetSingleThread(_ options: bnns_graph_compile_options_t, _ value: Bool)Parameters
- options:
The compilation options object.
- value:
If
true, the options specify single-threaded execution; otherwise, the options specify multi-threaded execution.
Discussion
The default option is execution on multiple threads.
See Also
Specifying and querying compilation options
bnns_graph_compile_options_tBNNSGraphCompileOptionsMakeDefault()BNNSGraphCompileOptionsDestroy(_:)BNNSGraphCompileOptionsSetOutputPath(_:_:)BNNSGraphCompileOptionsGetOutputPath(_:)BNNSGraphCompileOptionsSetOutputFD(_:_:)BNNSGraphCompileOptionsGetOutputFD(_:)BNNSGraphCompileOptionsGetTargetSingleThread(_:)BNNSGraphCompileOptionsSetOptimizationPreference(_:_:)BNNSGraphCompileOptionsGetOptimizationPreference(_:)BNNSGraphOptimizationPreferenceBNNSGraphCompileOptionsSetGenerateDebugInfo(_:_:)BNNSGraphCompileOptionsGetGenerateDebugInfo(_:)BNNSTargetSystemGeneric