From 331bb9b0caf5446dad8489afce5063dd708d7002 Mon Sep 17 00:00:00 2001
From: Matteo Cicuttin <datafl4sh@toxicnet.eu>
Date: Thu, 26 Mar 2020 15:45:56 +0100
Subject: [PATCH] Added skeleton for OpenAcc.

---
 kokkos-testing/fd_catalog/CMakeLists.txt | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/kokkos-testing/fd_catalog/CMakeLists.txt b/kokkos-testing/fd_catalog/CMakeLists.txt
index e385fbd..df923f6 100644
--- a/kokkos-testing/fd_catalog/CMakeLists.txt
+++ b/kokkos-testing/fd_catalog/CMakeLists.txt
@@ -19,6 +19,11 @@ if (SILO_FOUND)
     set(LINK_LIBS ${LINK_LIBS} ${SILO_LIBRARY})
 endif()
 
+find_package(OpenACC)
+if (OpenACC_CXX_FOUND)
+    add_definitions(-DHAVE_OPENACC)
+endif()
+
 option(ENABLE_TIMESTEP_OUTPUT "Save timesteps (don't use during perf meas)" OFF)
 if (ENABLE_TIMESTEP_OUTPUT)
     if (NOT SILO_FOUND)
-- 
GitLab