Skip to content
Snippets Groups Projects
Commit 83310542 authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Plugged to CLI11 (command line parser)

parent 9c0255be
No related branches found
No related tags found
No related merge requests found
...@@ -12,15 +12,22 @@ include(CheckNotInSources) ...@@ -12,15 +12,22 @@ include(CheckNotInSources)
project (Pastis) project (Pastis)
# CLI11
add_subdirectory(${CMAKE_SOURCE_DIR}/packages/CLI11)
include_directories(${CMAKE_SOURCE_DIR}/packages/CLI11/include)
# Kokkos # Kokkos
add_subdirectory(${CMAKE_SOURCE_DIR}/packages/kokkos) add_subdirectory(${CMAKE_SOURCE_DIR}/packages/kokkos)
include(GetKokkosCompilerFlags)
include_directories(${Kokkos_INCLUDE_DIRS_RET}) include_directories(${Kokkos_INCLUDE_DIRS_RET})
# Pastis utils # Pastis utils
add_subdirectory(utils) add_subdirectory(utils)
include_directories(utils) include_directories(utils)
# Compiler flags
include(GetKokkosCompilerFlags)
# Pastis binary # Pastis binary
add_executable(pastis main.cpp) add_executable(pastis main.cpp)
target_link_libraries(pastis kokkos PastisUtils) target_link_libraries(pastis kokkos PastisUtils)
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
#include <Kokkos_Core.hpp> #include <Kokkos_Core.hpp>
#include <RevisionInfo.hpp> #include <RevisionInfo.hpp>
#include <CLI/CLI.hpp>
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
std::cout << "It's pastis time!\n"; std::cout << "It's pastis time!\n";
...@@ -44,6 +46,7 @@ int main(int argc, char *argv[]) ...@@ -44,6 +46,7 @@ int main(int argc, char *argv[])
seq_count += (i % 2) == 0; seq_count += (i % 2) == 0;
} }
int k =3;
count_time = timer.seconds(); count_time = timer.seconds();
std::cout << "Sequential: " << seq_count << ' ' << count_time << '\n'; std::cout << "Sequential: " << seq_count << ' ' << count_time << '\n';
Kokkos::finalize(); Kokkos::finalize();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment