|So I tried “package gpu split” command which will work. Am I right if I am saying that gpu package does not support hybrid because the neighbor list cannot be built on GPU in the case and all the bond,angle,improper,long-range will not work either? So what I can do is let CPU run the neighbor and hybrid pair style and leave the GPU-enabled pair style only by using "split 1”.|On Wed, Sep 20, 2017 at 3:06 PM, Xiaoyu Wang <xwang181@...5818...> wrote:
Hi Axel,that makes no sense. there are specific rules that LAMMPS followsstrictly. any kind of "just-in-case" commands are pointless.
1. I am thinking that some styles are not supported by GPU so I put intel package as an alternative.
2. I tried to remove the /gpu suffixes but left the package gpu command in the input. It worked.that is similarly pointless. if you are not using any suffixes, youare not using the GPU. you can tell from the screen output what isgoing on.but if your input works on the CPU, you can use the command line flags-sf and -pk to automatically have the suffixes applied and the packagecommand issued.
My question is:this is all explained at great length in the documentation. there isno much sense in repeating it here. read the manual! carefully!!multiple times!!!there is the "getting started" section, there is a section foracceleration, there is a section for packages and then there are theindividual commands.so get reading, and practice with some simpler inputs (e.g. theexamples given in the "bench" folder) and work your way up to yourrather complex setup.axel.
Do I need to specify /gpu after I put gpu package in the script or just let the program decide it should use gpu or not. The same question also comes for the k_space command. Do I need to put pppm/gpu and package gpu together or just state once?
-- Dr. Axel Kohlmeyer akohlmey@...24... http://goo.gl/1wk0College of Science & Technology, Temple University, Philadelphia PA, USAInternational Centre for Theoretical Physics, Trieste. Italy.
On Sep 20, 2017, at 1:53 PM, Axel Kohlmeyer <akohlmey@...24...> wrote:
On Wed, Sep 20, 2017 at 2:44 PM, Xiaoyu Wang <xwang181@...5818...> wrote:
I tried to use GPU package with pair style hybrid. Some of them are using
buck/coul/long/gpu and some of them are using lj/cut/coul/long/gpu. But I
received the error:
ERROR: Pair coeff for hybrid has invalid style (../pair_hybrid.cpp:393)
Then I tried to use intel and gpu package together, but it seems that intel
does not support pair_style hybrid either. So can some one recommend me the
best way to accelerate my script or what kind of packages should I build and
how to write the script to use both GPU and CPU.
I will appreciate your help. Thanks!
This is what I wrote in my script regarding the acceleration part.
1: why do you request the intel package, when you are not using any
2: does your input work without the package commands and the /gpu suffixes?
package gpu 1 neigh no
package intel 18
pair_style hybrid buck/coul/long/gpu 12.0 lj/cut/coul/long/gpu 12.0
pair_coeff 1 1 lj/cut/coul/long/gpu 0.5000 3.40
pair_coeff 2 2 lj/cut/coul/long/gpu 0.3000 2.40
pair_coeff 3 3 buck/coul/long/gpu 31532.571
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
lammps-users mailing list
Dr. Axel Kohlmeyer akohlmey@...24... http://goo.gl/1wk0
College of Science & Technology, Temple University, Philadelphia PA, USA
International Centre for Theoretical Physics, Trieste. Italy.