Update Kokkos library in LAMMPS to v3.7.0

This commit is contained in:
Stan Gerald Moore
2022-10-04 14:04:40 -06:00
parent dd072f7e08
commit f9f9e44f2d
653 changed files with 41432 additions and 33597 deletions

View File

@ -52,11 +52,10 @@ namespace Test {
// Test whether allocations survive Kokkos initialize/finalize if done via Raw
// SYCL.
TEST(sycl, raw_sycl_interop) {
Kokkos::InitArguments arguments{-1, -1, -1, false};
Kokkos::initialize(arguments);
Kokkos::initialize();
Kokkos::Experimental::SYCL default_space;
sycl::context default_context = default_space.sycl_context();
sycl::context default_context = default_space.sycl_queue().get_context();
sycl::default_selector device_selector;
sycl::queue queue(default_context, device_selector);

View File

@ -52,7 +52,7 @@ namespace Test {
// Test whether external allocations can be accessed by the default queue.
TEST(sycl, raw_sycl_interop_context_1) {
Kokkos::Experimental::SYCL default_space;
sycl::context default_context = default_space.sycl_context();
sycl::context default_context = default_space.sycl_queue().get_context();
sycl::default_selector device_selector;
sycl::queue queue(default_context, device_selector);
@ -86,7 +86,7 @@ TEST(sycl, raw_sycl_interop_context_1) {
// Test whether regular View allocations can be accessed by non-default queues.
TEST(sycl, raw_sycl_interop_context_2) {
Kokkos::Experimental::SYCL default_space;
sycl::context default_context = default_space.sycl_context();
sycl::context default_context = default_space.sycl_queue().get_context();
sycl::default_selector device_selector;
sycl::queue queue(default_context, device_selector);

View File

@ -49,12 +49,8 @@ namespace Test {
// Test Interoperability with SYCL Streams
TEST(sycl, raw_sycl_queues) {
sycl::default_selector device_selector;
// FIXME_SYCL using an in-order queue here should not be necessary since we
// are using submit_barrier for managing kernel dependencies but this seems to
// be required as a hot fix for now.
sycl::queue queue(device_selector, sycl::property::queue::in_order());
Kokkos::InitArguments arguments{-1, -1, -1, false};
Kokkos::initialize(arguments);
sycl::queue queue(device_selector);
Kokkos::initialize();
int* p = sycl::malloc_device<int>(100, queue);
using MemorySpace = typename TEST_EXECSPACE::memory_space;

View File

@ -102,7 +102,7 @@ void sycl_queue_scratch_test(
Kokkos::View<int64_t, Kokkos::Experimental::SYCLDeviceUSMSpace> counter) {
constexpr int K = 4;
Kokkos::Experimental::SYCL default_space;
sycl::context default_context = default_space.sycl_context();
sycl::context default_context = default_space.sycl_queue().get_context();
sycl::default_selector device_selector;
sycl::queue queue(default_context, device_selector);