Contents

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