From 8955b9e1eb701f55b68136e57400ff9743a892f5 Mon Sep 17 00:00:00 2001
From: Incardona Pietro <incardon@mpi-cbg.de>
Date: Wed, 15 Dec 2021 18:31:27 +0100
Subject: [PATCH] Fixing memBW when nvcc is not there

---
 example/Performance/memBW/main.cu | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/example/Performance/memBW/main.cu b/example/Performance/memBW/main.cu
index c46cbb700..4541cbb48 100644
--- a/example/Performance/memBW/main.cu
+++ b/example/Performance/memBW/main.cu
@@ -1,3 +1,5 @@
+#ifdef __NVCC__
+
 #include "Vector/map_vector.hpp"
 #include "util/stat/common_statistics.hpp"
 
@@ -58,3 +60,12 @@ int main(int argc, char *argv[])
         std::cout << "BW: " << nele*4*19 / t.getwct() * 1e-9 << " GB/s"  << std::endl;
     }
 }
+
+#else
+
+int main(int argc, char *argv[])
+{
+}
+
+#endif
+
-- 
GitLab