# tff.backends.native.set_sync_local_cpp_execution_context

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/federated/blob/v0.87.0 Version 2.0, January 2004 Licensed under the Apache License, Version 2.0 (the) |

Sets default context to a C++ runtime.

    tff.backends.native.set_sync_local_cpp_execution_context(
        default_num_clients: int = 0,
        max_concurrent_computation_calls: int = -1,
        stream_structs: bool = False
    ) -> None

### Used in the notebooks

| Used in the tutorials |
|---|
| - [TFF simulations with accelerators](https://www.tensorflow.org/federated/tutorials/simulations_with_accelerators) - [Sending Different Data To Particular Clients With federated_language.federated_select](https://www.tensorflow.org/federated/tutorials/federated_select) - [Random noise generation in TFF](https://www.tensorflow.org/federated/tutorials/random_noise_generation) |