Skip to content

Commit

Permalink
Format fixes and cleaning
Browse files Browse the repository at this point in the history
Co-authored-by: Vicente Adolfo Bolea Sanchez <vicente.bolea@kitware.com>
  • Loading branch information
anagainaru and vicentebolea committed Oct 15, 2024
1 parent d82ad4c commit e46d3dc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 16 deletions.
24 changes: 11 additions & 13 deletions testing/adios2/gpu-backend/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,16 @@
# Distributed under the OSI-approved Apache License, Version 2.0. See
# accompanying file Copyright.txt for details.
# ------------------------------------------------------------------------------#
include(ADIOSFunctions)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
if(DEFINED Kokkos_CXX_COMPILER)
set(CMAKE_CXX_COMPILER "${Kokkos_CXX_COMPILER}")
endif()

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
if(DEFINED Kokkos_CXX_COMPILER)
set(CMAKE_CXX_COMPILER "${Kokkos_CXX_COMPILER}")
endif()
gtest_add_tests_helper(WriteReadKokkos MPI_ALLOW BP Engine.BP. .BP5
WORKING_DIRECTORY ${BP5_DIR} EXTRA_ARGS "BP5"
)

gtest_add_tests_helper(WriteReadKokkos MPI_ALLOW BP Engine.BP. .BP5
WORKING_DIRECTORY ${BP5_DIR} EXTRA_ARGS "BP5"
)

foreach(tgt ${Test.Engine.BP.WriteReadKokkos-TARGETS})
target_link_libraries(${tgt} Kokkos::kokkos)
endforeach()
foreach(tgt ${Test.Engine.BP.WriteReadKokkos-TARGETS})
target_link_libraries(${tgt} Kokkos::kokkos)
endforeach()
3 changes: 0 additions & 3 deletions testing/adios2/gpu-backend/TestBPWriteReadKokkos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -367,9 +367,6 @@ bool compareSelection2D(
if (b(x, y) != a(start_0 + x, start_1 + y))
{
lmatch++;
// Add lines back when using Kokkos 4.2
// Kokkos::printf(" Non-match at pos = (%d %d) : input = %f : output = %f\n", x,
// y, a(start_0 + x, start_1 + y), b(x, y));
}
},
match);
Expand Down

0 comments on commit e46d3dc

Please sign in to comment.