summaryrefslogtreecommitdiff
path: root/libcuda
diff options
context:
space:
mode:
authorAndrew M. B. Boktor <[email protected]>2012-05-15 09:19:40 -0800
committerAndrew Boktor <[email protected]>2014-08-14 13:47:30 -0700
commite4125fe310b8c1b7c46ebebbebe65d51fd681992 (patch)
treecdec03d2f165624afc7b3b85e32edcd531588ce6 /libcuda
parentdb3926e28a265158bd5f1e59c927457529fd511c (diff)
Removing a couple of warnings
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 12564]
Diffstat (limited to 'libcuda')
-rw-r--r--libcuda/cuda_runtime_api.cc3
1 files changed, 0 insertions, 3 deletions
diff --git a/libcuda/cuda_runtime_api.cc b/libcuda/cuda_runtime_api.cc
index 9bc7c3a..1f95af6 100644
--- a/libcuda/cuda_runtime_api.cc
+++ b/libcuda/cuda_runtime_api.cc
@@ -1168,7 +1168,6 @@ void extract_code_using_cuobjdump(){
int fd=mkstemp(fname);
close(fd);
- char* whole_code;
//! Running cuobjdump using dynamic link to current process
snprintf(command,1000,"$CUDA_INSTALL_PATH/bin/cuobjdump -ptx -elf -sass /proc/%d/exe > %s",getpid(),fname);
printf("Running cuobjdump using \"%s\"\n", command);
@@ -1186,7 +1185,6 @@ void extract_code_using_cuobjdump(){
//! Read file into char*
char* readfile (const char* filename){
assert (filename != NULL);
- char str[128];
FILE* fp = fopen(filename,"r");
if (!fp) {
printf("ERROR: Could not open file %s for reading\n", filename);
@@ -1288,7 +1286,6 @@ void useCuobjdump() {
CUctx_st *context = GPGPUSim_Context();
unsigned source_num=1;
- char *sass, *elf;
extract_code_using_cuobjdump(); //extract all the output of cuobjdump to _cuobjdump_*.*
cuobjdumpSectionList = pruneSectionList(cuobjdumpSectionList, context);
unsigned total_ptx_files = cuobjdumpSectionList.size()/2;