git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@3049 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp
2009-08-11 22:28:59 +00:00
parent 5cc170ca01
commit ee24560ab6
4 changed files with 13 additions and 3 deletions

View File

@ -30,7 +30,7 @@ int LJ_GPU_MemoryT::bytes_per_atom(const int max_nbors) const {
}
template <class numtyp, class acctyp>
int LJ_GPU_MemoryT::get_max_atoms(const int gpu_bytes, const int max_nbors) {
int LJ_GPU_MemoryT::get_max_atoms(const size_t gpu_bytes, const int max_nbors) {
int matoms=static_cast<int>(PERCENT_GPU_MEMORY*gpu_bytes/
bytes_per_atom(max_nbors));
if (matoms>MAX_ATOMS)