[CP2K-user] [CP2K:13385] Re: Getting cp2k to work with ASE

Yuvam Bhateja yuva... at gmail.com
Tue May 26 05:08:48 UTC 2020


Sir,
I wanted to link cp2k with ase too. But I want to use the GPU of google
colab.

How can I do that to accelerate my calculation using the GPU?

Regards
Yuvam Bhateja

On Tue, 26 May 2020, 10:33 am Maxime Van den Bossche, <
maxime.cp.... at gmail.com> wrote:

> OK, let's take it from the beginning -- after logging in to your remote
> machine
> (which needs to have ASE and CP2K installed), please try the example
> shown on https://www.cp2k.org/tools:ase, substituting the
> /path/to/cp2k_shell.popt
> with the actual path to that executable on your machine:
>
> export ASE_CP2K_COMMAND="mpirun -np 2 /path/to/cp2k_shell.popt"
> python
>
> >>> from ase.calculators.cp2k import CP2K>>> from ase.build import molecule>>> calc = CP2K()>>> atoms = molecule('H2O', calculator=calc)>>> atoms.center(vacuum=2.0)>>> print(atoms.get_potential_energy())
>
>
> If this raises an AssertionError like the one you got earlier, then try to
> exclude that openib component in OpenMPI:
>
> export ASE_CP2K_COMMAND="mpirun -np 2 -mca btl ^openib
> /path/to/cp2k_shell.popt"
>
> and try the python commands again.
>
> --
> You received this message because you are subscribed to the Google Groups
> "cp2k" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to cp... at googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/cp2k/e7abf45f-22c8-40d7-9bba-c5787ab5a688%40googlegroups.com
> <https://groups.google.com/d/msgid/cp2k/e7abf45f-22c8-40d7-9bba-c5787ab5a688%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cp2k.org/archives/cp2k-user/attachments/20200526/41aeb9eb/attachment.htm>


More information about the CP2K-user mailing list