From 7c6a97833ef2f22ca72c3a02476c0c5b8538858f Mon Sep 17 00:00:00 2001 From: Mladen Ivkovic <mladen.ivkovic@hotmail.com> Date: Mon, 10 Jul 2023 19:43:22 +0100 Subject: [PATCH] started on otter --- swift.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/swift.c b/swift.c index 17890b5313..d6b8faacb2 100644 --- a/swift.c +++ b/swift.c @@ -35,6 +35,13 @@ #include <sys/stat.h> #include <unistd.h> + +/* I need to enable stuff to get something out of it */ +#define OTTER_TASK_GRAPH_ENABLE_USER 1 +#include "/home/mivkov/local/otter_oneapi2023/include/otter/otter-task-graph-user.h" + + + /* MPI headers. */ #ifdef WITH_MPI #include <mpi.h> @@ -121,6 +128,8 @@ int main(int argc, char *argv[]) { int nr_nodes = 1, myrank = 0; + OTTER_INITIALISE(); + #ifdef WITH_MPI /* Start by initializing MPI. */ int res = 0, prov = 0; @@ -1939,6 +1948,9 @@ int main(int argc, char *argv[]) { message("resubmission command completed."); } + + OTTER_FINALISE(); + /* Clean everything */ if (with_verbose_timers) timers_close_file(); if (with_cosmology) cosmology_clean(e.cosmology); -- GitLab