From acd2b3341cca1192ff50f60591ef0db278d970bf Mon Sep 17 00:00:00 2001 From: Ahmed El-Shafiey Date: Wed, 24 Apr 2013 12:30:35 -0800 Subject: force power log files to be readable by group and others (Review ID: 21001) [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 15927] --- src/gpuwattch/gpgpu_sim_wrapper.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/gpuwattch') diff --git a/src/gpuwattch/gpgpu_sim_wrapper.cc b/src/gpuwattch/gpgpu_sim_wrapper.cc index 0f18439..a906231 100644 --- a/src/gpuwattch/gpgpu_sim_wrapper.cc +++ b/src/gpuwattch/gpgpu_sim_wrapper.cc @@ -26,6 +26,7 @@ // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include "gpgpu_sim_wrapper.h" +#include #define SP_BASE_POWER 0 #define SFU_BASE_POWER 0 #define NUM_COMPONENTS_MODELLED 18 @@ -217,7 +218,8 @@ void gpgpu_sim_wrapper::init_mcpat(char* xmlfile, char* powerfilename, char* pow mcpat_init = false; has_written_avg=false; powerfile.open(g_power_filename); - + int flg=chmod(g_power_filename, S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH); + assert(flg==0); } sample_val = 0; init_inst_val=init_val;//gpu_tot_sim_insn+gpu_sim_insn; -- cgit v1.3