LAMMPS WWW Site - LAMMPS Documentation - LAMMPS Mailing List Archives
[lammps-users] [Kokkos] inconsistency in rmass across pair/fix/compute
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lammps-users] [Kokkos] inconsistency in rmass across pair/fix/compute


From: Denis Taniguchi <Denis.Taniguchi@...7548...>
Date: Fri, 11 May 2018 10:51:00 +0000

Hi all,


I noticed that sometimes rmass is just treated as a double* and sometimes as a AT::t_float_1d_randomread.

When treated as double* it takes the content of atomKK->rmass which is a pointer to host data. In FixNVEKokkos it stores rmass as double* but uses it inside a functor (FixNVEKokkosInitialIntegrateFunctor calling initial_integrate_rmass_item) which is dispatched by parallel_for.

Will the device kernel automagically copy the content to device memory?

Regards,


Denis