---
title: "BNNSGraphCompileOptionsGetTargetSingleThread(_:)"
framework: accelerate
role: symbol
role_heading: Function
path: "accelerate/bnnsgraphcompileoptionsgettargetsinglethread(_:)"
---

# BNNSGraphCompileOptionsGetTargetSingleThread(_:)

Returns the option for the compiled graph to execute on a single thread.

## Declaration

```swift
func BNNSGraphCompileOptionsGetTargetSingleThread(_ options: bnns_graph_compile_options_t) -> Bool
```

## Parameters

- `options`: The compilation options object.

## Return Value

Return Value true if the options specify single-threaded execution; otherwise, false.

## See Also

### Specifying and querying compilation options

- [bnns_graph_compile_options_t](accelerate/bnns_graph_compile_options_t.md)
- [BNNSGraphCompileOptionsMakeDefault()](accelerate/bnnsgraphcompileoptionsmakedefault().md)
- [BNNSGraphCompileOptionsDestroy(_:)](accelerate/bnnsgraphcompileoptionsdestroy(_:).md)
- [BNNSGraphCompileOptionsSetOutputPath(_:_:)](accelerate/bnnsgraphcompileoptionssetoutputpath(_:_:).md)
- [BNNSGraphCompileOptionsGetOutputPath(_:)](accelerate/bnnsgraphcompileoptionsgetoutputpath(_:).md)
- [BNNSGraphCompileOptionsSetOutputFD(_:_:)](accelerate/bnnsgraphcompileoptionssetoutputfd(_:_:).md)
- [BNNSGraphCompileOptionsGetOutputFD(_:)](accelerate/bnnsgraphcompileoptionsgetoutputfd(_:).md)
- [BNNSGraphCompileOptionsSetTargetSingleThread(_:_:)](accelerate/bnnsgraphcompileoptionssettargetsinglethread(_:_:).md)
- [BNNSGraphCompileOptionsSetOptimizationPreference(_:_:)](accelerate/bnnsgraphcompileoptionssetoptimizationpreference(_:_:).md)
- [BNNSGraphCompileOptionsGetOptimizationPreference(_:)](accelerate/bnnsgraphcompileoptionsgetoptimizationpreference(_:).md)
- [BNNSGraphOptimizationPreference](accelerate/bnnsgraphoptimizationpreference.md)
- [BNNSGraphCompileOptionsSetGenerateDebugInfo(_:_:)](accelerate/bnnsgraphcompileoptionssetgeneratedebuginfo(_:_:).md)
- [BNNSGraphCompileOptionsGetGenerateDebugInfo(_:)](accelerate/bnnsgraphcompileoptionsgetgeneratedebuginfo(_:).md)
- [BNNSTargetSystemGeneric](accelerate/bnnstargetsystemgeneric.md)
