summaryrefslogtreecommitdiff
path: root/libcuda
diff options
context:
space:
mode:
authorAndrew M. B. Boktor <[email protected]>2012-08-07 23:47:09 -0800
committerAndrew Boktor <[email protected]>2014-08-14 13:48:53 -0700
commitc1ca329ef0a2695f700c4bb692ca3ea8b3c01030 (patch)
treeed9460f636193dd4ae425570a27d0a9119bddd2a /libcuda
parent2c6901bdfb99d6b7e57e0365d64442c1e148d13f (diff)
Back out changelist 13683
There is a problem with the linkage on my machine. Before this changelist the code didn't build on my machine. After it it builds but fails to run due to missing dynamic linkage. And obviously it breaks the jenkins build. [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 13684]
Diffstat (limited to 'libcuda')
-rw-r--r--libcuda/cuda_runtime_api.cc4
-rw-r--r--libcuda/cuobjdump.y2
2 files changed, 4 insertions, 2 deletions
diff --git a/libcuda/cuda_runtime_api.cc b/libcuda/cuda_runtime_api.cc
index cdfd99c..e189403 100644
--- a/libcuda/cuda_runtime_api.cc
+++ b/libcuda/cuda_runtime_api.cc
@@ -551,7 +551,9 @@ __host__ cudaError_t CUDARTAPI cudaMemcpy2D(void *dst, size_t dpitch, const void
{
CUctx_st *context = GPGPUSim_Context();
gpgpu_t *gpu = context->get_device()->get_gpgpu();
+ struct cudaArray *cuArray_ptr;
size_t size = spitch*height;
+ cuArray_ptr = (cudaArray*)dst;
gpgpusim_ptx_assert( (dpitch==spitch), "different src and dst pitch not supported yet" );
if( kind == cudaMemcpyHostToDevice )
gpu->memcpy_to_gpu( (size_t)dst, src, size );
@@ -1799,7 +1801,7 @@ int CUDARTAPI __cudaSynchronizeThreads(void**, void*)
////////
-//extern "C" int ptx_parse();
+extern "C" int ptx_parse();
extern "C" int ptx__scan_string(const char*);
extern "C" FILE *ptx_in;
diff --git a/libcuda/cuobjdump.y b/libcuda/cuobjdump.y
index b07c754..914a3d6 100644
--- a/libcuda/cuobjdump.y
+++ b/libcuda/cuobjdump.y
@@ -103,7 +103,7 @@ ptxcode : ptxcode PTXLINE {fprintf(ptxfile, "%s", $2);}
elfcode : elfcode ELFLINE {fprintf(elffile, "%s", $2);}
| ;
-sasscode : sasscode SASSLINE {fprintf(sassfile, "%s", $2);}
+sasscode : sasscode SASSLINE {fprintf(sassfile, "%s", $2)}
| ;