Changes between Version 35 and Version 36 of Next-GenOpenMPTransformation


Ignore:
Timestamp:
10/18/19 10:04:27 (7 years ago)
Author:
wuwenhao
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Next-GenOpenMPTransformation

    v35 v36  
    544544#pragma omp sections
    545545#pragma omp section
    546   S0
     546  S0 // section 1
    547547#pragma omp section
    548   S1
     548  S1 // section 2
    549549...
    550550}}}
     
    554554{{{
    555555{
    556   $domain(1) my_secs = $omp_arrive_sections(team, SEC_LOC++, numSections);
     556  $domain(1) my_secs = $omp_arrive_sections(team, section_id++, numSections);
    557557
    558558  $for (int i : my_secs) {
    559     switch (i) {
    560     case 0: {
     559   
     560    if(section_id == 1) {
    561561      translate(S0);
    562       break;
    563     }
    564     case 1: {
    565       translate(S1);
    566       break;
     562    }
     563    if(section_id == 2) {
     564      translate(S0);
    567565    }
    568566    ...