Update Kokkos library in LAMMPS to v3.2
This commit is contained in:
@ -54,12 +54,12 @@
|
||||
namespace Test {
|
||||
|
||||
TEST(TEST_CATEGORY, view_layoutstride_left_to_layoutleft_assignment) {
|
||||
typedef TEST_EXECSPACE exec_space;
|
||||
using exec_space = TEST_EXECSPACE;
|
||||
|
||||
auto t = time(nullptr);
|
||||
srand(t); // Use current time as seed for random generator
|
||||
printf("view_layoutstride_left_to_layoutleft_assignment: srand(%lu)\n",
|
||||
size_t(t));
|
||||
static_cast<unsigned long>(t));
|
||||
|
||||
{ // Assignment of rank-1 LayoutLeft = LayoutStride
|
||||
int ndims = 1;
|
||||
@ -336,12 +336,12 @@ TEST(TEST_CATEGORY, view_layoutstride_left_to_layoutleft_assignment) {
|
||||
}
|
||||
|
||||
TEST(TEST_CATEGORY, view_layoutstride_right_to_layoutright_assignment) {
|
||||
typedef TEST_EXECSPACE exec_space;
|
||||
using exec_space = TEST_EXECSPACE;
|
||||
|
||||
auto t = time(nullptr);
|
||||
srand(t); // Use current time as seed for random generator
|
||||
printf("view_layoutstride_right_to_layoutright_assignment: srand(%lu)\n",
|
||||
size_t(t));
|
||||
static_cast<unsigned long>(t));
|
||||
|
||||
{ // Assignment of rank-1 LayoutRight = LayoutStride
|
||||
int ndims = 1;
|
||||
@ -618,12 +618,12 @@ TEST(TEST_CATEGORY, view_layoutstride_right_to_layoutright_assignment) {
|
||||
}
|
||||
|
||||
TEST(TEST_CATEGORY_DEATH, view_layoutstride_right_to_layoutleft_assignment) {
|
||||
typedef TEST_EXECSPACE exec_space;
|
||||
using exec_space = TEST_EXECSPACE;
|
||||
|
||||
auto t = time(nullptr);
|
||||
srand(t); // Use current time as seed for random generator
|
||||
printf("view_layoutstride_right_to_layoutleft_assignment: srand(%lu)\n",
|
||||
size_t(t));
|
||||
static_cast<unsigned long>(t));
|
||||
|
||||
{ // Assignment of rank-1 LayoutLeft = LayoutStride (LayoutRight compatible)
|
||||
int ndims = 1;
|
||||
@ -661,6 +661,10 @@ TEST(TEST_CATEGORY_DEATH, view_layoutstride_right_to_layoutleft_assignment) {
|
||||
ASSERT_EQ(dst.span(), src.span());
|
||||
ASSERT_EQ(test, true);
|
||||
}
|
||||
// WORKAROUND OPENMPTARGET : death tests don't seem to work ...
|
||||
#ifdef KOKKOS_ENABLE_OPENMPTARGET
|
||||
return;
|
||||
#endif
|
||||
{ // Assignment of rank-2 LayoutLeft = LayoutStride (LayoutRight compatible)
|
||||
int ndims = 2;
|
||||
int dims[] = {10, 9};
|
||||
@ -769,12 +773,12 @@ TEST(TEST_CATEGORY_DEATH, view_layoutstride_right_to_layoutleft_assignment) {
|
||||
}
|
||||
|
||||
TEST(TEST_CATEGORY_DEATH, view_layoutstride_left_to_layoutright_assignment) {
|
||||
typedef TEST_EXECSPACE exec_space;
|
||||
using exec_space = TEST_EXECSPACE;
|
||||
|
||||
auto t = time(nullptr);
|
||||
srand(t); // Use current time as seed for random generator
|
||||
printf("view_layoutstride_left_to_layoutright_assignment: srand(%lu)\n",
|
||||
size_t(t));
|
||||
static_cast<unsigned long>(t));
|
||||
|
||||
{ // Assignment of rank-1 LayoutRight = LayoutStride (LayoutLeft compatible)
|
||||
int ndims = 1;
|
||||
@ -812,6 +816,10 @@ TEST(TEST_CATEGORY_DEATH, view_layoutstride_left_to_layoutright_assignment) {
|
||||
ASSERT_EQ(dst.span(), src.span());
|
||||
ASSERT_EQ(test, true);
|
||||
}
|
||||
// WORKAROUND OPENMPTARGET : death tests don't seem to work ...
|
||||
#ifdef KOKKOS_ENABLE_OPENMPTARGET
|
||||
return;
|
||||
#endif
|
||||
{ // Assignment of rank-2 LayoutRight = LayoutStride (LayoutLeft compatible)
|
||||
int ndims = 2;
|
||||
int dims[] = {10, 9};
|
||||
|
||||
Reference in New Issue
Block a user