Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Managing the GPU memory usage #117

Open
AlkaSaliss opened this issue Oct 7, 2019 · 0 comments
Open

Managing the GPU memory usage #117

AlkaSaliss opened this issue Oct 7, 2019 · 0 comments

Comments

@AlkaSaliss
Copy link

Hi

I'm trying to do hyperparameters optimization on a GPU machine with tensorflow-gpu installed.
In my Keras model I manage the gpu memory with the following code snippet (without it, tensorflow occupies all available GPU memory by default) :

import tensorflow as tf
import keras
keras.backend.clear_session()
config_gpu = tf.ConfigProto()
config_gpu.gpu_options.allow_growth=True
sess = tf.Session(config=config_gpu)
keras.backend.set_session(sess)

However, as I have no idea about how gpflowopt uses tensorflow I can't manage its GPU memory usage, and I am running out of memory each time I launch optimization experiment.

Do you have any suggestion about how (or where) I can modify the gpflowopt code to manage gpu memory allocation ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant