gempy icon indicating copy to clipboard operation
gempy copied to clipboard

How to use GPU in 'set_interpolator'

Open leilin1995 opened this issue 1 year ago • 3 comments

I used the resolution of (256,256,256) in my own modelling session, and I want to accelerate the interpolation process by GPU. What should I do? image

leilin1995 avatar Apr 13 '23 11:04 leilin1995

Hi, I think this is a little tricky due to the Theano dependency. I havent done it myself and hopefully it will be resolved with a new gempy version moving away from theano. You could try the answer provided here: #147

javoha avatar Apr 14 '23 07:04 javoha

Hello! If you are using a dedicated GPU with cuda, try

os.environ["THEANO_FLAGS"] = "mode=FAST_RUN,device=cuda"

before setting up the interpolator.

NilsChudalla avatar Apr 14 '23 13:04 NilsChudalla

@leilin1995 do you have any update on your issue? Did the suggestion by @NilsChudalla work for you?

AlexanderJuestel avatar Jun 20 '23 15:06 AlexanderJuestel

Theano backend is discontinued. In GemPy v3 GPU usage will be exposed in the API in the coming couple of months.

Leguark avatar Apr 16 '24 12:04 Leguark