gempy-project / gempy

GemPy is an open-source, Python-based 3-D structural geological modeling software, which allows the implicit (i.e. automatic) creation of complex geological models from interface and orientation data. It also offers support for stochastic modeling to address parameter and model uncertainties.
https://gempy.org
European Union Public License 1.2
941 stars 232 forks source link

graphic card #838

Closed Joaquinfnz closed 2 months ago

Joaquinfnz commented 8 months ago

How can i use my graphic card in the compile code of gempy? i have an Nvidia 1650 super, thanks

javoha commented 2 months ago

Hello, this should be resolved with the new version of gempy (v3). Setting up pytorch should enable you do use your gpu:

gp.compute_model(data,
            engine_config=gp.data.GemPyEngineConfig(
            backend=gp.data.AvailableBackends.PYTORCH,
            use_gpu=True,
            dtype="float64"
                ))

Please feel free to reopen the issue if you encounter problems with this.