Replies: 4 comments 2 replies
-
|
Hi @keenanbar, thanks for your question. Can you show me the versions of packages you have installed? I would like to reproduce your issue... or maybe, we can already spot some problem with packages installed. Kind regards |
Beta Was this translation helpful? Give feedback.
-
|
Small Addon question: What kind of error do you get when executing the code you provided? |
Beta Was this translation helpful? Give feedback.
-
|
model2_moreorientations_gempycompat.json While I was troubleshooting I did run into something interesting. When I uncomment the torch.set_default_device('cuda') command, I get the following error. I'm not sure exactly how pytorch is integrated with gempy and if this is to be expected if some tensors would always be calculated on the CPU regardless of the use_gpu parameter, but I included it just in case that gives you a clue as to what may be going wrong. MRE: Environment: |
Beta Was this translation helpful? Give feedback.
-
|
Hi again, I actually have never tracked the usage but had significant speed-ups using setting GPU so I assumed it worked. You might be right that some things are always computed on CPU. This however is more of a backend question that falls into @Leguark expertise as the main developer. It might take some time for him or us to look into this however. My suggestion for now would be if to check if you can track a computation speed increase for models with more points/higher resolution comparing cpu vs gpu turned on. Sorry for the slightly unsatisfying answer, |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there some kind of guide or tutorial on utilizing the GPU in pytorch to perform some of the computation? I have looked at various tutorials and examples which mention the GPU and this one (https://docs.gempy.org/examples/real/Moureze.html#sphx-glr-download-examples-real-moureze-py) which actually provides the performance differences, but I have not been able to get gempy working with my GPU.
I would greatly appreciate it if anybody could share a minimum reproducible example of computing a model on the GPU, along with the dependencies and versions that work.
I have verified that torch is working properly because I can create some arrays and do a matrix multiply with them and see it computing on the GPU. At this point I have tried several different versions of pytorch and cuda but have not been able to get gempy to use the GPU. These are the statements I have included to try and get it working:
Edit: I am using a windows machine with an RTX3090. I create a conda virtual environment for gempy and its dependencies.
Beta Was this translation helpful? Give feedback.
All reactions