From e4125fe310b8c1b7c46ebebbebe65d51fd681992 Mon Sep 17 00:00:00 2001 From: "Andrew M. B. Boktor" Date: Tue, 15 May 2012 09:19:40 -0800 Subject: Removing a couple of warnings [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 12564] --- libcuda/cuda_runtime_api.cc | 3 --- 1 file changed, 3 deletions(-) (limited to 'libcuda') 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; -- cgit v1.3