summaryrefslogtreecommitdiff
path: root/libcuda/cuda_runtime_api.cc
diff options
context:
space:
mode:
authorTor Aamodt <[email protected]>2010-08-08 22:57:41 -0800
committerTor Aamodt <[email protected]>2010-08-08 22:57:41 -0800
commita1acb8ed114e6ed00c742e7fd7bcbbe216f909c1 (patch)
treeba2f2cde4317b9c1cd5a3321652563aa461dca37 /libcuda/cuda_runtime_api.cc
parenta22c87cf48cb64a264c0696e6749e85b2038e0cf (diff)
refactoring: mem_latency_stat in impl, etc...
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 7173]
Diffstat (limited to 'libcuda/cuda_runtime_api.cc')
-rw-r--r--libcuda/cuda_runtime_api.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/libcuda/cuda_runtime_api.cc b/libcuda/cuda_runtime_api.cc
index 27b4bd3..b6e99ca 100644
--- a/libcuda/cuda_runtime_api.cc
+++ b/libcuda/cuda_runtime_api.cc
@@ -128,6 +128,7 @@
#include "builtin_types.h"
#include "driver_types.h"
#include "__cudaFatFormat.h"
+#include "../src/gpgpu-sim/gpu-sim.h"
/*DEVICE_BUILTIN*/
struct cudaArray
@@ -610,10 +611,6 @@ __host__ cudaError_t CUDARTAPI cudaMemset(void *mem, int c, size_t count)
return g_last_cudaError = cudaSuccess;
}
-#if (CUDART_VERSION >= 2010)
-extern unsigned int gpu_n_shader;
-#endif
-
__host__ cudaError_t CUDARTAPI cudaGetDeviceProperties(struct cudaDeviceProp *prop, int device)
{
GPGPUSIM_INIT