Skip to content
This repository was archived by the owner on Jul 27, 2026. It is now read-only.
This repository was archived by the owner on Jul 27, 2026. It is now read-only.

first party allocates all GPU for itself #135

Description

@omarelnakib

Screenshot from 2023-11-29 14-26-08
Hi,
when I try running using GPU, the first party allocates all the memory of the GPU, and when the other parties are created they throw exception out of memory as they cannot allocate anymore from the memory.
I use:
Tensorflow 1.15.0
keras 2.11.0
python 3.6
i tried adding this code in the keras_fl_model and they run successfully but no change happens, still allocates the whole memory
```
config = tf.compat.v1.ConfigProto()
config.gpu_options.allow_growth=True
config.gpu_options.per_process_gpu_memory_fraction = 0.1
self.sess = tf.compat.v1.Session(config=config)
set_session(self.sess)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions