Permalink
Browse files

bench: fixed __cplusplus macros for Rodinia programs

  • Loading branch information...
1 parent eefd3b9 commit f630d60774ab5091b3ca38ab4d90c6c93cec2292 Shinpei Kato committed Sep 5, 2012
Showing with 12 additions and 0 deletions.
  1. +6 −0 bench/rodinia/cuda/nn/nn_cuda.c
  2. +6 −0 bench/rodinia/cuda/util/util.c
@@ -4,7 +4,13 @@
#include <sys/time.h>
#include <float.h>
#include <vector>
+#ifdef __cplusplus
+extern "C" {
#include "/usr/local/gdev/include/cuda.h"
+}
+#else
+#include "/usr/local/gdev/include/cuda.h"
+#endif
#include "util.h" /* cuda_driver_api_{init,exit}() */
#include "nn.h"
@@ -1,5 +1,11 @@
#include <stdio.h>
+#ifdef __cplusplus
+extern "C" {
#include <cuda.h>
+}
+#else
+#include <cuda.h>
+#endif
#include "util.h"
CUresult cuda_driver_api_init(CUcontext *pctx, CUmodule *pmod, const char *f)

0 comments on commit f630d60

Please sign in to comment.