Skip to content

Commit

Permalink
bench: fixed __cplusplus macros for Rodinia programs
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinpei Kato committed Sep 5, 2012
1 parent eefd3b9 commit f630d60
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bench/rodinia/cuda/nn/nn_cuda.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@
#include <sys/time.h> #include <sys/time.h>
#include <float.h> #include <float.h>
#include <vector> #include <vector>
#ifdef __cplusplus
extern "C" {
#include "/usr/local/gdev/include/cuda.h" #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 "util.h" /* cuda_driver_api_{init,exit}() */
#include "nn.h" #include "nn.h"


Expand Down
6 changes: 6 additions & 0 deletions bench/rodinia/cuda/util/util.c
Original file line number Original file line Diff line number Diff line change
@@ -1,5 +1,11 @@
#include <stdio.h> #include <stdio.h>
#ifdef __cplusplus
extern "C" {
#include <cuda.h> #include <cuda.h>
}
#else
#include <cuda.h>
#endif
#include "util.h" #include "util.h"


CUresult cuda_driver_api_init(CUcontext *pctx, CUmodule *pmod, const char *f) CUresult cuda_driver_api_init(CUcontext *pctx, CUmodule *pmod, const char *f)
Expand Down

0 comments on commit f630d60

Please sign in to comment.