You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When running the tutorial TFF simulations with accelerators (https://www.tensorflow.org/federated/tutorials/simulations_with_accelerators), the GPU utilization is almost 0.
The GPU utilization is as expected (and training runs much faster) if using the python execution context with tff.backends.native.set_local_python_execution_context().
Environment (please complete the following information):
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu 22.04
Describe the bug
When running the tutorial TFF simulations with accelerators (https://www.tensorflow.org/federated/tutorials/simulations_with_accelerators), the GPU utilization is almost 0.
The GPU utilization is as expected (and training runs much faster) if using the python execution context with
tff.backends.native.set_local_python_execution_context()
.Environment (please complete the following information):
Expected behavior
The TFF simulation should use GPU and run faster.
Additional context
tf.config.list_physical_devices('GPU')
.tff.backends.native.set_sync_local_cpp_execution_context()
.accuracy = keras_evaluate(eval_model, test_data, metric)
and nvidia-smi shows ~80% utilization.tf.config.set_visible_devices([], "GPU")
.The text was updated successfully, but these errors were encountered: