Update Kokkos library in LAMMPS to v3.4.0

This commit is contained in:
Stan Gerald Moore
2021-04-26 16:28:19 -06:00
parent 39f3c1684f
commit 692da3bf88
358 changed files with 16375 additions and 10003 deletions

View File

@ -75,8 +75,13 @@ struct hello_world {
// The TeamPolicy<>::member_type provides functions to query the multi
// dimensional index of a thread as well as the number of thread-teams and
// the size of each team.
#ifndef __SYCL_DEVICE_ONLY__
// FIXME_SYCL needs printf workaround
printf("Hello World: %i %i // %i %i\n", thread.league_rank(),
thread.team_rank(), thread.league_size(), thread.team_size());
#else
(void)thread;
#endif
}
};

View File

@ -85,11 +85,16 @@ int main(int narg, char* args[]) {
policy,
KOKKOS_LAMBDA(const team_member& thread, int& lsum) {
lsum += 1;
// TeamPolicy<>::member_type provides functions to query the
// multidimensional index of a thread, as well as the number of
// thread teams and the size of each team.
// TeamPolicy<>::member_type provides functions to query the
// multidimensional index of a thread, as well as the number of
// thread teams and the size of each team.
#ifndef __SYCL_DEVICE_ONLY__
// FIXME_SYCL needs workaround for printf
printf("Hello World: %i %i // %i %i\n", thread.league_rank(),
thread.team_rank(), thread.league_size(), thread.team_size());
#else
(void)thread;
#endif
},
sum);
#endif

View File

@ -73,8 +73,13 @@ struct hello_world {
// also executed by all threads of the team.
Kokkos::parallel_for(Kokkos::TeamThreadRange(thread, 31),
[&](const int& i) {
#ifndef __SYCL_DEVICE_ONLY__
// FIXME_SYCL needs printf workaround
printf("Hello World: (%i , %i) executed loop %i \n",
thread.league_rank(), thread.team_rank(), i);
#else
(void) i;
#endif
});
}
};