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

This commit is contained in:
sjplimp
2014-02-11 00:09:44 +00:00
parent 243a4f5703
commit 0064c5bcce
5 changed files with 128 additions and 5 deletions

View File

@ -43,6 +43,7 @@
#include "special.h"
#include "variable.h"
#include "accelerator_cuda.h"
#include "accelerator_kokkos.h"
#include "error.h"
#include "memory.h"
@ -1389,6 +1390,11 @@ void Input::package()
delete [] fixarg;
force->newton_pair = 0;
} else if (strcmp(arg[0],"kokkos") == 0) {
if (!lmp->kokkos)
error->all(FLERR,"Package kokkos command without KOKKOS installed");
lmp->kokkos->accelerator(narg-1,&arg[1]);
} else if (strcmp(arg[0],"omp") == 0) {
char **fixarg = new char*[2+narg];
fixarg[0] = (char *) "package_omp";