Skip to content

Commit b17c40c

Browse files
Format fixes and cleaning
Co-authored-by: Vicente Adolfo Bolea Sanchez <[email protected]>
1 parent 6aed25a commit b17c40c

File tree

2 files changed

+11
-16
lines changed

2 files changed

+11
-16
lines changed

testing/adios2/gpu-backend/CMakeLists.txt

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,16 @@
22
# Distributed under the OSI-approved Apache License, Version 2.0. See
33
# accompanying file Copyright.txt for details.
44
# ------------------------------------------------------------------------------#
5-
include(ADIOSFunctions)
5+
set(CMAKE_CXX_STANDARD 17)
6+
set(CMAKE_CXX_STANDARD_REQUIRED ON)
7+
if(DEFINED Kokkos_CXX_COMPILER)
8+
set(CMAKE_CXX_COMPILER "${Kokkos_CXX_COMPILER}")
9+
endif()
610

7-
set(CMAKE_CXX_STANDARD 17)
8-
set(CMAKE_CXX_STANDARD_REQUIRED ON)
9-
if(DEFINED Kokkos_CXX_COMPILER)
10-
set(CMAKE_CXX_COMPILER "${Kokkos_CXX_COMPILER}")
11-
endif()
11+
gtest_add_tests_helper(WriteReadKokkos MPI_ALLOW BP Engine.BP. .BP5
12+
WORKING_DIRECTORY ${BP5_DIR} EXTRA_ARGS "BP5"
13+
)
1214

13-
gtest_add_tests_helper(WriteReadKokkos MPI_ALLOW BP Engine.BP. .BP5
14-
WORKING_DIRECTORY ${BP5_DIR} EXTRA_ARGS "BP5"
15-
)
16-
17-
foreach(tgt ${Test.Engine.BP.WriteReadKokkos-TARGETS})
18-
target_link_libraries(${tgt} Kokkos::kokkos)
19-
endforeach()
15+
foreach(tgt ${Test.Engine.BP.WriteReadKokkos-TARGETS})
16+
target_link_libraries(${tgt} Kokkos::kokkos)
17+
endforeach()

testing/adios2/gpu-backend/TestBPWriteReadKokkos.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -367,9 +367,6 @@ bool compareSelection2D(
367367
if (b(x, y) != a(start_0 + x, start_1 + y))
368368
{
369369
lmatch++;
370-
// Add lines back when using Kokkos 4.2
371-
// Kokkos::printf(" Non-match at pos = (%d %d) : input = %f : output = %f\n", x,
372-
// y, a(start_0 + x, start_1 + y), b(x, y));
373370
}
374371
},
375372
match);

0 commit comments

Comments
 (0)