Browse Source

add helper to define constants in examples

Corentin Salingue 8 years ago
parent
commit
2fdafe1537
2 changed files with 23 additions and 0 deletions
  1. 1 0
      examples/cpp/add_vectors_cpp11.cpp
  2. 22 0
      examples/helper.h

+ 1 - 0
examples/cpp/add_vectors_cpp11.cpp

@@ -29,6 +29,7 @@
 #endif
 
 #include <starpu.h>
+#include "../helper.h"
 #if !defined(STARPU_HAVE_CXX11) || defined(STARPU_USE_NUMA)
 int main(int argc, char **argv)
 {

+ 22 - 0
examples/helper.h

@@ -0,0 +1,22 @@
+/* StarPU --- Runtime system for heterogeneous multicore architectures.
+ *
+ * Copyright (C) 2017  Inria
+ *
+ * StarPU is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
+ *
+ * StarPU is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ *
+ * See the GNU Lesser General Public License in COPYING.LGPL for more details.
+ */
+
+#ifndef _TESTS_HELPER_H
+#define _TESTS_HELPER_H
+
+#define STARPU_TEST_SKIPPED 77
+
+#endif /* _TESTS_HELPER_H */