diff --git a/CMakeLists.txt b/CMakeLists.txt index 22b35dd8c6de69ecc6a0449d4a83429dd5c0a507..e3ab56d6081599f14745e97a4f378465c0220e20 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,15 +12,22 @@ include(CheckNotInSources) project (Pastis) +# CLI11 +add_subdirectory(${CMAKE_SOURCE_DIR}/packages/CLI11) +include_directories(${CMAKE_SOURCE_DIR}/packages/CLI11/include) + # Kokkos add_subdirectory(${CMAKE_SOURCE_DIR}/packages/kokkos) -include(GetKokkosCompilerFlags) include_directories(${Kokkos_INCLUDE_DIRS_RET}) + # Pastis utils add_subdirectory(utils) include_directories(utils) +# Compiler flags +include(GetKokkosCompilerFlags) + # Pastis binary add_executable(pastis main.cpp) target_link_libraries(pastis kokkos PastisUtils) diff --git a/main.cpp b/main.cpp index affb12fd5554578b2ef4eddb45009bdaa497642f..4daf0270a5efee866732203b5fbbae946c592492 100644 --- a/main.cpp +++ b/main.cpp @@ -2,6 +2,8 @@ #include <Kokkos_Core.hpp> #include <RevisionInfo.hpp> +#include <CLI/CLI.hpp> + int main(int argc, char *argv[]) { std::cout << "It's pastis time!\n"; @@ -44,6 +46,7 @@ int main(int argc, char *argv[]) seq_count += (i % 2) == 0; } + int k =3; count_time = timer.seconds(); std::cout << "Sequential: " << seq_count << ' ' << count_time << '\n'; Kokkos::finalize();