Changeset 1245

Show
Ignore:
Timestamp:
08/02/08 12:21:48 (20 months ago)
Author:
gropp
Message:

Use threadpriv macros

Location:
mpich2/trunk/src/mpi/coll
Files:
12 modified

Legend:

Unmodified
Added
Removed
  • mpich2/trunk/src/mpi/coll/opband.c

    r999 r1245  
    165165        /* --BEGIN ERROR HANDLING-- */ 
    166166    default: { 
    167         MPICH_PerThread_t *p; 
    168         MPIR_GetPerThread(&p); 
    169         p->op_errno = MPIR_Err_create_code( MPI_SUCCESS, MPIR_ERR_RECOVERABLE, FCNAME, __LINE__, MPI_ERR_OP, "**opundefined","**opundefined %s", "MPI_BAND" ); 
     167        MPIU_THREADPRIV_DECL; 
     168        MPIU_THREADPRIV_GET; 
     169        MPIU_THREADPRIV_FIELD(op_errno) = MPIR_Err_create_code( MPI_SUCCESS, MPIR_ERR_RECOVERABLE, FCNAME, __LINE__, MPI_ERR_OP, "**opundefined","**opundefined %s", "MPI_BAND" ); 
    170170        break; 
    171171    } 
  • mpich2/trunk/src/mpi/coll/opbor.c

    r999 r1245  
    164164        /* --BEGIN ERROR HANDLING-- */ 
    165165    default: { 
    166         MPICH_PerThread_t *p; 
    167         MPIR_GetPerThread(&p); 
    168         p->op_errno = MPIR_Err_create_code( MPI_SUCCESS, MPIR_ERR_RECOVERABLE, FCNAME, __LINE__, MPI_ERR_OP, "**opundefined","**opundefined %s", "MPI_BOR" ); 
     166        MPIU_THREADPRIV_DECL; 
     167        MPIU_THREADPRIV_GET; 
     168        MPIU_THREADPRIV_FIELD(op_errno) = MPIR_Err_create_code( MPI_SUCCESS, MPIR_ERR_RECOVERABLE, FCNAME, __LINE__, MPI_ERR_OP, "**opundefined","**opundefined %s", "MPI_BOR" ); 
    169169        break; 
    170170    } 
  • mpich2/trunk/src/mpi/coll/opbxor.c

    r999 r1245  
    165165        /* --BEGIN ERROR HANDLING-- */ 
    166166    default: { 
    167         MPICH_PerThread_t *p; 
    168         MPIR_GetPerThread(&p); 
    169         p->op_errno = MPIR_Err_create_code( MPI_SUCCESS, MPIR_ERR_RECOVERABLE, FCNAME, __LINE__, MPI_ERR_OP, "**opundefined","**opundefined %s", "MPI_BXOR" ); 
     167        MPIU_THREADPRIV_DECL; 
     168        MPIU_THREADPRIV_GET; 
     169        MPIU_THREADPRIV_FIELD(op_errno) = MPIR_Err_create_code( MPI_SUCCESS, MPIR_ERR_RECOVERABLE, FCNAME, __LINE__, MPI_ERR_OP, "**opundefined","**opundefined %s", "MPI_BXOR" ); 
    170170        break; 
    171171    } 
  • mpich2/trunk/src/mpi/coll/opland.c

    r999 r1245  
    228228        /* --BEGIN ERROR HANDLING-- */ 
    229229    default: { 
    230         MPICH_PerThread_t *p; 
    231         MPIR_GetPerThread(&p); 
    232         p->op_errno = MPIR_Err_create_code( MPI_SUCCESS, MPIR_ERR_RECOVERABLE, FCNAME, __LINE__, MPI_ERR_OP, "**opundefined","**opundefined %s", "MPI_LAND" ); 
     230        MPIU_THREADPRIV_DECL; 
     231        MPIU_THREADPRIV_GET; 
     232        MPIU_THREADPRIV_FIELD(op_errno) = MPIR_Err_create_code( MPI_SUCCESS, MPIR_ERR_RECOVERABLE, FCNAME, __LINE__, MPI_ERR_OP, "**opundefined","**opundefined %s", "MPI_LAND" ); 
    233233        break; 
    234234    } 
  • mpich2/trunk/src/mpi/coll/oplor.c

    r999 r1245  
    227227        /* --BEGIN ERROR HANDLING-- */ 
    228228    default: { 
    229         MPICH_PerThread_t *p; 
    230         MPIR_GetPerThread(&p); 
    231         p->op_errno = MPIR_Err_create_code( MPI_SUCCESS, MPIR_ERR_RECOVERABLE, FCNAME, __LINE__, MPI_ERR_OP, "**opundefined","**opundefined %s", "MPI_LOR" ); 
     229        MPIU_THREADPRIV_DECL; 
     230        MPIU_THREADPRIV_GET; 
     231        MPIU_THREADPRIV_FIELD(op_errno) = MPIR_Err_create_code( MPI_SUCCESS, MPIR_ERR_RECOVERABLE, FCNAME, __LINE__, MPI_ERR_OP, "**opundefined","**opundefined %s", "MPI_LOR" ); 
    232232        break; 
    233233    } 
  • mpich2/trunk/src/mpi/coll/oplxor.c

    r999 r1245  
    228228        /* --BEGIN ERROR HANDLING-- */ 
    229229    default: { 
    230         MPICH_PerThread_t *p; 
    231         MPIR_GetPerThread(&p); 
    232         p->op_errno = MPIR_Err_create_code( MPI_SUCCESS, MPIR_ERR_RECOVERABLE, FCNAME, __LINE__, MPI_ERR_OP, "**opundefined","**opundefined %s", "MPI_LXOR" ); 
     230        MPIU_THREADPRIV_DECL; 
     231        MPIU_THREADPRIV_GET; 
     232        MPIU_THREADPRIV_FIELD(op_errno) = MPIR_Err_create_code( MPI_SUCCESS, MPIR_ERR_RECOVERABLE, FCNAME, __LINE__, MPI_ERR_OP, "**opundefined","**opundefined %s", "MPI_LXOR" ); 
    233233        break; 
    234234    } 
  • mpich2/trunk/src/mpi/coll/opmax.c

    r999 r1245  
    215215        /* --BEGIN ERROR HANDLING-- */ 
    216216    default: { 
    217         MPICH_PerThread_t *p; 
    218         MPIR_GetPerThread(&p); 
    219         p->op_errno = MPIR_Err_create_code( MPI_SUCCESS, MPIR_ERR_RECOVERABLE, FCNAME, __LINE__, MPI_ERR_OP, "**opundefined","**opundefined %s", "MPI_MAX" ); 
     217        MPIU_THREADPRIV_DECL; 
     218        MPIU_THREADPRIV_GET; 
     219        MPIU_THREADPRIV_FIELD(op_errno) = MPIR_Err_create_code( MPI_SUCCESS, MPIR_ERR_RECOVERABLE, FCNAME, __LINE__, MPI_ERR_OP, "**opundefined","**opundefined %s", "MPI_MAX" ); 
    220220        break; 
    221221    } 
  • mpich2/trunk/src/mpi/coll/opmaxloc.c

    r100 r1245  
    180180        /* --BEGIN ERROR HANDLING-- */ 
    181181    default: { 
    182         MPICH_PerThread_t *p; 
    183         MPIR_GetPerThread(&p); 
    184         p->op_errno = MPIR_Err_create_code( MPI_SUCCESS, MPIR_ERR_RECOVERABLE, FCNAME, __LINE__, MPI_ERR_OP, "**opundefined","**opundefined %s", "MPI_MAXLOC" ); 
     182        MPIU_THREADPRIV_DECL; 
     183        MPIU_THREADPRIV_GET; 
     184        MPIU_THREADPRIV_FIELD(op_errno) = MPIR_Err_create_code( MPI_SUCCESS, MPIR_ERR_RECOVERABLE, FCNAME, __LINE__, MPI_ERR_OP, "**opundefined","**opundefined %s", "MPI_MAXLOC" ); 
    185185        break; 
    186186    } 
  • mpich2/trunk/src/mpi/coll/opmin.c

    r999 r1245  
    215215        /* --BEGIN ERROR HANDLING-- */ 
    216216    default: { 
    217         MPICH_PerThread_t *p; 
    218         MPIR_GetPerThread(&p); 
    219         p->op_errno = MPIR_Err_create_code( MPI_SUCCESS, MPIR_ERR_RECOVERABLE, FCNAME, __LINE__, MPI_ERR_OP, "**opundefined","**opundefined %s", "MPI_MIN" ); 
     217        MPIU_THREADPRIV_DECL; 
     218        MPIU_THREADPRIV_GET; 
     219        MPIU_THREADPRIV_FIELD(op_errno) = MPIR_Err_create_code( MPI_SUCCESS, MPIR_ERR_RECOVERABLE, FCNAME, __LINE__, MPI_ERR_OP, "**opundefined","**opundefined %s", "MPI_MIN" ); 
    220220        break; 
    221221    } 
  • mpich2/trunk/src/mpi/coll/opminloc.c

    r100 r1245  
    178178        /* --BEGIN ERROR HANDLING-- */ 
    179179    default: { 
    180         MPICH_PerThread_t *p; 
    181         MPIR_GetPerThread(&p); 
    182         p->op_errno = MPIR_Err_create_code( MPI_SUCCESS, MPIR_ERR_RECOVERABLE, FCNAME, __LINE__, MPI_ERR_OP, "**opundefined","**opundefined %s", "MPI_MINLOC" ); 
     180        MPIU_THREADPRIV_DECL; 
     181        MPIU_THREADPRIV_GET; 
     182        MPIU_THREADPRIV_FIELD(op_errno) = MPIR_Err_create_code( MPI_SUCCESS, MPIR_ERR_RECOVERABLE, FCNAME, __LINE__, MPI_ERR_OP, "**opundefined","**opundefined %s", "MPI_MINLOC" ); 
    183183        break; 
    184184    } 
  • mpich2/trunk/src/mpi/coll/opprod.c

    r1144 r1245  
    297297        /* --BEGIN ERROR HANDLING-- */ 
    298298    default: { 
    299         MPICH_PerThread_t *p; 
    300         MPIR_GetPerThread(&p); 
    301         p->op_errno = MPIR_Err_create_code( MPI_SUCCESS, MPIR_ERR_RECOVERABLE, FCNAME, __LINE__, MPI_ERR_OP, "**opundefined","**opundefined %s", "MPI_PROD" ); 
     299        MPIU_THREADPRIV_DECL; 
     300        MPIU_THREADPRIV_GET; 
     301        MPIU_THREADPRIV_FIELD(op_errno) = MPIR_Err_create_code( MPI_SUCCESS, MPIR_ERR_RECOVERABLE, FCNAME, __LINE__, MPI_ERR_OP, "**opundefined","**opundefined %s", "MPI_PROD" ); 
    302302        break; 
    303303    } 
  • mpich2/trunk/src/mpi/coll/opsum.c

    r1131 r1245  
    293293        /* --BEGIN ERROR HANDLING-- */ 
    294294    default: { 
    295         MPICH_PerThread_t *p; 
    296         MPIR_GetPerThread(&p); 
    297         p->op_errno = MPIR_Err_create_code( MPI_SUCCESS, MPIR_ERR_RECOVERABLE, FCNAME, __LINE__, MPI_ERR_OP, "**opundefined","**opundefined %s", "MPI_SUM" ); 
     295        MPIU_THREADPRIV_DECL; 
     296        MPIU_THREADPRIV_GET; 
     297        MPIU_THREADPRIV_FIELD(op_errno) = MPIR_Err_create_code( MPI_SUCCESS, MPIR_ERR_RECOVERABLE, FCNAME, __LINE__, MPI_ERR_OP, "**opundefined","**opundefined %s", "MPI_SUM" ); 
    298298        break; 
    299299    }