Changes in / [bf1914e:657c36f]
- Files:
-
- 5 edited
-
Jenkins/FullBuild (modified) (2 diffs)
-
benchmark/readyQ/locality.cfa (modified) (5 diffs)
-
benchmark/readyQ/locality.go (modified) (1 diff)
-
benchmark/readyQ/rq_bench.hfa (modified) (1 diff)
-
libcfa/src/parseargs.cfa (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
Jenkins/FullBuild
rbf1914e r657c36f 32 32 33 33 stage('Package') { 34 trigger_dist( commitId, currentBuild.number.toString() )34 build job: 'Cforall_Distribute_Ref', parameters: [string(name: 'GitRef', value: commitId), string(name: 'Build', value: currentBuild.number.toString())] 35 35 } 36 36 } … … 103 103 } 104 104 105 def trigger_dist(String commitId, String build) {106 def result = build job: 'Cforall_Distribute_Ref', \107 parameters: [ \108 string(name: 'GitRef', value: commitId), \109 string(name: 'Build' , value: build) \110 ]111 112 echo(result.result)113 114 if(result.result != 'SUCCESS') {115 sh("wget -q -O - https://cforall.uwaterloo.ca/jenkins/job/Cforall_Distribute_Ref/${result.number}/consoleText")116 error(result.result)117 }118 }119 120 105 //=========================================================================================================== 121 106 //Routine responsible of sending the email notification once the build is completed -
benchmark/readyQ/locality.cfa
rbf1914e r657c36f 63 63 } 64 64 65 __attribute__((noinline))void access(MyData & this, size_t idx) {65 void access(MyData & this, size_t idx) { 66 66 size_t l = this.len; 67 67 this.data[idx % l] += 1; … … 126 126 // ================================================== 127 127 // Do some work by accessing 'cnt' cells in the array 128 __attribute__((noinline))void work(MyData & data, size_t cnt, uint64_t & state) {128 void work(MyData & data, size_t cnt, uint64_t & state) { 129 129 for (cnt) { 130 130 access(data, __xorshift64(state)); … … 166 166 167 167 void ?{}( MyThread & this, MyData * data, MySpot ** spots, size_t spot_len, size_t cnt, bool share, size_t id) { 168 ((thread&)this){ bench_cluster };169 168 this.data = data; 170 169 this.spots.ptr = spots; … … 197 196 unsigned long long global_dmigs = 0; 198 197 198 MyData * data_arrays[nthreads]; 199 for(i; nthreads) { 200 data_arrays[i] = malloc(); 201 (*data_arrays[i]){ i, wsize }; 202 } 203 204 MySpot * spots[nthreads - nprocs]; 205 for(i; nthreads - nprocs) { 206 spots[i] = malloc(); 207 (*spots[i]){ i }; 208 } 209 199 210 Time start, end; 200 211 { 201 MyData * data_arrays[nthreads];202 for(i; nthreads) {203 data_arrays[i] = malloc();204 (*data_arrays[i]){ i, wsize };205 }206 207 MySpot * spots[nthreads - nprocs];208 for(i; nthreads - nprocs) {209 spots[i] = malloc();210 (*spots[i]){ i };211 }212 213 212 BenchCluster bc = { nprocs }; 214 213 threads_left = nprocs; … … 251 250 } 252 251 } 253 254 for(i; nthreads) { 255 delete( data_arrays[i] ); 256 } 257 258 for(i; nthreads - nprocs) { 259 delete( spots[i] ); 260 } 261 } 262 263 printf("Duration (ms) : %'lf\n", (end - start)`dms); 252 } 253 254 printf("Duration (ms) : %'ld\n", (end - start)`dms); 264 255 printf("Number of processors : %'d\n", nprocs); 265 256 printf("Number of threads : %'d\n", nthreads); 266 257 printf("Total Operations(ops) : %'15llu\n", global_count); 267 printf("Work size (64bit words): %'15 u\n", wsize);258 printf("Work size (64bit words): %'15llu\n", wsize); 268 259 printf("Total Operations(ops) : %'15llu\n", global_count); 269 260 printf("Total G Migrations : %'15llu\n", global_gmigs); -
benchmark/readyQ/locality.go
rbf1914e r657c36f 282 282 // Print with nice 's, i.e. 1'000'000 instead of 1000000 283 283 p := message.NewPrinter(language.English) 284 p.Printf("Duration ( s): %f\n", delta.Seconds());284 p.Printf("Duration (ms) : %f\n", delta.Seconds()); 285 285 p.Printf("Number of processors : %d\n", nprocs); 286 286 p.Printf("Number of threads : %d\n", nthreads); -
benchmark/readyQ/rq_bench.hfa
rbf1914e r657c36f 39 39 } else if(stop_count > 0) { \ 40 40 clock_mode = false; \ 41 printf("Running for %l lu iterations\n", stop_count); \41 printf("Running for %lu iterations\n", stop_count); \ 42 42 } else { \ 43 43 duration = 5; clock_mode = true;\ -
libcfa/src/parseargs.cfa
rbf1914e r657c36f 105 105 if(opt == options[i].short_name) { 106 106 const char * arg = optarg ? optarg : ""; 107 if( arg[0] == '=' ) { arg++; }108 107 bool success = options[i].parse( arg, options[i].variable ); 109 108 if(success) continue NEXT_ARG;
Note:
See TracChangeset
for help on using the changeset viewer.