diff options
| author | Amruth <[email protected]> | 2018-04-11 20:17:43 +0000 |
|---|---|---|
| committer | Tor Aamodt <[email protected]> | 2018-04-11 20:17:43 +0000 |
| commit | c980c7557b3c60857bea13fde868366b32f93cef (patch) | |
| tree | 71f42cea67f61498377205b52e2e0daecfc3836b /src/cuda-sim/ptx_loader.cc | |
| parent | a17c466a9578f983c48704495566df5a373ff6ba (diff) | |
| parent | 90a0a1e4093df69505d0ffc0b08eedc9d0355ac3 (diff) | |
Merged in amruth_s/apr2_gpgpusim (pull request #3)
Support for CDP and minor bug fixes
Diffstat (limited to 'src/cuda-sim/ptx_loader.cc')
| -rw-r--r-- | src/cuda-sim/ptx_loader.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/cuda-sim/ptx_loader.cc b/src/cuda-sim/ptx_loader.cc index 4ddc6bf..33a4260 100644 --- a/src/cuda-sim/ptx_loader.cc +++ b/src/cuda-sim/ptx_loader.cc @@ -423,6 +423,7 @@ void gpgpu_ptxinfo_load_from_string( const char *p_for_info, unsigned source_num snprintf(commandline,1024,"$CUDA_INSTALL_PATH/bin/ptxas %s -v %s --output-file /dev/null 2> %s", extra_flags, fname2, tempfile_ptxinfo); printf("GPGPU-Sim PTX: generating ptxinfo using \"%s\"\n", commandline); + fflush(stdout); result = system(commandline); if( result != 0 ) { printf("GPGPU-Sim PTX: ERROR ** while loading PTX (b) %d\n", result); @@ -443,14 +444,12 @@ void gpgpu_ptxinfo_load_from_string( const char *p_for_info, unsigned source_num } } - ptxinfo_in = fopen(final_tempfile_ptxinfo,"r"); if(no_of_ptx>0) g_ptxinfo_filename = final_tempfile_ptxinfo; else g_ptxinfo_filename = tempfile_ptxinfo; + ptxinfo_in = fopen(g_ptxinfo_filename,"r"); - //The program might get stuck because the parser didnt receive a EOF. - printf("NOTE: If the program is stuck, please press ctrl+d for Ubuntu/Mac and ctrl+z for Windows users \n"); ptxinfo_parse(); snprintf(commandline,1024,"rm -f *info"); |
